3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func() { static $count = 0; return func(); echo (++$count)."\n"; } func();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Wi2o
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/8Wi2o
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        INIT_FCALL_BY_NAME                                       'func'
          2        DO_FCALL                                      0  $1      
          3      > RETURN                                                   $1
    6     4*       PRE_INC                                          ~2      !0
          5*       CONCAT                                           ~3      ~2, '%0A'
          6*       ECHO                                                     ~3
    7     7*     > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.63 ms | 1396 KiB | 14 Q