3v4l.org

run code in 200+ 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"; $myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!"); echo fread($myfile,filesize("webdictionary.txt")); fclose($myfile);
based on 3CNb2
Output for 4.3.2 - 7.2.0
bmw201020benz30100gator20409ferrari156018 Warning: fopen(webdictionary.txt): failed to open stream: No such file or directory in /in/uFdCT on line 12 Unable to open file!
Output for 4.3.0 - 4.3.1
bmw201020benz30100gator20409ferrari156018 Warning: fopen(webdictionary.txt) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/uFdCT on line 12 Unable to open file!