3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head><title>no_global.php</title></head> <body> <?php> $a = 1; function gtest(){ print ($a+1); } gtest(); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A30cT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%3Ctitle%3Eno_global.php%3C%2Ftitle%3E%3C%2Fhead%3E%0A%3Cbody%3E%0A'
    4     1        FETCH_CONSTANT                                   ~1      'php'
    5     2        ASSIGN                                           ~2      !0, 1
          3        IS_SMALLER                                       ~3      ~2, ~1
          4        FREE                                                     ~3
    9     5        INIT_FCALL                                               'gtest'
          6        DO_FCALL                                      0          
   11     7        ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   12     8      > RETURN                                                   1

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

End of function gtest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.63 ms | 1397 KiB | 14 Q