xref: /PHP-8.4/ext/opcache/tests/jit/add_003.phpt (revision c16ad918)
1--TEST--
2JIT ADD: 003
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7;opcache.jit_debug=257
8--EXTENSIONS--
9opcache
10--SKIPIF--
11<?php
12if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
13?>
14--FILE--
15<?php
16function foo($var) {
17  $ret = $var + 1;
18  var_dump($ret);
19}
20foo(PHP_INT_MAX);
21?>
22--EXPECT--
23float(9.223372036854776E+18)
24