3v4l.org

run code in 300+ PHP versions simultaneously
<?php $step = 5; $usernumber = 188; $myseries = range(0, 59, $step); $myseries = range(0, 59, 5); $check = round($usernumber/$step) * $step; echo "<br>".$check; if(in_array($check,$myseries)) echo "<br>".$check; else echo "<br>".max($myseries);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQtDK
function name:  (null)
number of ops:  36
compiled vars:  !0 = $step, !1 = $usernumber, !2 = $myseries, !3 = $check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        ASSIGN                                                   !1, 188
    4     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 59
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    6     8        INIT_FCALL                                               'range'
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 59
         11        SEND_VAL                                                 5
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    8    14        INIT_FCALL                                               'round'
         15        DIV                                              ~10     !1, !0
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                         $11     
         18        MUL                                              ~12     !0, $11
         19        ASSIGN                                                   !3, ~12
    9    20        CONCAT                                           ~14     '%3Cbr%3E', !3
         21        ECHO                                                     ~14
   10    22        INIT_FCALL                                               'in_array'
         23        SEND_VAR                                                 !3
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $15     
         26      > JMPZ                                                     $15, ->30
   11    27    >   CONCAT                                           ~16     '%3Cbr%3E', !3
         28        ECHO                                                     ~16
         29      > JMP                                                      ->35
   13    30    >   INIT_FCALL                                               'max'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                         $17     
         33        CONCAT                                           ~18     '%3Cbr%3E', $17
         34        ECHO                                                     ~18
         35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.76 ms | 1396 KiB | 21 Q