3v4l.org

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

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

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.27 ms | 1393 KiB | 13 Q