3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = ['a'=>'b','c'=>'d','e'=>'f']; echo serialize($arr); echo json_encode($arr); echo msgpack_pack($arr) ?>
based on Y0Gf7
Output for 7.0.0 - 7.2.0
a:3:{s:1:"a";s:1:"b";s:1:"c";s:1:"d";s:1:"e";s:1:"f";}{"a":"b","c":"d","e":"f"} Fatal error: Uncaught Error: Call to undefined function msgpack_pack() in /in/8GSdO:7 Stack trace: #0 {main} thrown in /in/8GSdO on line 7
Process exited with code 255.
Output for 5.4.0 - 5.6.28
a:3:{s:1:"a";s:1:"b";s:1:"c";s:1:"d";s:1:"e";s:1:"f";}{"a":"b","c":"d","e":"f"} Fatal error: Call to undefined function msgpack_pack() in /in/8GSdO on line 7
Process exited with code 255.