3v4l.org

run code in 300+ PHP versions simultaneously
<?php function recursiva($var = 1){ if($var <= 3){ return "el intento es ".$var."\n". recursiva(++$var); }else{ return "mayor o igual a ".$var; } } echo recursiva(1)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A91S8
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'recursiva'
          1        SEND_VAL                                                 1
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
          5      > RETURN                                                   1

Function recursiva:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A91S8
function name:  recursiva
number of ops:  15
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      1
    3     1        IS_SMALLER_OR_EQUAL                                      !0, 3
          2      > JMPZ                                                     ~1, ->12
    4     3    >   CONCAT                                           ~2      'el+intento+es+', !0
          4        CONCAT                                           ~3      ~2, '%0A'
          5        INIT_FCALL_BY_NAME                                       'recursiva'
          6        PRE_INC                                          ~4      !0
          7        SEND_VAL_EX                                              ~4
          8        DO_FCALL                                      0  $5      
          9        CONCAT                                           ~6      ~3, $5
         10      > RETURN                                                   ~6
         11*       JMP                                                      ->14
    5    12    >   CONCAT                                           ~7      'mayor+o+igual+a+', !0
         13      > RETURN                                                   ~7
    6    14*     > RETURN                                                   null

End of function recursiva

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.31 ms | 1402 KiB | 14 Q