3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function( 'ob_end_flush' ); class foo { function bar() { } } $GLOBALS['fb'] = new foo; function foo_bar( $buffer ) { $buffer .= "gettype( 'fb' ): " . gettype( $GLOBALS['fb'] ); return $buffer; } ob_start( 'foo_bar' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m8rAm
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'ob_end_flush'
          2        DO_ICALL                                                 
   11     3        NEW                                              $2      'foo'
          4        DO_FCALL                                      0          
          5        FETCH_W                      global              $1      'fb'
          6        ASSIGN                                                   $1, $2
   18     7        INIT_FCALL                                               'ob_start'
          8        SEND_VAL                                                 'foo_bar'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function foo_bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m8rAm
function name:  foo_bar
number of ops:  7
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        FETCH_R                      global              ~1      'fb'
          2        GET_TYPE                                         ~2      ~1
          3        CONCAT                                           ~3      'gettype%28+%27fb%27+%29%3A+', ~2
          4        ASSIGN_OP                                     8          !0, ~3
   15     5      > RETURN                                                   !0
   16     6*     > RETURN                                                   null

End of function foo_bar

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m8rAm
function name:  bar
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.17 ms | 1001 KiB | 15 Q