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(), 'int' => 2) + $config_data; $config_data['boolean'] = array(); $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 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/r41sR
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        ASSIGN                                                   !1, <array>
    6     6        ASSIGN                                                   !2, 0
    7     7        ASSIGN                                                   !0, <array>
    8     8      > FE_RESET_R                                       $12     !0, ->18
          9    > > FE_FETCH_R                                       ~13     $12, !3, ->18
         10    >   ASSIGN                                                   !4, ~13
    9    11        INIT_FCALL                                               'array_merge'
         12        SEND_VAR                                                 !1
         13        INIT_ARRAY                                       ~15     !3, !4
         14        SEND_VAL                                                 ~15
         15        DO_ICALL                                         $16     
         16        ASSIGN                                                   !1, $16
    8    17      > JMP                                                      ->9
         18    >   FE_FREE                                                  $12
   11    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $18     
         22        ECHO                                                     $18
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.36 ms | 1395 KiB | 17 Q