3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(int $a, string $b) { } try { test(1); } catch (Error $e) { echo $e->getMessage() . "\n"; } try { test('test'); } catch (Error $e) { echo $e->getMessage() . "\n"; }
Output for git.master_jit, git.master, rfc.property-hooks
Too few arguments to function test(), 1 passed in /in/X53qH on line 7 and exactly 2 expected test(): Argument #1 ($a) must be of type int, string given, called in /in/X53qH on line 11

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:
79.21 ms | 401 KiB | 8 Q