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")); rmdir($f);
Output for git.master
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateverEFDowT): Directory not empty in /in/dkXPO on line 9
Output for git.master_jit
bool(true) string(2) "hi" Warning: rmdir(/tmp/whatever3VAohY): Directory not empty in /in/dkXPO on line 9
Output for rfc.property-hooks
bool(true) string(2) "hi" Warning: rmdir(/tmp/whateveraVdPhu): Directory not empty in /in/dkXPO on line 9

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:
49.96 ms | 401 KiB | 8 Q