3v4l.org

run code in 300+ PHP versions simultaneously
<?php // unbroken loop $directoryIterator = new DirectoryIterator('/'); function segfault() { global $directoryIterator; segfault(); } segfault();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ph0ft
function name:  (null)
number of ops:  7
compiled vars:  !0 = $directoryIterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DirectoryIterator'
          1        SEND_VAL_EX                                              '%2F'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    8     4        INIT_FCALL                                               'segfault'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function segfault:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ph0ft
function name:  segfault
number of ops:  4
compiled vars:  !0 = $directoryIterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_GLOBAL                                              !0, 'directoryIterator'
    6     1        INIT_FCALL_BY_NAME                                       'segfault'
          2        DO_FCALL                                      0          
    7     3      > RETURN                                                   null

End of function segfault

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1396 KiB | 14 Q