3v4l.org

run code in 300+ PHP versions simultaneously
<?php $errors = array(); $i = 0; $config_data = array('new_key' => 'new_value', 'new_array' => array(), 'boolean' => array()); foreach ($config_data as $key => $value) { $errors = array_merge($errors, array($key => $value)); } echo var_dump($errors);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/nGoaj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $errors, !1 = $i, !2 = $config_data, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
    4     2        ASSIGN                                                   !2, <array>
    5     3      > FE_RESET_R                                       $8      !2, ->13
          4    > > FE_FETCH_R                                       ~9      $8, !3, ->13
          5    >   ASSIGN                                                   !4, ~9
    6     6        INIT_FCALL                                               'array_merge'
          7        SEND_VAR                                                 !0
          8        INIT_ARRAY                                       ~11     !3, !4
          9        SEND_VAL                                                 ~11
         10        DO_ICALL                                         $12     
         11        ASSIGN                                                   !0, $12
    5    12      > JMP                                                      ->4
         13    >   FE_FREE                                                  $8
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $14     
         17        ECHO                                                     $14
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.61 ms | 1395 KiB | 17 Q