3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(){ global $i; $i++; if ($i > 900000) { exit("no segfault"); } a(); } a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mE013
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mE013
function name:  a
number of ops:  8
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   BIND_GLOBAL                                              !0, 'i'
          1        PRE_INC                                                  !0
          2        IS_SMALLER                                               900000, !0
          3      > JMPZ                                                     ~2, ->5
          4    > > EXIT                                                     'no+segfault'
          5    >   INIT_FCALL_BY_NAME                                       'a'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1388 KiB | 14 Q