3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_func () { $varName = 'myVar'; $$varName= 'foo'; var_dump($myVar); } my_func();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aE48v
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'my_func'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function my_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aE48v
function name:  my_func
number of ops:  7
compiled vars:  !0 = $varName, !1 = $myVar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'myVar'
    5     1        FETCH_W                      local               $3      !0
          2        ASSIGN                                                   $3, 'foo'
    7     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of function my_func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.11 ms | 1003 KiB | 15 Q