3v4l.org

run code in 300+ PHP versions simultaneously
<?php function finish($out) { return var_export($GLOBALS['foo'], true) . $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/8onIu
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'finish'
          5        DO_ICALL                                                 
   12     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/8onIu
function name:  finish
number of ops:  10
compiled vars:  !0 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'var_export'
          2        FETCH_R                      global              ~1      'GLOBALS'
          3        FETCH_DIM_R                                      ~2      ~1, 'foo'
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $3      
          7        CONCAT                                           ~4      $3, !0
          8      > RETURN                                                   ~4
    6     9*     > RETURN                                                   null

End of function finish

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.66 ms | 1395 KiB | 19 Q