3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handle_the_string(string $string): void { echo $string . PHP_EOL; } echo strtolower('hello') . PHP_EOL; echo strtolower(null) . PHP_EOL; handle_the_string('world'); handle_the_string(null);
Output for git.master, git.master_jit, rfc.property-hooks
hello Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /in/ZDvTd on line 8 world Fatal error: Uncaught TypeError: handle_the_string(): Argument #1 ($string) must be of type string, null given, called in /in/ZDvTd on line 10 and defined in /in/ZDvTd:3 Stack trace: #0 /in/ZDvTd(10): handle_the_string(NULL) #1 {main} thrown in /in/ZDvTd on line 3
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:
39.66 ms | 406 KiB | 5 Q