3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo implode(',', array_slice(explode(',', '1,2,3,4,5,6,7', 4 + 1), 0, 4));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4L4S
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'array_slice'
          1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%2C'
          3        SEND_VAL                                                     '1%2C2%2C3%2C4%2C5%2C6%2C7'
          4        SEND_VAL                                                     5
          5        DO_ICALL                                             $0      
          6        SEND_VAR                                                     $0
          7        SEND_VAL                                                     0
          8        SEND_VAL                                                     4
          9        DO_ICALL                                             $1      
         10        FRAMELESS_ICALL_2                implode             ~2      '%2C', $1
         11        ECHO                                                         ~2
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.05 ms | 2053 KiB | 15 Q