3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = ['jan', 'feb', 'mar', 'april', 'may']; array_shift($months); array_unshift($months, 'jan'); print_r($months); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mY80C
function name:  (null)
number of ops:  12
compiled vars:  !0 = $months
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_shift'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'array_unshift'
          5        SEND_REF                                                 !0
          6        SEND_VAL                                                 'jan'
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.22 ms | 1394 KiB | 19 Q