3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function someMethod(string $s = NULL) { print $s; } } class b extends a { public function someMethod(string $s) { print 'b' . $s; } } $b = new b; $b->someMethod('string');
Output for git.master_jit, git.master
Deprecated: a::someMethod(): Implicitly marking parameter $s as nullable is deprecated, the explicit nullable type must be used instead in /in/81TKa on line 4 Fatal error: Declaration of b::someMethod(string $s) must be compatible with a::someMethod(?string $s = null) in /in/81TKa on line 10
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Declaration of b::someMethod(string $s) must be compatible with a::someMethod(?string $s = null) in /in/81TKa on line 10
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:
170.11 ms | 1009 KiB | 7 Q