3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on 34HlP
Output for 5.6.28, 7.0.20 - 7.2.0
Array ( [time] => 1445032200 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.6
Array ( [time] => 1462289944 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.5
Array ( [time] => 1459656435 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.4
Array ( [time] => 1457628553 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.3
Array ( [time] => 1458322678 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.2
Array ( [time] => 1458691254 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.1
Array ( [time] => 1458791278 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 7.0.0
Array ( [time] => 1459053878 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.21
Array ( [time] => 1462186162 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.20
Array ( [time] => 1460257564 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.19
Array ( [time] => 1457398756 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.18
Array ( [time] => 1458034407 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.17
Array ( [time] => 1458422604 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.16
Array ( [time] => 1459143118 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.15
Array ( [time] => 1459232583 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.14
Array ( [time] => 1459585023 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.13
Array ( [time] => 1460723852 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.12
Array ( [time] => 1461121551 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.11
Array ( [time] => 1461489657 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.10
Array ( [time] => 1461583879 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.9
Array ( [time] => 1461775224 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.6.8
Array ( [time] => 1461979974 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.35
Array ( [time] => 1463936286 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.34
Array ( [time] => 1460351938 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.33
Array ( [time] => 1457494622 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.32
Array ( [time] => 1458220577 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.31
Array ( [time] => 1458519665 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.30
Array ( [time] => 1459498583 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.29
Array ( [time] => 1460862124 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.28
Array ( [time] => 1461219494 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.27
Array ( [time] => 1461312494 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.26
Array ( [time] => 1461680012 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.25
Array ( [time] => 1461877476 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.5.24
Array ( [time] => 1464061296 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.41 - 5.4.45
Array ( [time] => 1445032217 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.36 - 5.4.40
Array ( [time] => 1445032218 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.30 - 5.4.35
Array ( [time] => 1445032219 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.24 - 5.4.29
Array ( [time] => 1445032220 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.18 - 5.4.23
Array ( [time] => 1445032221 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.11 - 5.4.17
Array ( [time] => 1445032222 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.8 - 5.4.10
Array ( [time] => 1445032223 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.7
Array ( [time] => 1445905016 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.6
Array ( [time] => 1445909409 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.5
Array ( [time] => 1445914783 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.4
Array ( [time] => 1445919991 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.3
Array ( [time] => 1445925912 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.2
Array ( [time] => 1445932067 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.4.1
Array ( [time] => 1445938574 [name] => Test org [tagline] => whatever dude [about] => [url] => [organization_type] => )
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/tFLig on line 3
Process exited with code 255.