xref: /PHP-8.4/ext/opcache/tests/jit/add_006.phpt (revision c16ad918)
1--TEST--
2JIT ADD: 006
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7;opcache.jit_debug=257
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12function foo($a, $b) {
13  $res = $a + $b;
14  var_dump($res);
15}
16foo(3, 5);
17foo(3.0, 5.0);
18foo(3.0, 5);
19foo(3, 5.0);
20?>
21--EXPECT--
22int(8)
23float(8)
24float(8)
25float(8)
26