3v4l.org

run code in 300+ PHP versions simultaneously
<?php function multipliedByReverseOrder($n) { for ($i = 1000; $i <= $n; $i++) { $initial_count = 1000; $j = 4; if (2 * $j - 13 * $i == 1) { $initial_count++; $result=2*$j-13*$i; if($result==2*$j-13*$i){ return; } $initial_count=$result; } echo $i . "The Result is:"; } } multipliedByReverseOrder(9999);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cBUJ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'multipliedbyreverseorder'
          1        SEND_VAL                                                 9999
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function multipliedbyreverseorder:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 3
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 3
Branch analysis from position: 27
Branch analysis from position: 3
Branch analysis from position: 22
filename:       /in/3cBUJ
function name:  multipliedByReverseOrder
number of ops:  28
compiled vars:  !0 = $n, !1 = $i, !2 = $initial_count, !3 = $j, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 1000
          2      > JMP                                                      ->25
    5     3    >   ASSIGN                                                   !2, 1000
    6     4        ASSIGN                                                   !3, 4
    7     5        MUL                                              ~8      !3, 2
          6        MUL                                              ~9      !1, 13
          7        SUB                                              ~10     ~8, ~9
          8        IS_EQUAL                                                 ~10, 1
          9      > JMPZ                                                     ~11, ->22
    8    10    >   PRE_INC                                                  !2
    9    11        MUL                                              ~13     !3, 2
         12        MUL                                              ~14     !1, 13
         13        SUB                                              ~15     ~13, ~14
         14        ASSIGN                                                   !4, ~15
   10    15        MUL                                              ~17     !3, 2
         16        MUL                                              ~18     !1, 13
         17        SUB                                              ~19     ~17, ~18
         18        IS_EQUAL                                                 !4, ~19
         19      > JMPZ                                                     ~20, ->21
   11    20    > > RETURN                                                   null
   13    21    >   ASSIGN                                                   !2, !4
   15    22    >   CONCAT                                           ~22     !1, 'The+Result+is%3A'
         23        ECHO                                                     ~22
    4    24        PRE_INC                                                  !1
         25    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         26      > JMPNZ                                                    ~24, ->3
   17    27    > > RETURN                                                   null

End of function multipliedbyreverseorder

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.51 ms | 1403 KiB | 14 Q