3v4l.org

run code in 300+ PHP versions simultaneously
<?php $errors = array('general' => 'De velden met een sterretje(*) zijn verplicht.', 'personal' => array('voornaam' => '!', 'achternaam' => '!', 'datum' => '!', 'telefoon1' => '!'), 'test' => 'Een test.', 'test2' => array('test2a' => 'Dit is test 2', 'test2b' => 'met een array.')); $string = ''; foreach ($errors as $key => $value) { if ($key !== 'personal') { $string .= is_string($value) ? $value : implode(' ', $value); $string .= ' '; } } echo $string;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/oUpn3
function name:  (null)
number of ops:  22
compiled vars:  !0 = $errors, !1 = $string, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, ''
    5     2      > FE_RESET_R                                       $6      !0, ->19
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->19
          4    >   ASSIGN                                                   !3, ~7
    6     5        IS_NOT_IDENTICAL                                         !3, 'personal'
          6      > JMPZ                                                     ~9, ->18
    7     7    >   TYPE_CHECK                                   64          !2
          8      > JMPZ                                                     ~10, ->11
          9    >   QM_ASSIGN                                        ~11     !2
         10      > JMP                                                      ->16
         11    >   INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '+'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $12     
         15        QM_ASSIGN                                        ~11     $12
         16    >   ASSIGN_OP                                     8          !1, ~11
    8    17        ASSIGN_OP                                     8          !1, '+'
    5    18    > > JMP                                                      ->3
         19    >   FE_FREE                                                  $6
   11    20        ECHO                                                     !1
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.39 ms | 1451 KiB | 14 Q