3v4l.org

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

Process exited with code 137.