3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cars=array(array("bmw",20,10,20),array("benz",30,10,0),array("gator",20,40,9),array("ferrari",15,60,18)); for ($row = 0; $row < 4; $row++) { for ($col = 0; $col < 4; $col++) { echo $cars[$row][$col]; } } echo "\n"; date_default_timezone_set("America/New_York"); echo "The time is " . date("h:i:sa");
based on vQnse
Output for 5.1.0 - 7.1.0
bmw201020benz30100gator20409ferrari156018 The time is 09:22:03am
Output for 5.0.0 - 5.0.5
bmw201020benz30100gator20409ferrari156018 Fatal error: Call to undefined function date_default_timezone_set() in /in/0I9PH on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
bmw201020benz30100gator20409ferrari156018 Fatal error: Call to undefined function: date_default_timezone_set() in /in/0I9PH on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
bmw201020benz30100gator20409ferrari156018 Fatal error: Call to undefined function: date_default_timezone_set() in /in/0I9PH on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
bmw201020benz30100gator20409ferrari156018 Fatal error: Call to undefined function: date_default_timezone_set() in /in/0I9PH on line 12