3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $deleteDir = ""; $deleteDir = realpath($deleteDir); if (!$deleteDir || strpos($deleteDir, 'tmp') === false) { throw new Exception('Could not determine delete directory: ' . $deleteDir); }
based on dYoMl
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: Could not determine delete directory: / in /in/DF2Yd:7 Stack trace: #0 {main} thrown in /in/DF2Yd on line 7
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'Could not determine delete directory: /' in /in/DF2Yd:7 Stack trace: #0 {main} thrown in /in/DF2Yd on line 7
Process exited with code 255.