3v4l.org

run code in 300+ 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 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/BEGDW
function name:  (null)
number of ops:  20
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, ->15
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->15
          4    >   ASSIGN                                                   !3, ~7
   12     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !3
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 6
          9        DO_ICALL                                         $9      
         10        IS_NOT_IDENTICAL                                         $9, '_wpcf7'
         11      > JMPZ                                                     ~10, ->14
   13    12    >   ASSIGN_DIM                                               !1, !3
         13        OP_DATA                                                  !2
   11    14    > > JMP                                                      ->3
         15    >   FE_FREE                                                  $6
   15    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.46 ms | 1006 KiB | 15 Q