3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $outputDir="RAZMIK"; $dbName="panor"; $handle = fopen($outputDir.'/db-backup-'.$dbName.'-'.date("Ymd-His", time()).'.sql','w+'); echo "$handle"; $handle1=fopen($outputDir.'/db-backup-'.$dbName.'-'.date("d.m.Y H:i:s").'.sql'); echo "</br>".$handle1;
Output for 4.3.2 - 7.1.0
Warning: fopen(RAZMIK/db-backup-panor-20130708-083223.sql): failed to open stream: No such file or directory in /in/JQcMW on line 4 Warning: fopen() expects at least 2 parameters, 1 given in /in/JQcMW on line 6 </br>
Output for 4.3.0 - 4.3.1
Warning: fopen(RAZMIK/db-backup-panor-20130708-083223.sql) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/JQcMW on line 4 Warning: fopen() expects at least 2 parameters, 1 given in /in/JQcMW on line 6 </br>