3v4l.org

run code in 300+ PHP versions simultaneously
<?php f(0, $$var); $x = 1; $y = 2; echo $x; function f($a, $b) {}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WBj8v
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'f'
          1        SEND_VAL_EX                                              0
          2        CHECK_FUNC_ARG                                           
          3        FETCH_FUNC_ARG               local               $3      !0
          4        SEND_FUNC_ARG                                            $3
          5        DO_FCALL                                      0          
    4     6        ASSIGN                                                   !1, 1
    5     7        ASSIGN                                                   !2, 2
    6     8        ECHO                                                     !1
    7     9      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WBj8v
function name:  f
number of ops:  3
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.89 ms | 1393 KiB | 13 Q