3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_set_save_handler( function() {return true;}, function() {return true;}, function() {return true;}, function() {return true;}, function() { $contents = ob_get_contents(); ob_end_clean(); print substr($contents, 0, 5); print ' PHP '; print substr($contents, 5); return true; }, function(){return true;} ); session_start(); ob_start(); echo 'Hello'; echo 'World';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_set_save_handler'
    4     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTR3dc%3A4%240'
          2        SEND_VAL                                                 ~0
    5     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTR3dc%3A5%241'
          4        SEND_VAL                                                 ~1
    6     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTR3dc%3A6%242'
          6        SEND_VAL                                                 ~2
    7     7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTR3dc%3A7%243'
          8        SEND_VAL                                                 ~3
    8     9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTR3dc%3A8%244'
         10        SEND_VAL                                                 ~4
    9    11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTR3dc%3A9%245'
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
   12    14        INIT_FCALL                                               'session_start'
         15        DO_ICALL                                                 
   14    16        INIT_FCALL                                               'ob_start'
         17        DO_ICALL                                                 
   16    18        ECHO                                                     'Hello'
   17    19        ECHO                                                     'World'
         20      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTR3dc%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTR3dc%3A4%240

Function %00%7Bclosure%7D%2Fin%2FTR3dc%3A5%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTR3dc%3A5%241

Function %00%7Bclosure%7D%2Fin%2FTR3dc%3A6%242:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTR3dc%3A6%242

Function %00%7Bclosure%7D%2Fin%2FTR3dc%3A7%243:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTR3dc%3A7%243

Function %00%7Bclosure%7D%2Fin%2FTR3dc%3A8%244:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  {closure}
number of ops:  19
compiled vars:  !0 = $contents
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'ob_get_contents'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
          3        INIT_FCALL                                               'ob_end_clean'
          4        DO_ICALL                                                 
          5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 5
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
         11        ECHO                                                     '+PHP+'
         12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 5
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
         17      > RETURN                                                   <true>
         18*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTR3dc%3A8%244

Function %00%7Bclosure%7D%2Fin%2FTR3dc%3A9%245:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TR3dc
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTR3dc%3A9%245

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.79 ms | 1400 KiB | 25 Q