3v4l.org

run code in 300+ PHP versions simultaneously
<?php function i_test_type_or_null(int $i = null) {} i_test_type_or_null() || print "test type or nullable ok\n"; function i_test_nullable(?int $i) {} i_test_nullable() || print "never reached";
Output for git.master, git.master_jit, rfc.property-hooks
test type or nullable ok Fatal error: Uncaught ArgumentCountError: Too few arguments to function i_test_nullable(), 0 passed in /in/b2Dfc on line 8 and exactly 1 expected in /in/b2Dfc:6 Stack trace: #0 /in/b2Dfc(8): i_test_nullable() #1 {main} thrown in /in/b2Dfc on line 6
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:
29.93 ms | 406 KiB | 5 Q