3v4l.org

run code in 300+ PHP versions simultaneously
<?php class segfault { static $var = array(); static function crash() { $item = &self::$var; $item &= $item[1] = array(); } } segfault::crash();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iNfmI
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'segfault', 'crash'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class segfault:
Function crash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iNfmI
function name:  crash
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_STATIC_PROP_W          unknown             $1      'var'
          1        ASSIGN_REF                                               !0, $1
    9     2        ASSIGN_DIM                                       ~3      !0, 1
          3        OP_DATA                                                  <array>
          4        ASSIGN_OP                                    10          !0, ~3
   11     5      > RETURN                                                   null

End of function crash

End of class segfault.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.19 ms | 1393 KiB | 13 Q