3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.06 ms | 1393 KiB | 13 Q