3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { foo(); } while(1) { echo "foo"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 1
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 1
Branch analysis from position: 3
Branch analysis from position: 1
filename:       /in/9n9tY
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > JMP                                                      ->2
    9     1    >   ECHO                                                     'foo'
    8     2    > > JMPNZ                                                    1, ->1
   10     3    > > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.06 ms | 1397 KiB | 13 Q