3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testStreamWrapper { function stream_lock($operation) { var_dump($operation); return true; } function stream_open($path, $mode, $options, $opened_path) { return true; } } stream_wrapper_register('test', 'TestStreamWrapper'); $fp = fopen('test://waa', 'w+'); flock($fp, LOCK_SH); flock($fp, LOCK_EX); flock($fp, LOCK_UN); flock($fp, LOCK_SH | LOCK_NB); flock($fp, LOCK_EX | LOCK_NB);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property testStreamWrapper::$context is deprecated in /in/h1SVU on line 15 int(1) int(2) int(3) int(5) int(6)

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