3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Le { } class Chuck { function __construct(Le $object = null){ var_dump($object); } } class Chuck2 { function __construct(Le $object){ var_dump($object); } } new Chuck(null); new Chuck2(null);
Output for git.master, git.master_jit, rfc.property-hooks
NULL Fatal error: Uncaught TypeError: Chuck2::__construct(): Argument #1 ($object) must be of type Le, null given, called in /in/GWtuW on line 18 and defined in /in/GWtuW:12 Stack trace: #0 /in/GWtuW(18): Chuck2->__construct(NULL) #1 {main} thrown in /in/GWtuW on line 12
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:
57.73 ms | 401 KiB | 8 Q