3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a="adrian"; $b="cerciu"; function salut() { echo $GLOBALS['a']. " " .$GLOBALS['b']; } salut(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ujNP7
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'adrian'
    4     1        ASSIGN                                                   !1, 'cerciu'
   10     2        INIT_FCALL                                               'salut'
          3        DO_FCALL                                      0          
   11     4      > RETURN                                                   1

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

End of function salut

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.79 ms | 1401 KiB | 14 Q