3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ilk = 5; $iki = 3; $ust = fact($ilk); $alt = fact($iki) * fact($ilk - $iki); echo $ust / $alt; function fact(int $sayi){ for(; $sayi<=0; $sayi--){ echo $sayi; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0g751
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ilk, !1 = $iki, !2 = $ust, !3 = $alt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, 3
    6     2        INIT_FCALL_BY_NAME                                       'fact'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !2, $6
    7     6        INIT_FCALL_BY_NAME                                       'fact'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $8      
          9        INIT_FCALL_BY_NAME                                       'fact'
         10        SUB                                              ~9      !0, !1
         11        SEND_VAL_EX                                              ~9
         12        DO_FCALL                                      0  $10     
         13        MUL                                              ~11     $8, $10
         14        ASSIGN                                                   !3, ~11
    8    15        DIV                                              ~13     !2, !3
         16        ECHO                                                     ~13
   14    17      > RETURN                                                   1

Function fact:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 2
Branch analysis from position: 6
Branch analysis from position: 2
filename:       /in/0g751
function name:  fact
number of ops:  7
compiled vars:  !0 = $sayi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1      > JMP                                                      ->4
   12     2    >   ECHO                                                     !0
   11     3        PRE_DEC                                                  !0
          4    >   IS_SMALLER_OR_EQUAL                                      !0, 0
          5      > JMPNZ                                                    ~2, ->2
   14     6    > > RETURN                                                   null

End of function fact

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.99 ms | 1395 KiB | 13 Q