3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(function ($buffer, $phase) { return ($buffer . "\n"); }); echo 'Foo'; echo 'Bar'; echo 'Foo'; echo ob_get_clean();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XS1vE
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ob_start'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXS1vE%3A2%240'
    4     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    6     4        ECHO                                                     'Foo'
    7     5        ECHO                                                     'Bar'
    8     6        ECHO                                                     'Foo'
   10     7        INIT_FCALL                                               'ob_get_clean'
          8        DO_ICALL                                         $2      
          9        ECHO                                                     $2
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXS1vE%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XS1vE
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $buffer, !1 = $phase
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        CONCAT                                           ~2      !0, '%0A'
          3      > RETURN                                                   ~2
    4     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXS1vE%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.45 ms | 1395 KiB | 17 Q