3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test () { global $test_var; $test_var = 'Hello World!'; } echo $test_var;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/33KCm
function name:  (null)
number of ops:  2
compiled vars:  !0 = $test_var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     !0
          1      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/33KCm
function name:  test
number of ops:  3
compiled vars:  !0 = $test_var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_GLOBAL                                              !0, 'test_var'
    5     1        ASSIGN                                                   !0, 'Hello+World%21'
    6     2      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 1392 KiB | 13 Q