3v4l.org

run code in 300+ PHP versions simultaneously
<?php function crash() { set_error_handler(function () {}); $var = 1; trigger_error('error'); $var2 = $var; $var3 = $var; trigger_error('error'); } $items = new ArrayObject(); unset($items[0]); unset($items[0][0]); echo "Okay\n"; crash(); echo "Worked!\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pc3kG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        UNSET_DIM                                                !0, 0
   16     4        FETCH_DIM_UNSET                                  $4      !0, 0
          5        UNSET_DIM                                                $4, 0
   17     6        ECHO                                                     'Okay%0A'
   18     7        INIT_FCALL                                               'crash'
          8        DO_FCALL                                      0          
   19     9        ECHO                                                     'Worked%21%0A'
         10      > RETURN                                                   1

Function crash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pc3kG
function name:  crash
number of ops:  14
compiled vars:  !0 = $var, !1 = $var2, !2 = $var3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fpc3kG%3A5%240'
          2        SEND_VAL                                                 ~3
          3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, 1
    7     5        INIT_FCALL                                               'trigger_error'
          6        SEND_VAL                                                 'error'
          7        DO_ICALL                                                 
    8     8        ASSIGN                                                   !1, !0
    9     9        ASSIGN                                                   !2, !0
   10    10        INIT_FCALL                                               'trigger_error'
         11        SEND_VAL                                                 'error'
         12        DO_ICALL                                                 
   11    13      > RETURN                                                   null

End of function crash

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

End of function %00%7Bclosure%7D%2Fin%2Fpc3kG%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.53 ms | 1399 KiB | 18 Q