3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $buffer = '{ "format": { "rule": [ "matches", "" ], "message": "Applications.submit_birthdate_format" } }'; var_dump(json_decode($buffer), json_last_error(), JSON_ERROR_SYNTAX);
based on T2rg4
Output for 7.0.0 - 7.2.0
object(stdClass)#2 (1) { ["format"]=> object(stdClass)#1 (2) { ["rule"]=> array(2) { [0]=> string(7) "matches" [1]=> string(0) "" } ["message"]=> string(36) "Applications.submit_birthdate_format" } } int(0) int(4)
Output for 5.3.19 - 5.6.28
object(stdClass)#1 (1) { ["format"]=> object(stdClass)#2 (2) { ["rule"]=> array(2) { [0]=> string(7) "matches" [1]=> string(0) "" } ["message"]=> string(36) "Applications.submit_birthdate_format" } } int(0) int(4)