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; $i >= 0; $i--) { $bufferArray[] = $array[$i]; } print_r($bufferArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/fMgb8
function name:  (null)
number of ops:  16
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        ASSIGN                                                   !3, !1
          5      > JMP                                                      ->10
    8     6    >   FETCH_DIM_R                                      ~10     !0, !3
          7        ASSIGN_DIM                                               !2
          8        OP_DATA                                                  ~10
    7     9        PRE_DEC                                                  !3
         10    >   IS_SMALLER_OR_EQUAL                                      0, !3
         11      > JMPNZ                                                    ~12, ->6
   11    12    >   INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.44 ms | 1395 KiB | 15 Q