3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($number) { $num=fib($number); echo ' | '.$number.' number fibinache is '.$num; } function fib($num,$count=0,$plast=0,$last=1){ if($count < $num){ $newlast=$plast+$last; echo ' | '.$count.': '.$newlast; $count++; return fib($num,$count,$last,$newlast); } else { return $last; } } f(10); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LA1Cd
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 10
          2        DO_FCALL                                      0          
   20     3      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LA1Cd
function name:  f
number of ops:  10
compiled vars:  !0 = $number, !1 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL_BY_NAME                                       'fib'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
    4     5        CONCAT                                           ~4      '+%7C+', !0
          6        CONCAT                                           ~5      ~4, '+number+fibinache+is+'
          7        CONCAT                                           ~6      ~5, !1
          8        ECHO                                                     ~6
    5     9      > RETURN                                                   null

End of function f

Function fib:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LA1Cd
function name:  fib
number of ops:  23
compiled vars:  !0 = $num, !1 = $count, !2 = $plast, !3 = $last, !4 = $newlast
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
          2        RECV_INIT                                        !2      0
          3        RECV_INIT                                        !3      1
    8     4        IS_SMALLER                                               !1, !0
          5      > JMPZ                                                     ~5, ->21
    9     6    >   ADD                                              ~6      !2, !3
          7        ASSIGN                                                   !4, ~6
   10     8        CONCAT                                           ~8      '+%7C+', !1
          9        CONCAT                                           ~9      ~8, '%3A+'
         10        CONCAT                                           ~10     ~9, !4
         11        ECHO                                                     ~10
   11    12        PRE_INC                                                  !1
   12    13        INIT_FCALL_BY_NAME                                       'fib'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAR_EX                                              !1
         16        SEND_VAR_EX                                              !3
         17        SEND_VAR_EX                                              !4
         18        DO_FCALL                                      0  $12     
         19      > RETURN                                                   $12
         20*       JMP                                                      ->22
   14    21    > > RETURN                                                   !3
   16    22*     > RETURN                                                   null

End of function fib

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.76 ms | 1403 KiB | 14 Q