3v4l.org

run code in 200+ 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 - 7.1.10
3Yk3i Warning: filemtime(): stat failed for 3Yk3i 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