3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP 7.3 and older $parts = ['apple', 'pear']; $fruits = array_merge(['banana', 'orange'], $parts, ['watermelon']); var_dump($fruits); // PHP 7.4 $parts = ['apple', 'pear']; $fruits = ['banana', 'orange', ...$parts, 'watermelon']; var_dump($fruits);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XHeQk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $parts, !1 = $fruits
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_merge'
          2        SEND_VAL                                                 <array>
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    9    10        ASSIGN                                                   !0, <array>
   10    11        INIT_ARRAY                                       ~7      'banana'
         12        ADD_ARRAY_ELEMENT                                ~7      'orange'
         13        ADD_ARRAY_UNPACK                                 ~7      !0
         14        ADD_ARRAY_ELEMENT                                ~7      'watermelon'
         15        ASSIGN                                                   !1, ~7
   11    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.49 ms | 1446 KiB | 15 Q