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($path, $mode); } } stream_wrapper_register('test', 'streamWrapper'); $fp = fopen('test://waa', 'w+'); flock($fp, LOCK_EX);
Output for git.master, git.master_jit
Deprecated: Creation of dynamic property streamWrapper::$context is deprecated in /in/P5EgZ on line 19 string(10) "test://waa" Warning: fopen(test://waa): Failed to open stream: infinite recursion prevented in /in/P5EgZ on line 13 Warning: fopen(test://waa): Failed to open stream: "streamWrapper::stream_open" call failed in /in/P5EgZ on line 19 Fatal error: Uncaught TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given in /in/P5EgZ:20 Stack trace: #0 /in/P5EgZ(20): flock(false, 2) #1 {main} thrown in /in/P5EgZ on line 20
Process exited with code 255.
Output for rfc.property-hooks
Deprecated: Creation of dynamic property streamWrapper::$context is deprecated in /in/P5EgZ on line 19 string(10) "test://waa" Warning: fopen(test://waa): Failed to open stream: infinite recursion prevented in /in/P5EgZ on line 13 Warning: fopen(test://waa): Failed to open stream: "streamWrapper::stream_open" call failed in /in/P5EgZ on line 19 Fatal error: Uncaught TypeError: flock(): Argument #1 ($stream) must be of type resource, false given in /in/P5EgZ:20 Stack trace: #0 /in/P5EgZ(20): flock(false, 2) #1 {main} thrown in /in/P5EgZ on line 20
Process exited with code 255.

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