3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array('Magento\CatalogSearch\Model\Layer\Filter\Category','Magento\CatalogSearch\Model\Layer\Filter\Attribute','Magento\CatalogSearch\Model\Layer\Filter\Attribute','Magento\CatalogSearch\Model\Layer\Filter\Attribute','Magento\CatalogSearch\Model\Layer\Filter\Attribute'); print_r($array); $data = array_shift($array); $array[]= $data; print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WULpM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'print_r'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    5     4        INIT_FCALL                                                   'array_shift'
          5        SEND_REF                                                     !0
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        ASSIGN_DIM                                                   !0
          9        OP_DATA                                                      !1
    7    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.83 ms | 2388 KiB | 15 Q