3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); echo "<pre>"; $obj = new stdClass; $prop = "crash-me"; $arr = array(); $obj->$prop = "no crash"; $obj->$prop = $arr; // bp here and $obj->$prop is correct print_r($obj); // bp here, inspect $obj->$prop and... xdebug/php will crash. ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r1iKn
function name:  (null)
number of ops:  17
compiled vars:  !0 = $obj, !1 = $prop, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        ECHO                                                     '%3Cpre%3E'
    6     4        NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $4
    7     7        ASSIGN                                                   !1, 'crash-me'
    8     8        ASSIGN                                                   !2, <array>
    9     9        ASSIGN_OBJ                                               !0, !1
         10        OP_DATA                                                  'no+crash'
   10    11        ASSIGN_OBJ                                               !0, !1
         12        OP_DATA                                                  !2
   11    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   14    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.03 ms | 1394 KiB | 17 Q