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), 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/UQnZv
function name:  (null)
number of ops:  24
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                                               'array_slice'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 4
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !2, $8
    5    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1395 KiB | 21 Q