3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function ('shutdown'); file_put_contents ('/tmp/test.txt', "main 1 \n", FILE_APPEND | LOCK_EX); file_put_contents ('/tmp/test.txt', "main 2 \n", FILE_APPEND | LOCK_EX); function shutdown () { file_put_contents ('/tmp/test.txt', "shutdown 1 \n", FILE_APPEND | LOCK_EX); file_put_contents ('/tmp/test.txt', "shutdown 2 \n", FILE_APPEND | LOCK_EX); var_dump(file_get_contents("/tmp/test.txt")); exit; }
Output for git.master_jit, git.master, rfc.property-hooks
string(40) "main 1 main 2 shutdown 1 shutdown 2 "

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