3v4l.org

run code in 300+ PHP versions simultaneously
<?php $step = 5; $usernumber = 18; $myseries = range(0, 59, $step); $myseries = range(0, 59, 5); foreach($myseries as $num) { echo $num.'<br />'; $check = round($usernumber/$step) * $step; echo "<br>".$check."--"; //if($usernumber is close to $num) { // echo 'Matching number is '.$num; //} }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 28
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 28
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/tM0da
function name:  (null)
number of ops:  30
compiled vars:  !0 = $step, !1 = $usernumber, !2 = $myseries, !3 = $num, !4 = $check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        ASSIGN                                                   !1, 18
    4     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 59
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !2, $7
    6     8        INIT_FCALL                                               'range'
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 59
         11        SEND_VAL                                                 5
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    7    14      > FE_RESET_R                                       $11     !2, ->28
         15    > > FE_FETCH_R                                               $11, !3, ->28
    8    16    >   CONCAT                                           ~12     !3, '%3Cbr+%2F%3E'
         17        ECHO                                                     ~12
    9    18        INIT_FCALL                                               'round'
         19        DIV                                              ~13     !1, !0
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                         $14     
         22        MUL                                              ~15     !0, $14
         23        ASSIGN                                                   !4, ~15
   10    24        CONCAT                                           ~17     '%3Cbr%3E', !4
         25        CONCAT                                           ~18     ~17, '--'
         26        ECHO                                                     ~18
    7    27      > JMP                                                      ->15
         28    >   FE_FREE                                                  $11
   16    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.8 ms | 1396 KiB | 17 Q