xref: /PHP-8.2/ext/opcache/tests/jit/add_004.phpt (revision a1389a77)
1--TEST--
2JIT ADD: 004
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 foo($var) {
18  $ret = $var + 200;
19  var_dump($ret);
20}
21foo(PHP_INT_MAX);
22?>
23--EXPECT--
24float(9.223372036854776E+18)
25