3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static function bar($a) { return $a.' 1'; } static function run() { ob_start('self::bar'); echo '2'; ob_end_flush(); } } Test::run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYRY9
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'run'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function bar

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYRY9
function name:  run
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'ob_start'
          1        SEND_VAL                                                 'self%3A%3Abar'
          2        DO_ICALL                                                 
    9     3        ECHO                                                     '2'
   10     4        INIT_FCALL                                               'ob_end_flush'
          5        DO_ICALL                                                 
   11     6      > RETURN                                                   null

End of function run

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.07 ms | 1395 KiB | 17 Q