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>'; array_reverse($squirt_path22, true); print_r($squirt_path22);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iroOC
function name:  (null)
number of ops:  18
compiled vars:  !0 = $squirt_path22, !1 = $firs_val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_shift'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        ECHO                                                     '---shifted--%3Cbr%3E'
    8     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   10     9        ECHO                                                     '%3Cbr%3E---reversed--%3Cbr%3E'
   11    10        INIT_FCALL                                               'array_reverse'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                                 
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.84 ms | 1394 KiB | 19 Q