3v4l.org

run code in 300+ PHP versions simultaneously
<?php $remainingPoints = ['a','b','c','d','e']; $batchCount = 3; $batchPoints = array_slice($remainingPoints, 0, $batchCount); $remainingPoints = array_slice($remainingPoints, $batchCount); print_r($remainingPoints);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p4eMB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $remainingPoints, !1 = $batchCount, !2 = $batchPoints
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 3
    6     2        INIT_FCALL                                               'array_slice'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    7     8        INIT_FCALL                                               'array_slice'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !0, $7
    9    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
301.27 ms | 1394 KiB | 18 Q