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