3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function a($buffer) { var_dump($buffer); } public function b($buffer) { var_dump($buffer); } } $test = new Test(); ob_start(array($test, 'a')); echo ' 1 '; ob_start(array($test, 'b')); echo ' 2 '; ob_end_flush(); ob_end_flush();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y2pnF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_FCALL                                               'ob_start'
          4        INIT_ARRAY                                       ~4      !0
          5        ADD_ARRAY_ELEMENT                                ~4      'a'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
   16     8        ECHO                                                     '+1+'
   18     9        INIT_FCALL                                               'ob_start'
         10        INIT_ARRAY                                       ~6      !0
         11        ADD_ARRAY_ELEMENT                                ~6      'b'
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
   19    14        ECHO                                                     '+2+'
   20    15        INIT_FCALL                                               'ob_end_flush'
         16        DO_ICALL                                                 
   22    17        INIT_FCALL                                               'ob_end_flush'
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class Test:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y2pnF
function name:  a
number of ops:  5
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y2pnF
function name:  b
number of ops:  5
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   10     4      > RETURN                                                   null

End of function b

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1396 KiB | 19 Q