3v4l.org

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

Function calcnextfib:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmsjD
function name:  calcNextFib
number of ops:  12
compiled vars:  !0 = $cur, !1 = $old, !2 = $tmpCur
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      0
          1        RECV_INIT                                        !1      1
    4     2        ASSIGN                                                   !2, !0
    5     3        ADD                                              ~4      !1, !0
          4        ASSIGN                                                   !0, ~4
    6     5        ASSIGN                                                   !1, !2
    8     6        INIT_FCALL_BY_NAME                                       'calcNextFib'
          7        SEND_VAR_EX                                              !0
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $7      
         10      > RETURN                                                   $7
    9    11*     > RETURN                                                   null

End of function calcnextfib

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.37 ms | 1397 KiB | 14 Q