3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some {} function f ($one, Some $two, $thee = null) { echo $one; } $n = null; f('foo', $n);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: f(): Argument #2 ($two) must be of type Some, null given, called in /in/or8Vp on line 12 and defined in /in/or8Vp:5 Stack trace: #0 /in/or8Vp(12): f('foo', NULL) #1 {main} thrown in /in/or8Vp 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:
58.48 ms | 401 KiB | 8 Q