3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2]; $b = [3,4]; next($b); foreach($a as &$v) {echo "$v\n"; $a = $b;}

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 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 126) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/r6gXt
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
          1        ASSIGN                                                   !1, <array>
          2        INIT_FCALL                                               'next'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
          5      > FE_RESET_RW                                      $6      !0, ->12
          6    > > FE_FETCH_RW                                              $6, !2, ->12
          7    >   NOP                                                      
          8        FAST_CONCAT                                      ~7      !2, '%0A'
          9        ECHO                                                     ~7
         10        ASSIGN                                                   !0, !1
         11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.41 ms | 1386 KiB | 15 Q