3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids1 = []; function foo(array $ids) { echo(addcslashes('{"ordinal":{"suffix":"{lastDigit, plural, =1 {st} =2 {nd} =3 {rd} other {th}}"},"separators":{"decimalPoint":".","thousandGroup":","},"postfixes":{"thousands":"K","millions":"M","billions":"B"}}')); } foo($ids1);
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: addcslashes() expects exactly 2 arguments, 1 given in /in/GY2nK:6 Stack trace: #0 /in/GY2nK(6): addcslashes('{"ordinal":{"su...') #1 /in/GY2nK(9): foo(Array) #2 {main} thrown in /in/GY2nK 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:
39.86 ms | 401 KiB | 8 Q