3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $j = '{ "cardPAN": 4916833222473083, "text3": "--", "text2": "--" }'; echo PHP_INT_MAX; var_dump(json_decode($j));
Output for 5.2.0 - 7.2.0
9223372036854775807object(stdClass)#1 (3) { ["cardPAN"]=> int(4916833222473083) ["text3"]=> string(2) "--" ["text2"]=> string(2) "--" }
Output for 5.0.5 - 5.1.6
9223372036854775807 Fatal error: Call to undefined function json_decode() in /in/COSOV on line 9
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/COSOV on line 8 PHP_INT_MAX Fatal error: Call to undefined function json_decode() in /in/COSOV on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
9223372036854775807 Fatal error: Call to undefined function: json_decode() in /in/COSOV on line 9
Process exited with code 255.
Output for 4.4.0 - 4.4.4
9223372036854775807 Fatal error: Call to undefined function: json_decode() in /in/COSOV on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.11
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/COSOV on line 8 PHP_INT_MAX Fatal error: Call to undefined function: json_decode() in /in/COSOV on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/COSOV on line 8 PHP_INT_MAX Fatal error: Call to undefined function: json_decode() in /in/COSOV on line 9