3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = range(1, 25000); $to = array_combine(range(25001, 50000), range(25001, 50000)); foreach($from as $i => $v) { $to = array_merge($from, array($i => $v)); echo $i."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 30
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 30
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/XVPZa
function name:  (null)
number of ops:  32
compiled vars:  !0 = $from, !1 = $to, !2 = $v, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 25000
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        INIT_FCALL                                               'array_combine'
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 25001
          8        SEND_VAL                                                 50000
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        INIT_FCALL                                               'range'
         12        SEND_VAL                                                 25001
         13        SEND_VAL                                                 50000
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !1, $8
    4    18      > FE_RESET_R                                       $10     !0, ->30
         19    > > FE_FETCH_R                                       ~11     $10, !2, ->30
         20    >   ASSIGN                                                   !3, ~11
    5    21        INIT_FCALL                                               'array_merge'
         22        SEND_VAR                                                 !0
         23        INIT_ARRAY                                       ~13     !2, !3
         24        SEND_VAL                                                 ~13
         25        DO_ICALL                                         $14     
         26        ASSIGN                                                   !1, $14
    6    27        CONCAT                                           ~16     !3, '%0A'
         28        ECHO                                                     ~16
    4    29      > JMP                                                      ->19
         30    >   FE_FREE                                                  $10
    7    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.73 ms | 1396 KiB | 19 Q