xref: /PHP-8.3/ext/opcache/tests/jit/mul_002.phpt (revision a1389a77)
1--TEST--
2JIT MUL: 002 integer overflow
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=32M
8;opcache.jit_debug=257
9--EXTENSIONS--
10opcache
11--SKIPIF--
12<?php
13if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
14?>
15--FILE--
16<?php
17function mul(int $a, int $b) {
18  $res = $a * $b;
19  var_dump($res);
20}
21mul(0x5555555555, 0x5555555555);
22?>
23--EXPECT--
24float(1.343250910680478E+23)
25