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')); ob_start(array($test, 'b')); echo ' 2 '; ob_end_flush(); echoa(); ob_end_flush();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jtB8h
function name:  (null)
number of ops:  21
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                                                 
   20     8        INIT_FCALL                                               'ob_start'
          9        INIT_ARRAY                                       ~6      !0
         10        ADD_ARRAY_ELEMENT                                ~6      'b'
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
   21    13        ECHO                                                     '+2+'
   22    14        INIT_FCALL                                               'ob_end_flush'
         15        DO_ICALL                                                 
   24    16        INIT_FCALL_BY_NAME                                       'echoa'
         17        DO_FCALL                                      0          
   25    18        INIT_FCALL                                               'ob_end_flush'
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class Test:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jtB8h
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/jtB8h
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:
178.21 ms | 1396 KiB | 19 Q