3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; function a($b) { $b++; if ($b < 10) { a($b); } } a($i);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R0XeO
function name:  (null)
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
   12     1        INIT_FCALL                                               'a'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.12 ms | 1397 KiB | 14 Q