3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getX($count){ $count++; if($count <= 10){ $countTemp = getX($count); echo $countTemp; //Shouldn't this skipped? } return $count; } getX(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiTu9
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'getx'
          1        SEND_VAL                                                 0
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

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

End of function getx

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.85 ms | 1397 KiB | 14 Q