3v4l.org

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

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

End of function display

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.03 ms | 1393 KiB | 13 Q