3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = $a = array(); for ($i = 0; $i<5; $i++) { $a[] = $i; $b[] = $i; } print_r(array_merge($a, $b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/aGel4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $b, !1 = $a, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~3      !1, <array>
          1        ASSIGN                                                   !0, ~3
    3     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->9
    5     4    >   ASSIGN_DIM                                               !1
          5        OP_DATA                                                  !2
    6     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  !2
    3     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 5
         10      > JMPNZ                                                    ~9, ->4
    9    11    >   INIT_FCALL                                               'print_r'
         12        INIT_FCALL                                               'array_merge'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.93 ms | 1399 KiB | 17 Q