3v4l.org

run code in 300+ 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:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'implode'
          1        SEND_VAL                                                 '%2C'
          2        INIT_FCALL                                               'array_slice'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAL                                                 '1%2C2%2C3%2C4%2C5%2C6%2C7'
          6        SEND_VAL                                                 5
          7        DO_ICALL                                         $0      
          8        SEND_VAR                                                 $0
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 4
         11        DO_ICALL                                         $1      
         12        SEND_VAR                                                 $1
         13        DO_ICALL                                         $2      
         14        ECHO                                                     $2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.6 ms | 1437 KiB | 16 Q