3v4l.org

run code in 300+ 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));
Output for git.master, git.master_jit, rfc.property-hooks
string(29) "{"max": 92233720368547758071}" object(stdClass)#1 (1) { ["max"]=> float(9.223372036854776E+19) } object(stdClass)#1 (1) { ["max"]=> string(20) "92233720368547758071" } string(30) "{"max":"92233720368547758071"}" string(29) "{"max":9.223372036854776e+19}"

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:
64.16 ms | 401 KiB | 8 Q