3v4l.org

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

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

End of function aabbcc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.73 ms | 1397 KiB | 14 Q