3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('H','e','l','l','l'); $arraySize = count($array); $bufferArray = array(); for ($i = $arraySize - 1; $i >= 0; $i--) { $bufferArray[] = $array[$i]; } print_r($bufferArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/tIgKt
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $arraySize, !2 = $bufferArray, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~5      !0
          2        ASSIGN                                                   !1, ~5
    5     3        ASSIGN                                                   !2, <array>
    7     4        SUB                                              ~8      !1, 1
          5        ASSIGN                                                   !3, ~8
          6      > JMP                                                      ->11
    8     7    >   FETCH_DIM_R                                      ~11     !0, !3
          8        ASSIGN_DIM                                               !2
          9        OP_DATA                                                  ~11
    7    10        PRE_DEC                                                  !3
         11    >   IS_SMALLER_OR_EQUAL                                      0, !3
         12      > JMPNZ                                                    ~13, ->7
   11    13    >   INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.8 ms | 1395 KiB | 15 Q