3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "Tomorrow I \'ll learn PHP global variables.<br>"; $y = "This is a bad command : del c:\*.*<br>"; function addition() { echo $GLOBALS["x"]; echo $GLOBALS["y"]; } addition(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WEPfR
function name:  (null)
number of ops:  5
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Tomorrow+I+%5C%27ll+learn+PHP+global+variables.%3Cbr%3E'
    3     1        ASSIGN                                                   !1, 'This+is+a+bad+command+%3A+del+c%3A%5C%2A.%2A%3Cbr%3E'
   10     2        INIT_FCALL                                               'addition'
          3        DO_FCALL                                      0          
   11     4      > RETURN                                                   1

Function addition:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WEPfR
function name:  addition
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_R                      global              ~0      'GLOBALS'
          1        FETCH_DIM_R                                      ~1      ~0, 'x'
          2        ECHO                                                     ~1
    7     3        FETCH_R                      global              ~2      'GLOBALS'
          4        FETCH_DIM_R                                      ~3      ~2, 'y'
          5        ECHO                                                     ~3
    8     6      > RETURN                                                   null

End of function addition

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.96 ms | 1397 KiB | 14 Q