3v4l.org

run code in 300+ PHP versions simultaneously
<?php class streamWrapper { public function stream_lock($operation ) { var_dump($operation); } } 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/gqeaj on line 13 Warning: fopen(test://waa): Failed to open stream: "streamWrapper::stream_open" call failed in /in/gqeaj on line 13 Fatal error: Uncaught TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given in /in/gqeaj:14 Stack trace: #0 /in/gqeaj(14): flock(false, 2) #1 {main} thrown in /in/gqeaj on line 14
Process exited with code 255.
Output for rfc.property-hooks
Deprecated: Creation of dynamic property streamWrapper::$context is deprecated in /in/gqeaj on line 13 Warning: fopen(test://waa): Failed to open stream: "streamWrapper::stream_open" call failed in /in/gqeaj on line 13 Fatal error: Uncaught TypeError: flock(): Argument #1 ($stream) must be of type resource, false given in /in/gqeaj:14 Stack trace: #0 /in/gqeaj(14): flock(false, 2) #1 {main} thrown in /in/gqeaj on line 14
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:
47.54 ms | 401 KiB | 8 Q