3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.88 ms | 1395 KiB | 17 Q