3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "edvdr1 accepting requests since Tue Nov 19 16:22:32 2013"; $bits = explode(" ", $data); $useful = array_merge(array_slice($bits, 0, 2), implode(" ", array_slice($bits, 4))); var_dump($useful);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lZFI
function name:  (null)
number of ops:  28
compiled vars:  !0 = $data, !1 = $bits, !2 = $useful
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'edvdr1+accepting+requests+since+Tue+Nov+19+16%3A22%3A32+2013'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'array_merge'
          7        INIT_FCALL                                               'array_slice'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '+'
         15        INIT_FCALL                                               'array_slice'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 4
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                         $9      
         23        ASSIGN                                                   !2, $9
    5    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.19 ms | 1395 KiB | 23 Q