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);
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Undefined constant 'xF0\x9F\x98\x83' in /in/WUdXB:9 Stack trace: #0 {main} thrown in /in/WUdXB on line 9
Process exited with code 255.
Output for 5.6.38
Fatal error: Undefined constant 'xF0\x9F\x98\x83' in /in/WUdXB on line 9
Process exited with code 255.