xref: /php-src/ext/opcache/tests/jit/inc_022.phpt (revision c16ad918)
1--TEST--
2JIT INC: 022
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8;opcache.jit_debug=257
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13function inc($x) {
14    return ++$x;
15}
16function dec($x) {
17    return --$x;
18}
19var_dump(inc("abc"));
20var_dump(inc("5"));
21var_dump(inc(1.1));
22var_dump(dec("5"));
23var_dump(dec(1.1));
24?>
25--EXPECT--
26string(3) "abd"
27int(6)
28float(2.1)
29int(4)
30float(0.10000000000000009)
31