3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i <= 1000; $i++) { if($i%7 == 0) { echo $i.':'; for($ii = 1; $ii < $i; $ii++) { if($i%$ii == 0) { echo ' '.$ii; } } echo "\n"; } }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 21
Branch analysis from position: 21
Jump found. Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Jump found. Position 1 = -2
Branch analysis from position: 2
Jump found. Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
Jump found. Position 1 = 16
Branch analysis from position: 16
Jump found. Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Jump found. Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Branch analysis from position: 2
Branch analysis from position: 9
Jump found. Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Jump found. Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Branch analysis from position: 9
Branch analysis from position: 14
Branch analysis from position: 19
filename:       /in/PJvqa
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i, !1 = $ii
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 1
         1      > JMP                                                      ->21
   3     2    >   MOD                                              ~3      !0, 7
         3        IS_EQUAL                                         ~4      ~3, 0
         4      > JMPZ                                                     ~4, ->19
   4     5    >   CONCAT                                           ~5      !0, '%3A'
         6        ECHO                                                     ~5
   5     7        ASSIGN                                                   !1, 1
         8      > JMP                                                      ->16
   6     9    >   MOD                                              ~7      !0, !1
        10        IS_EQUAL                                         ~8      ~7, 0
        11      > JMPZ                                                     ~8, ->14
   7    12    >   CONCAT                                           ~9      '+', !1
        13        ECHO                                                     ~9
   5    14    >   POST_INC                                         ~10     !1
        15        FREE                                                     ~10
        16    >   IS_SMALLER                                       ~11     !1, !0
        17      > JMPNZ                                                    ~11, ->9
  10    18    >   ECHO                                                     '%0A'
   2    19    >   POST_INC                                         ~12     !0
        20        FREE                                                     ~12
        21    >   IS_SMALLER_OR_EQUAL                              ~13     !0, 1000
        22      > JMPNZ                                                    ~13, ->2
        23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0