3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["_wpcf7" => 3, "_wpcf7_version" => "4.9.2", "_wpcf7_locale" => "en_US", "_wpcf7_unit_tag" => "wpcf7-f3-p2-o1", "_wpcf7_container_post" => 2, "your-name" => "sad", "your-subject" => "sad", "your-message" => "sdsa"]; $keys = array_keys($arr); $count = count($keys)-1; $namearr=[]; for($i = $count; $i >$count-3;$i-- ){ $namearr[$keys[$i]] = $arr[$keys[$i]]; } var_dump($namearr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
Branch analysis from position: 11
filename:       /in/L9Cmp
function name:  (null)
number of ops:  24
compiled vars:  !0 = $arr, !1 = $keys, !2 = $count, !3 = $namearr, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   13     5        COUNT                                            ~8      !1
          6        SUB                                              ~9      ~8, 1
          7        ASSIGN                                                   !2, ~9
   14     8        ASSIGN                                                   !3, <array>
   15     9        ASSIGN                                                   !4, !2
         10      > JMP                                                      ->17
   16    11    >   FETCH_DIM_R                                      ~13     !1, !4
         12        FETCH_DIM_R                                      ~15     !1, !4
         13        FETCH_DIM_R                                      ~16     !0, ~15
         14        ASSIGN_DIM                                               !3, ~13
         15        OP_DATA                                                  ~16
   15    16        PRE_DEC                                                  !4
         17    >   SUB                                              ~18     !2, 3
         18        IS_SMALLER                                               ~18, !4
         19      > JMPNZ                                                    ~19, ->11
   18    20    >   INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.08 ms | 1006 KiB | 15 Q