3v4l.org

run code in 300+ PHP versions simultaneously
<?php $usernumber = 18; $myseries = range(0, 59, 5); foreach($myseries as $num) { echo $num.'<br />'; $check = round(18/5) * 5; 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 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/fUM2m
function name:  (null)
number of ops:  21
compiled vars:  !0 = $usernumber, !1 = $myseries, !2 = $num, !3 = $check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 18
    4     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 59
          4        SEND_VAL                                                 5
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    5     7      > FE_RESET_R                                       $7      !1, ->19
          8    > > FE_FETCH_R                                               $7, !2, ->19
    6     9    >   CONCAT                                           ~8      !2, '%3Cbr+%2F%3E'
         10        ECHO                                                     ~8
    7    11        INIT_FCALL                                               'round'
         12        SEND_VAL                                                 3.6
         13        DO_ICALL                                         $9      
         14        MUL                                              ~10     $9, 5
         15        ASSIGN                                                   !3, ~10
    8    16        CONCAT                                           ~12     '%3Cbr%3E', !3
         17        ECHO                                                     ~12
    5    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $7
   14    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1395 KiB | 17 Q