3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = tempnam(sys_get_temp_dir(), 'whatever'); unlink($f); mkdir($f); var_dump(is_dir($f)); file_put_contents("$f/foo", "hi"); var_dump(file_get_contents("$f/foo")); var_dump(unlink("$f/foo")); var_dump(unlink("$f/foo")); rmdir($f);
Output for git.master
bool(true) string(2) "hi" bool(true) Warning: unlink(/tmp/whateverQzavlw/foo): No such file or directory in /in/t4Ova on line 10 bool(false)
Output for git.master_jit
bool(true) string(2) "hi" bool(true) Warning: unlink(/tmp/whateverqj67mm/foo): No such file or directory in /in/t4Ova on line 10 bool(false)
Output for rfc.property-hooks
bool(true) string(2) "hi" bool(true) Warning: unlink(/tmp/whateverJDBTCx/foo): No such file or directory in /in/t4Ova on line 10 bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.16 ms | 401 KiB | 8 Q