xref: /PHP-8.1/ext/opcache/tests/jit/add_006.phpt (revision 34f1fdc0)
1--TEST--
2JIT ADD: 006
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--FILE--
12<?php
13function foo($a, $b) {
14  $res = $a + $b;
15  var_dump($res);
16}
17foo(3, 5);
18foo(3.0, 5.0);
19foo(3.0, 5);
20foo(3, 5.0);
21?>
22--EXPECT--
23int(8)
24float(8)
25float(8)
26float(8)
27