3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ra($test, $boo, $foo, $bar) { $wl = array('test', 'boo', 'foo', 'bar'); $arr = array(); foreach ($wl as $val) { $arr[$val] = $$val; } var_dump($arr); } ra('test','foo', 'bar');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function ra(), 3 passed in /in/l3rCa on line 12 and exactly 4 expected in /in/l3rCa:3 Stack trace: #0 /in/l3rCa(12): ra('test', 'foo', 'bar') #1 {main} thrown in /in/l3rCa 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:
49.13 ms | 401 KiB | 8 Q