3v4l.org

run code in 500+ PHP versions simultaneously
<?php $days = array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"); // Remove the last element "Sunday" from the array $lastDay = array_pop($days); // Append the last day at the beginning of the array $days = [$lastDay, ...$days]; print_r($days);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRJ8H
function name:  (null)
number of ops:  12
compiled vars:  !0 = $days, !1 = $lastDay
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    6     1        INIT_FCALL                                                   'array_pop'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
   10     5        INIT_ARRAY                                           ~5      !1
          6        ADD_ARRAY_UNPACK                                     ~5      !0
          7        ASSIGN                                                       !0, ~5
   11     8        INIT_FCALL                                                   'print_r'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.14 ms | 1780 KiB | 15 Q