3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; $f = 1.1; function test($a, $b, $c, $d) { var_dump($a, $b, $c, $d); } test($i++, $f++, $i++, $i++); var_dump($i, $f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0k3Cc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 1.1
    8     2        INIT_FCALL                                               'test'
          3        POST_INC                                         ~4      !0
          4        SEND_VAL                                                 ~4
          5        POST_INC                                         ~5      !1
          6        SEND_VAL                                                 ~5
          7        POST_INC                                         ~6      !0
          8        SEND_VAL                                                 ~6
          9        POST_INC                                         ~7      !0
         10        SEND_VAL                                                 ~7
         11        DO_FCALL                                      0          
   10    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0k3Cc
function name:  test
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                                 
         10      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.59 ms | 1398 KiB | 16 Q