3v4l.org

run code in 500+ PHP versions simultaneously
<?php $statusCode = 10; $message = match ($statusCode) { 200, 300 => null, 400 => 'not found', 500 => 'server error', }; echo $message;
Output for rfc.property-hooks
Fatal error: Uncaught UnhandledMatchError: Unhandled match case 10 in /in/52bgD:5 Stack trace: #0 {main} thrown in /in/52bgD on line 5
Process exited with code 255.
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.

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:
48.85 ms | 1121 KiB | 4 Q