3v4l.org

run code in 300+ PHP versions simultaneously
<?php $squirt_path22 = array(123423, 'data', 'test'); //$firs_val = array_shift($squirt_path22); echo '---shifted--<br>'; print_r($squirt_path22); echo '<br>---reversed--<br>'; $reversedArray = array_reverse($squirt_path22, true); print_r($reversedArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NEQek
function name:  (null)
number of ops:  15
compiled vars:  !0 = $squirt_path22, !1 = $reversedArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ECHO                                                     '---shifted--%3Cbr%3E'
    8     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   10     5        ECHO                                                     '%3Cbr%3E---reversed--%3Cbr%3E'
   11     6        INIT_FCALL                                               'array_reverse'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
   12    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.7 ms | 1394 KiB | 17 Q