3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = basename($_SERVER["SCRIPT_FILENAME"], '.php'); echo $name; echo filemtime($name);
based on e7IlP
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
3Yk3i Warning: filemtime(): stat failed for 3Yk3i in /in/3Yk3i on line 4
Output for hhvm-3.10.0 - 3.12.0
3Yk3i Warning: filemtime(): No such file or directory in /in/3Yk3i on line 4
Output for 4.3.2 - 5.2.2
Notice: Undefined index: SCRIPT_FILENAME in /in/3Yk3i on line 2
Output for 4.3.0 - 4.3.1
Notice: Undefined index: SCRIPT_FILENAME in /in/3Yk3i on line 2 Warning: filemtime() [http://www.php.net/function.filemtime]: Stat failed for (errno=2 - No such file or directory) in /in/3Yk3i on line 4