3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(0 => 1, 1 => 2, 0 => 3); var_dump($a); $x = array(0 => 1, 1 => 2); $y = array(0 => 5, 2 => 3); $z = array_merge($x,$y); var_dump($z);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JYOOu
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $x, !2 = $y, !3 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !1, <array>
    5     5        ASSIGN                                                   !2, <array>
    6     6        INIT_FCALL                                               'array_merge'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.77 ms | 1385 KiB | 17 Q