3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = [ 'account_id' => 12345, 'created_at' => '2018-10-31 09:30:00.000000', 'customer_id' => 23456, 'originator' => 'MessageBird', 'is_ported' => true, 'body' => "Contents \xF0\x9F\x98\x83", ]; $json = json_encode($data); var_dump($json);
based on WUdXB
Output for 5.6.38 - 7.3.0rc3
string(157) "{"account_id":12345,"created_at":"2018-10-31 09:30:00.000000","customer_id":23456,"originator":"MessageBird","is_ported":true,"body":"Contents \ud83d\ude03"}"