3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myString = "14f05000034e69"; $newArray = array(); for ($index=0; $index<strlen($myString)-1; $index+=2) { $newArray[] = $myString[$index+1]; $newArray[] = $myString[$index]; } print_r($newArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
filename:       /in/mtdca
function name:  (null)
number of ops:  20
compiled vars:  !0 = $myString, !1 = $newArray, !2 = $index
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '14f05000034e69'
    5     1        ASSIGN                                                       !1, <array>
    6     2        ASSIGN                                                       !2, 0
          3      > JMP                                                          ->12
    8     4    >   ADD                                                  ~7      !2, 1
          5        FETCH_DIM_R                                          ~8      !0, ~7
          6        ASSIGN_DIM                                                   !1
          7        OP_DATA                                                      ~8
    9     8        FETCH_DIM_R                                          ~10     !0, !2
          9        ASSIGN_DIM                                                   !1
         10        OP_DATA                                                      ~10
    6    11        ASSIGN_OP                                         1          !2, 2
         12    >   STRLEN                                               ~12     !0
         13        SUB                                                  ~13     ~12, 1
         14        IS_SMALLER                                                   !2, ~13
         15      > JMPNZ                                                        ~14, ->4
   12    16    >   INIT_FCALL                                                   'print_r'
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.71 ms | 3188 KiB | 14 Q