3v4l.org

run code in 300+ PHP versions simultaneously
<?php $args = ["name"=>"Test org","tagline"=>"whatever dude","urls"=>"http://www.whatever.com"]; $neworg = [ 'time' => $_SERVER['REQUEST_TIME'], 'name' => '', 'tagline' => '', 'about' => '', 'url' => '', 'organization_type' => '', ]; foreach ($args as $arg => $value) { if (array_key_exists($arg, $neworg)) { $neworg[$arg] = $value; } } print_r($neworg);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/tFLig
function name:  (null)
number of ops:  23
compiled vars:  !0 = $args, !1 = $neworg, !2 = $value, !3 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        FETCH_R                      global              ~5      '_SERVER'
          2        FETCH_DIM_R                                      ~6      ~5, 'REQUEST_TIME'
          3        INIT_ARRAY                                       ~7      ~6, 'time'
    7     4        ADD_ARRAY_ELEMENT                                ~7      '', 'name'
    8     5        ADD_ARRAY_ELEMENT                                ~7      '', 'tagline'
    9     6        ADD_ARRAY_ELEMENT                                ~7      '', 'about'
   10     7        ADD_ARRAY_ELEMENT                                ~7      '', 'url'
   11     8        ADD_ARRAY_ELEMENT                                ~7      '', 'organization_type'
    5     9        ASSIGN                                                   !1, ~7
   13    10      > FE_RESET_R                                       $9      !0, ->18
         11    > > FE_FETCH_R                                       ~10     $9, !2, ->18
         12    >   ASSIGN                                                   !3, ~10
   14    13        ARRAY_KEY_EXISTS                                         !3, !1
         14      > JMPZ                                                     ~12, ->17
   15    15    >   ASSIGN_DIM                                               !1, !3
         16        OP_DATA                                                  !2
   13    17    > > JMP                                                      ->11
         18    >   FE_FREE                                                  $9
   18    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.44 ms | 1395 KiB | 15 Q