3v4l.org

run code in 300+ PHP versions simultaneously
<?php const STATUS_SUCCESS = 'success'; const STATUS_FAILED = 'failed'; const STATUS_PENDING = 'pending'; const STATUS_CHARGEBACK = 'chargeback'; const STATUS_CANCELED = 'canceled'; $status = 'sdfasdf'; switch ($status) { case STATUS_FAILED: case STATUS_CANCELED: case STATUS_CHARGEBACK: var_dump('asdfasdf'); break; case STATUS_PENDING: case STATUS_SUCCESS: var_dump('dsfgdf'); break; default: throw new \InvalidArgumentException(sprintf("Unknown transaction response status: '%s'", $status)); break; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught InvalidArgumentException: Unknown transaction response status: 'sdfasdf' in /in/NmC8K:22 Stack trace: #0 {main} thrown in /in/NmC8K on line 22
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:
60.31 ms | 401 KiB | 8 Q