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' ] ]; var_dump($array);
based on CKFEO
Output for 5.4.0 - 7.1.0
array(5) { [0]=> array(4) { ["url"]=> string(22) "website.com1/etcetcetc" ["itag"]=> int(43) ["quality"]=> string(6) "medium" ["something"]=> string(4) "nill" } [1]=> array(4) { ["url"]=> string(22) "website.com2/etcetcetc" ["itag"]=> int(18) ["quality"]=> string(6) "medium" ["something"]=> string(4) "nill" } [2]=> array(4) { ["url"]=> string(22) "website.com3/etcetcetc" ["itag"]=> int(5) ["quality"]=> string(5) "small" ["something"]=> string(4) "nill" } [3]=> array(4) { ["url"]=> string(22) "website.com4/etcetcetc" ["itag"]=> int(36) ["quality"]=> string(5) "small" ["something"]=> string(4) "nill" } [4]=> array(4) { ["url"]=> string(22) "website.com5/etcetcetc" ["itag"]=> int(17) ["quality"]=> string(5) "small" ["something"]=> string(4) "nill" } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/WlFrS 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/WlFrS on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/WlFrS on line 3
Process exited with code 255.