3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function bar(integer $pint) { echo $pint; } } $test = new Test; $test->bar(11);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\integer" to suppress this warning in /in/JeqnF on line 6 Fatal error: Uncaught TypeError: Test::bar(): Argument #1 ($pint) must be of type integer, int given, called in /in/JeqnF on line 14 and defined in /in/JeqnF:6 Stack trace: #0 /in/JeqnF(14): Test->bar(11) #1 {main} thrown in /in/JeqnF 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:
61.3 ms | 401 KiB | 8 Q