3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function checkDateTime(DateTime $dateTime) { echo 'done'; $dateTime->getTimestamp(); } } class c { public static function checkTimingCondition(a $a, DateTime $dateTime) { return $a->checkDateTime($dateTime); } } class h { public function handle() { echo c::checkTimingCondition(null, null); } } $h = new h; $h->handle(null);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: c::checkTimingCondition(): Argument #1 ($a) must be of type a, null given, called in /in/1VSLO on line 24 and defined in /in/1VSLO:14 Stack trace: #0 /in/1VSLO(24): c::checkTimingCondition(NULL, NULL) #1 /in/1VSLO(30): h->handle(NULL) #2 {main} thrown in /in/1VSLO on line 14
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:
40.65 ms | 401 KiB | 8 Q