3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 10; $test = 46; for($offset = 0;$offset<=$test;$offset+=$limit) { echo $limit.' - '. $offset.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/9bJg9
function name:  (null)
number of ops:  12
compiled vars:  !0 = $limit, !1 = $test, !2 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 46
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->9
    7     4    >   CONCAT                                           ~6      !0, '+-+'
          5        CONCAT                                           ~7      ~6, !2
          6        CONCAT                                           ~8      ~7, '%0A'
          7        ECHO                                                     ~8
    6     8        ASSIGN_OP                                     1          !2, !0
          9    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         10      > JMPNZ                                                    ~10, ->4
    9    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.29 ms | 1393 KiB | 13 Q