3v4l.org

run code in 300+ PHP versions simultaneously
<?php $poop = array(); $arr[23] = "poop"; $arr[24] = "fart"; $result = array_merge($poop,$arr); var_dump($result); $somethingElse = $poop + $arr; var_dump($somethingElse);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mj1Mk
function name:  (null)
number of ops:  19
compiled vars:  !0 = $poop, !1 = $arr, !2 = $result, !3 = $somethingElse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN_DIM                                               !1, 23
          2        OP_DATA                                                  'poop'
    7     3        ASSIGN_DIM                                               !1, 24
          4        OP_DATA                                                  'fart'
    9     5        INIT_FCALL                                               'array_merge'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   12    13        ADD                                              ~10     !0, !1
         14        ASSIGN                                                   !3, ~10
   13    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.5 ms | 1386 KiB | 17 Q