3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = base64_decode('R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs='); $resource = fopen('php://tmp', 'w'); fwrite($resource, $string); fclose($resource); var_dump(mime_content_type('data://text/plain;base64,' . base64_encode($string)));
Output for git.master, git.master_jit
Warning: fopen(): Invalid php:// URL specified in /in/1inZs on line 4 Warning: fopen(php://tmp): Failed to open stream: operation failed in /in/1inZs on line 4 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /in/1inZs:5 Stack trace: #0 /in/1inZs(5): fwrite(false, 'GIF89a\x01\x00\x01\x00\x80\x00\x00\x05\x04...') #1 {main} thrown in /in/1inZs on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): Invalid php:// URL specified in /in/1inZs on line 4 Warning: fopen(php://tmp): Failed to open stream: operation failed in /in/1inZs on line 4 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /in/1inZs:5 Stack trace: #0 /in/1inZs(5): fwrite(false, 'GIF89a\x01\x00\x01\x00\x80\x00\x00\x05\x04...') #1 {main} thrown in /in/1inZs on line 5
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:
45.99 ms | 401 KiB | 8 Q