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; unset($numberClone[$i]); var_dump($numberClone); $numberClone = array_merge($numberClone); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
Branch analysis from position: 4
filename:       /in/gJUo4
function name:  (null)
number of ops:  18
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                                                      ->14
   10     4    >   ASSIGN                                                   !3, !1
   11     5        UNSET_DIM                                                !3, !4
   13     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !3
          8        DO_ICALL                                                 
   14     9        INIT_FCALL                                               'array_merge'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !3, $10
    8    13        PRE_INC                                                  !2
         14    >   COUNT                                            ~13     !1
         15        IS_SMALLER                                               !2, ~13
         16      > JMPNZ                                                    ~14, ->4
   15    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.69 ms | 1395 KiB | 17 Q