3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids1 = []; function foo(array $ids) { echo(addslashes('{"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 7.4.0 - 7.4.30, 8.0.1 - 8.0.23, 8.1.0 - 8.1.10, 8.2rc1
{\"ordinal\":{\"suffix\":\"{lastDigit, plural, =1 {st} =2 {nd} =3 {rd} other {th}}\"},\"separators\":{\"decimalPoint\":\".\",\"thousandGroup\":\",\"},\"postfixes\":{\"thousands\":\"K\",\"millions\":\"M\",\"billions\":\"B\"}}

preferences:
30.33 ms | 418 KiB | 14 Q