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"; $d=strtotime("tomorrow"); echo date("Y-m-d h:i:sa", $d) . "<br>"; $d=strtotime("next Saturday"); echo date("Y-m-d h:i:sa", $d) . "<br>"; $d=strtotime("+3 Months"); echo date("Y-m-d h:i:sa", $d) . "<br>";
based on RhcMR
Output for 5.1.0 - 7.1.0
bmw201020benz30100gator20409ferrari156018 2014-10-02 12:00:00am<br>2014-10-04 12:00:00am<br>2015-01-01 03:43:18pm<br>
Output for 4.4.0 - 4.4.9, 5.0.5
bmw201020benz30100gator20409ferrari156018 2014-10-02 03:43:18pm<br>2014-10-04 12:00:00am<br>2015-01-01 03:43:18pm<br>
Output for 4.3.0 - 4.3.11, 5.0.3 - 5.0.4
bmw201020benz30100gator20409ferrari156018 2014-10-02 03:43:18pm<br>2014-10-11 12:00:00am<br>2015-01-01 03:43:18pm<br>
Output for 5.0.0 - 5.0.2
bmw201020benz30100gator20409ferrari156018 2014-10-02 12:00:00am<br>2014-10-11 12:00:00am<br>2015-01-01 12:00:00am<br>