3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "bar"; function something() { global $foo; return $foo; } echo something();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZqmV
function name:  (null)
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'bar'
   10     1        INIT_FCALL                                               'something'
          2        DO_FCALL                                      0  $2      
          3        ECHO                                                     $2
          4      > RETURN                                                   1

Function something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZqmV
function name:  something
number of ops:  3
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_GLOBAL                                              !0, 'foo'
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function something

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.95 ms | 1396 KiB | 14 Q