3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array(-5,2,3,-8,4,-1,0); array_walk($values, "abs"); ?> ###### Then I wrote this function : <?php function myAbs(&$val){ $val = abs($val); } array_walk($values, "myAbs");
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: abs() expects exactly 1 argument, 2 given in /in/bAJoY:4 Stack trace: #0 [internal function]: abs(-5, 0) #1 /in/bAJoY(4): array_walk(Array, 'abs') #2 {main} thrown in /in/bAJoY on line 4
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:
55.33 ms | 401 KiB | 8 Q