3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = ["12345", PHP_INT_MAX . "00"]; var_dump($val); echo "\n"; var_dump(json_encode($val)); echo "\n"; var_dump(json_encode($val, JSON_NUMERIC_CHECK));
Output for 7.1.0 - 7.2.0
array(2) { [0]=> string(5) "12345" [1]=> string(21) "922337203685477580700" } string(33) "["12345","922337203685477580700"]" string(29) "[12345,9.223372036854776e+20]"
Output for 5.5.0 - 7.0.20
array(2) { [0]=> string(5) "12345" [1]=> string(21) "922337203685477580700" } string(33) "["12345","922337203685477580700"]" string(27) "[12345,9.2233720368548e+20]"