3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen("lock", "w") or die("Cannot create lock file."); if(!flock($f, LOCK_EX | LOCK_NB)) { print ("Exiting due to duplicated instance."); exit(); } print("1"); sleep(20);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: fopen(): open_basedir restriction in effect. File(lock) is not within the allowed path(s): (/tmp:/in:/etc) in /in/IHENP on line 3 Warning: fopen(lock): Failed to open stream: Operation not permitted in /in/IHENP on line 3 Cannot create lock file.

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