3v4l.org

run code in 500+ PHP versions simultaneously
<?php $oldArray = array(('_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'); $newArray = array(); foreach($oldArray as $key => $value) { if (substr($key,0,6) !== '_wpcf7') $newArray[$key] = $value; } print_r($newArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/BEGDW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $oldArray, !1 = $newArray, !2 = $value, !3 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   10     1        ASSIGN                                                       !1, <array>
   11     2      > FE_RESET_R                                           $6      !0, ->12
          3    > > FE_FETCH_R                                           ~7      $6, !2, ->12
          4    >   ASSIGN                                                       !3, ~7
   12     5        FRAMELESS_ICALL_3                substr              ~9      !3, 0
          6        OP_DATA                                                      6
          7        IS_NOT_IDENTICAL                                             ~9, '_wpcf7'
          8      > JMPZ                                                         ~10, ->11
   13     9    >   ASSIGN_DIM                                                   !1, !3
         10        OP_DATA                                                      !2
   11    11    > > JMP                                                          ->3
         12    >   FE_FREE                                                      $6
   15    13        INIT_FCALL                                                   'print_r'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.25 ms | 2559 KiB | 14 Q