3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $current_file_name = basename($_SERVER['PHP_SELF']); echo $current_file_name; ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.qDolKq5G.dpuf