3v4l.org

run code in 300+ PHP versions simultaneously
<?php $costs = []; $numbers = [12,67,205,305,256]; for ($x = 0; $x < sizeof($numbers); $x++) { $numberClone = $numbers; var_dump($numberClone); unset($numberClone[$i]); var_dump($numberClone); die; $numberClone = array_merge($numberClone); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/Gj8Ic
function name:  (null)
number of ops:  22
compiled vars:  !0 = $costs, !1 = $numbers, !2 = $x, !3 = $numberClone, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->18
   10     4    >   ASSIGN                                                   !3, !1
   11     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !3
          7        DO_ICALL                                                 
   12     8        UNSET_DIM                                                !3, !4
   14     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
   15    12      > EXIT                                                     
   16    13*       INIT_FCALL                                               'array_merge'
         14*       SEND_VAR                                                 !3
         15*       DO_ICALL                                         $11     
         16*       ASSIGN                                                   !3, $11
    8    17*       PRE_INC                                                  !2
         18    >   COUNT                                            ~14     !1
         19        IS_SMALLER                                               !2, ~14
         20      > JMPNZ                                                    ~15, ->4
   17    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.09 ms | 1395 KiB | 17 Q