3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func() { static $count = 0; echo (++$count)."\n"; return func(); } func();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f3KTa
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'func'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f3KTa
function name:  func
number of ops:  8
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_STATIC                                              !0
    5     1        PRE_INC                                          ~1      !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
    6     4        INIT_FCALL_BY_NAME                                       'func'
          5        DO_FCALL                                      0  $3      
          6      > RETURN                                                   $3
    7     7*     > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.72 ms | 1388 KiB | 14 Q