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' => base64_encode("Contents \xF0\x9F\x98\x83"), ]; $json = json_encode($data); var_dump($json);
based on hK6uY
Output for 5.6.38 - 7.3.0rc3
string(156) "{"account_id":12345,"created_at":"2018-10-31 09:30:00.000000","customer_id":23456,"originator":"MessageBird","is_ported":true,"body":"Q29udGVudHMg8J+Ygw=="}"