3v4l.org

run code in 300+ PHP versions simultaneously
<?php class streamWrapper { public function stream_lock($operation ) { var_dump($operation); } public function stream_open($path, $mode, $options, $opened_path) { var_dump($path); return fopen('/tmp/waa', $mode); } } stream_wrapper_register('test', 'streamWrapper'); $fp = fopen('test://waa', 'w+'); var_dump([LOCK_EX, LOCK_SH, LOCK_NB, LOCK_UN]); flock($fp, LOCK_EX | LOCK_NB);
Output for git.master_jit, git.master, rfc.property-hooks
Deprecated: Creation of dynamic property streamWrapper::$context is deprecated in /in/meuAV on line 19 string(10) "test://waa" array(4) { [0]=> int(2) [1]=> int(1) [2]=> int(4) [3]=> int(3) } 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:
39.82 ms | 401 KiB | 8 Q