3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' ); $array = array_reverse($array); $chunk = array_chunk($array, 3); $array = array_map('array_reverse', $chunk); print_r(array_reverse($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/STZFf
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $chunk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'array_reverse'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   14     5        INIT_FCALL                                               'array_chunk'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 3
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
   15    10        INIT_FCALL                                               'array_map'
         11        SEND_VAL                                                 'array_reverse'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
   16    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'array_reverse'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.41 ms | 1008 KiB | 17 Q