3v4l.org

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

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

End of function nek

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.77 ms | 1385 KiB | 13 Q