3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(int $bar) { var_dump($bar); } echo "These ones are all ok:".PHP_EOL; foo(7); foo('7'); foo("7345"); echo PHP_EOL."And now for a bad one...".PHP_EOL; foo("sgjhdfkg");
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
These ones are all ok: int(7) int(7) int(7345) And now for a bad one... Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type int, string given, called in /in/LnQvW on line 11 and defined in /in/LnQvW:3 Stack trace: #0 /in/LnQvW(11): foo('sgjhdfkg') #1 {main} thrown in /in/LnQvW 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:
70.4 ms | 407 KiB | 5 Q