3v4l.org

run code in 500+ 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]); crash(); echo "Worked!\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j4GdO
function name:  (null)
number of ops:  10
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        INIT_FCALL                                                   'crash'
          7        DO_FCALL                                          0          
   18     8        ECHO                                                         'Worked%21%0A'
          9      > RETURN                                                       1

Function crash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j4GdO
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                              ~3      [0]
          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


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j4GdO
function name:  {closure:crash():5}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       null

End of Dynamic Function 0

End of function crash

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.52 ms | 2674 KiB | 16 Q