3v4l.org

run code in 300+ PHP versions simultaneously
<?php $delim = ","; $start = 1; $items =2; $text = "do not include this, oh my god, thank you the lot of downvotes, geniuses *.*"; $whatiwant = implode($delim, array_slice(explode($delim, $text), $start,$items)); Echo $whatiwant;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XD0NV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $delim, !1 = $start, !2 = $items, !3 = $text, !4 = $whatiwant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2C'
    4     1        ASSIGN                                                   !1, 1
    5     2        ASSIGN                                                   !2, 2
    6     3        ASSIGN                                                   !3, 'do+not+include+this%2C+oh+my+god%2C+thank+you+the+lot+of+downvotes%2C+geniuses+%2A.%2A'
    7     4        INIT_FCALL                                               'implode'
          5        SEND_VAR                                                 !0
          6        INIT_FCALL                                               'array_slice'
          7        INIT_FCALL                                               'explode'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !4, $11
    8    18        ECHO                                                     !4
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.15 ms | 1012 KiB | 16 Q