3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); if(PHP_MAJOR_VERSION < 7 or PHP_MINOR_VERSION < 1) die(); function testParam(?string $arg){ var_dump($arg); } testParam(null); testParam("hi"); testParam();
Output for git.master, git.master_jit, rfc.property-hooks
NULL string(2) "hi" Fatal error: Uncaught ArgumentCountError: Too few arguments to function testParam(), 0 passed in /in/KoUGq on line 13 and exactly 1 expected in /in/KoUGq:7 Stack trace: #0 /in/KoUGq(13): testParam() #1 {main} thrown in /in/KoUGq 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:
48.81 ms | 401 KiB | 8 Q