3v4l.org

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

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

End of function printa

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

End of function printafailed

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.5 ms | 1397 KiB | 15 Q