3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test = array ("testing"); $str = 'a,b,c,d'; $parts = explode(',', $str); $test = array_merge($test, $parts); print_r($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r7vaB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test, !1 = $str, !2 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !0, <array>
    5     2        ASSIGN                                                   !1, 'a%2Cb%2Cc%2Cd'
    6     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    8     8        INIT_FCALL                                               'array_merge'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !0, $8
   10    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.45 ms | 1386 KiB | 19 Q