3v4l.org

run code in 300+ PHP versions simultaneously
<?php $custom_fields = [ 'foo' => '17', ]; $time_intervals = ['day', 'month', 'year', 'hour', 'minute', 'period']; $data = [ 'fooday' => '17', 'foomonth' => 'March', 'name' => 'Chris' ]; var_dump(array_map(array_keys(null, $custom_fields, $time_intervals))); foreach (array_keys($custom_fields) as $name) { foreach ($time_intervals as $interval_name) { // ; } } var_dump($data); // Result should be array that only contains $data['name'] = 'Chris'
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 22
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/3i41r
function name:  (null)
number of ops:  29
compiled vars:  !0 = $custom_fields, !1 = $time_intervals, !2 = $data, !3 = $name, !4 = $interval_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, <array>
   15     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'array_map'
          5        INIT_FCALL                                               'array_keys'
          6        SEND_VAL                                                 null
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                                 
   18    14        INIT_FCALL                                               'array_keys'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $11     
         17      > FE_RESET_R                                       $12     $11, ->24
         18    > > FE_FETCH_R                                               $12, !3, ->24
   19    19    > > FE_RESET_R                                       $13     !1, ->22
         20    > > FE_FETCH_R                                               $13, !4, ->22
         21    > > JMP                                                      ->20
         22    >   FE_FREE                                                  $13
   18    23      > JMP                                                      ->18
         24    >   FE_FREE                                                  $12
   25    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                                 
   27    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.62 ms | 1396 KiB | 19 Q