3v4l.org

run code in 500+ PHP versions simultaneously
<?php $bigger_than_max = '{"max": ' . PHP_INT_MAX . '1}'; var_dump($bigger_than_max); var_dump(json_decode($bigger_than_max)); var_dump(json_decode($bigger_than_max, false, 512, JSON_BIGINT_AS_STRING)); var_dump(json_encode(json_decode($bigger_than_max, false, 512, JSON_BIGINT_AS_STRING))); var_dump(json_encode(json_decode($bigger_than_max, false, 512, JSON_BIGINT_AS_STRING), JSON_NUMERIC_CHECK));

preferences:
63.76 ms | 2810 KiB | 5 Q