3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_clear_last(); if (! @unlink($cant_delete_this_file) ) { $error = error_get_last(); throw new Exception("failed to unlink $cant_delete_this_file: ". ($error["message"] ?? "")); }
based on JeBYj
Output for 7.0.28 - 7.2.11
Notice: Undefined variable: cant_delete_this_file in /in/AP9fX on line 5 Fatal error: Uncaught Exception: failed to unlink : unlink(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp:/in:/etc) in /in/AP9fX:5 Stack trace: #0 {main} thrown in /in/AP9fX on line 5
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected '?' in /in/AP9fX on line 5
Process exited with code 255.