3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1,30); ?> <div> <?php foreach($range as $i => $r) { if(!empty($i) && $i % 10 == 0) { echo '</div><div>'; } echo $r . PHP_EOL; } ?> </div>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 17
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/1JfZV
function name:  (null)
number of ops:  23
compiled vars:  !0 = $range, !1 = $r, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 30
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        ECHO                                                     '%3Cdiv%3E%0A++++'
    5     6      > FE_RESET_R                                       $5      !0, ->20
          7    > > FE_FETCH_R                                       ~6      $5, !1, ->20
          8    >   ASSIGN                                                   !2, ~6
    6     9        ISSET_ISEMPTY_CV                                 ~8      !2
         10        BOOL_NOT                                         ~9      ~8
         11      > JMPZ_EX                                          ~9      ~9, ->15
         12    >   MOD                                              ~10     !2, 10
         13        IS_EQUAL                                         ~11     ~10, 0
         14        BOOL                                             ~9      ~11
         15    > > JMPZ                                                     ~9, ->17
    7    16    >   ECHO                                                     '%3C%2Fdiv%3E%3Cdiv%3E'
    9    17    >   CONCAT                                           ~12     !1, '%0A'
         18        ECHO                                                     ~12
    5    19      > JMP                                                      ->7
         20    >   FE_FREE                                                  $5
   12    21        ECHO                                                     '%3C%2Fdiv%3E'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.47 ms | 1010 KiB | 14 Q