3v4l.org

run code in 300+ PHP versions simultaneously
<?php function finish($out) { var_dump($GLOBALS['foo']); return $out; } $foo = new stdClass(); ob_start('finish'); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rsU8v
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'finish'
          5        DO_ICALL                                                 
   13     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function finish:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rsU8v
function name:  finish
number of ops:  8
compiled vars:  !0 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'var_dump'
          2        FETCH_R                      global              ~1      'GLOBALS'
          3        FETCH_DIM_R                                      ~2      ~1, 'foo'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    6     6      > RETURN                                                   !0
    7     7*     > RETURN                                                   null

End of function finish

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.85 ms | 1395 KiB | 17 Q