3v4l.org

run code in 300+ 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, rfc.property-hooks
Fatal error: During inheritance of ArrayAccess: Uncaught Exception: foo in /in/6sbhF:4 Stack trace: #0 /in/6sbhF(7): {closure}(8192, 'Return type of ...', '/in/6sbhF', 8) #1 {main} in /in/6sbhF on line 7
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:
25.08 ms | 405 KiB | 5 Q