3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "asString": "100000000000000.00000000000000001", "asFloat": 100000000000000.00000000000000001, "asInteger": 10000000000000000000000000000000000000000000000000000000009 }'; var_dump(json_decode($json)); var_dump(json_decode($json, flags: JSON_BIGINT_AS_STRING));
Output for 8.1.13 - 8.1.34, 8.2.10 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
object(stdClass)#1 (3) { ["asString"]=> string(33) "100000000000000.00000000000000001" ["asFloat"]=> float(100000000000000) ["asInteger"]=> float(1.0E+58) } object(stdClass)#1 (3) { ["asString"]=> string(33) "100000000000000.00000000000000001" ["asFloat"]=> float(100000000000000) ["asInteger"]=> string(59) "10000000000000000000000000000000000000000000000000000000009" }

preferences:
67.53 ms | 888 KiB | 4 Q