3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function a($buffer) { var_dump($buffer); return $buffer; } public function b($buffer) { var_dump($buffer); return $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/oUsTo
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'ob_start'
          4        INIT_ARRAY                                       ~4      !0
          5        ADD_ARRAY_ELEMENT                                ~4      'a'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
   18     8        ECHO                                                     '+1+'
   20     9        INIT_FCALL                                               'ob_start'
         10        INIT_ARRAY                                       ~6      !0
         11        ADD_ARRAY_ELEMENT                                ~6      'b'
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
   21    14        ECHO                                                     '+2+'
   22    15        INIT_FCALL                                               'ob_end_flush'
         16        DO_ICALL                                                 
   24    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/oUsTo
function name:  a
number of ops:  6
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                                                   !0
    7     5*     > 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/oUsTo
function name:  b
number of ops:  6
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   11     4      > RETURN                                                   !0
   12     5*     > RETURN                                                   null

End of function b

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.52 ms | 1396 KiB | 19 Q