3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode([ 'data' => [ 'type' => 'customers', 'attributes' => [ // All those should fail 'title' => 'Monsieur', 'birth_date' => '18 years old', 'email' => 'monsieur@', 'phone' => 'CALL-ME', ], ], ], JSON_PRETTY_PRINT);
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
{ "data": { "type": "customers", "attributes": { "title": "Monsieur", "birth_date": "18 years old", "email": "monsieur@", "phone": "CALL-ME" } } }