3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = [ [ 'url' => 'website.com1/etcetcetc', 'itag' => 43, 'quality' => 'medium', 'something' => 'nill' ], [ 'url' => 'website.com2/etcetcetc', 'itag' => 18, 'quality' => 'medium', 'something' => 'nill' ], [ 'url' => 'website.com3/etcetcetc', 'itag' => 5, 'quality' => 'small', 'something' => 'nill' ], [ 'url' => 'website.com4/etcetcetc', 'itag' => 36, 'quality' => 'small', 'something' => 'nill' ], [ 'url' => 'website.com5/etcetcetc', 'itag' => 17, 'quality' => 'small', 'something' => 'nill' ] ]; print_r($array);
Output for 5.4.0 - 7.1.0
Array ( [0] => Array ( [url] => website.com1/etcetcetc [itag] => 43 [quality] => medium [something] => nill ) [1] => Array ( [url] => website.com2/etcetcetc [itag] => 18 [quality] => medium [something] => nill ) [2] => Array ( [url] => website.com3/etcetcetc [itag] => 5 [quality] => small [something] => nill ) [3] => Array ( [url] => website.com4/etcetcetc [itag] => 36 [quality] => small [something] => nill ) [4] => Array ( [url] => website.com5/etcetcetc [itag] => 17 [quality] => small [something] => nill ) )
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/CKFEO on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/CKFEO on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/CKFEO on line 3
Process exited with code 255.