3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = ["12345", PHP_MAX_INT . "00"]; var_dump($val); echo "\n"; var_dump(json_encode($val)); echo "\n"; var_dump(json_encode($val, JSON_NUMERIC_CHECK));
Output for 7.2.0
Warning: Use of undefined constant PHP_MAX_INT - assumed 'PHP_MAX_INT' (this will throw an Error in a future version of PHP) in /in/0Npf4 on line 3 array(2) { [0]=> string(5) "12345" [1]=> string(13) "PHP_MAX_INT00" } string(25) "["12345","PHP_MAX_INT00"]" string(23) "[12345,"PHP_MAX_INT00"]"
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant PHP_MAX_INT - assumed 'PHP_MAX_INT' in /in/0Npf4 on line 3 array(2) { [0]=> string(5) "12345" [1]=> string(13) "PHP_MAX_INT00" } string(25) "["12345","PHP_MAX_INT00"]" string(23) "[12345,"PHP_MAX_INT00"]"