3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wow(int $param){ return ++$param; } echo wow(1).PHP_EOL; echo wow(3.11).PHP_EOL; echo wow('4abc').PHP_EOL; echo wow('5.1').PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
2 Deprecated: Implicit conversion from float 3.11 to int loses precision in /in/IEbRE on line 3 4 Fatal error: Uncaught TypeError: wow(): Argument #1 ($param) must be of type int, string given, called in /in/IEbRE on line 9 and defined in /in/IEbRE:3 Stack trace: #0 /in/IEbRE(9): wow('4abc') #1 {main} thrown in /in/IEbRE 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:
148.89 ms | 406 KiB | 5 Q