3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = "Hello World"; echo $GLOBALS["test1"]; echo "\n"; $GLOBALS["test2"] = "Goodbye World"; echo $test2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8DuEV
function name:  (null)
number of ops:  8
compiled vars:  !0 = $test1, !1 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+World'
    4     1        FETCH_R                      global              ~3      'test1'
          2        ECHO                                                     ~3
    5     3        ECHO                                                     '%0A'
    6     4        FETCH_W                      global              $4      'test2'
          5        ASSIGN                                                   $4, 'Goodbye+World'
    7     6        ECHO                                                     !1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.94 ms | 995 KiB | 13 Q