3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cars=array(“Volvo”,”BMW”,”Toyota”); var_dump($cars); ?>
based on glds9
Output for 7.2.0
Warning: Use of undefined constant “Volvo” - assumed '“Volvo”' (this will throw an Error in a future version of PHP) in /in/k2MQA on line 2 Warning: Use of undefined constant ”BMW” - assumed '”BMW”' (this will throw an Error in a future version of PHP) in /in/k2MQA on line 2 Warning: Use of undefined constant ”Toyota” - assumed '”Toyota”' (this will throw an Error in a future version of PHP) in /in/k2MQA on line 2 array(3) { [0]=> string(11) "“Volvo”" [1]=> string(9) "”BMW”" [2]=> string(12) "”Toyota”" }
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant “Volvo” - assumed '“Volvo”' in /in/k2MQA on line 2 Notice: Use of undefined constant ”BMW” - assumed '”BMW”' in /in/k2MQA on line 2 Notice: Use of undefined constant ”Toyota” - assumed '”Toyota”' in /in/k2MQA on line 2 array(3) { [0]=> string(11) "“Volvo”" [1]=> string(9) "”BMW”" [2]=> string(12) "”Toyota”" }