3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [0]; foreach ($array as &$value) { print $value.PHP_EOL; $array[] = $value + 1; }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/EdqjS
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1      > FE_RESET_RW                                          $3      !0, ->9
          2    > > FE_FETCH_RW                                                  $3, !1, ->9
    6     3    >   CONCAT                                               ~4      !1, '%0A'
          4        ECHO                                                         ~4
    7     5        ADD                                                  ~6      !1, 1
          6        ASSIGN_DIM                                                   !0
          7        OP_DATA                                                      ~6
    5     8      > JMP                                                          ->2
          9    >   FE_FREE                                                      $3
    8    10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.09 ms | 1655 KiB | 13 Q