xref: /PHP-8.4/ext/opcache/tests/jit/mul_001.phpt (revision c16ad918)
1--TEST--
2JIT MUL: 001 integer multiplay
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 mul2(int $a) {
13  $res = $a * 2;
14  var_dump($res);
15}
16function mul4(int $a) {
17  $res = $a * 4;
18  var_dump($res);
19}
20function mul111(int $a) {
21  $res = $a * 111;
22  var_dump($res);
23}
24mul2(3);
25mul4(3);
26mul111(3);
27?>
28--EXPECT--
29int(6)
30int(12)
31int(333)
32