3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_error_handler(function () { throw new Exception("foo"); }); class MyArrayAcess implements ArrayAccess { public function offsetExists(mixed $offset): mixed {} public function offsetGet(mixed $offset): mixed {} public function offsetSet(mixed $offset, mixed $value): void {} public function offsetUnset(mixed $offset): void {} }
Output for git.master, git.master_jit
Fatal error: Uncaught Exception: foo in /in/6sbhF:4 Stack trace: #0 /in/6sbhF(7): {closure:/in/6sbhF:3}(8192, 'Return type of ...', '/in/6sbhF', 8) #1 {main} thrown in /in/6sbhF on line 4
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:
58.35 ms | 1479 KiB | 4 Q