3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $toys = array(“Truck”,”Boat”,”Doll”);
based on njjgn
Output for 7.2.0
Warning: Use of undefined constant “Truck” - assumed '“Truck”' (this will throw an Error in a future version of PHP) in /in/Zodg9 on line 2 Warning: Use of undefined constant ”Boat” - assumed '”Boat”' (this will throw an Error in a future version of PHP) in /in/Zodg9 on line 2 Warning: Use of undefined constant ”Doll” - assumed '”Doll”' (this will throw an Error in a future version of PHP) in /in/Zodg9 on line 2
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant “Truck” - assumed '“Truck”' in /in/Zodg9 on line 2 Notice: Use of undefined constant ”Boat” - assumed '”Boat”' in /in/Zodg9 on line 2 Notice: Use of undefined constant ”Doll” - assumed '”Doll”' in /in/Zodg9 on line 2