3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = '😍'; echo bin2hex($input); echo json_encode($input);
Output for 5.2.0 - 7.1.0
f09f988d"\ud83d\ude0d"
Output for 5.0.0 - 5.1.6
f09f988d Fatal error: Call to undefined function json_encode() in /in/R15de on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
f09f988d Fatal error: Call to undefined function: json_encode() in /in/R15de on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
f09f988d Fatal error: Call to undefined function: json_encode() in /in/R15de on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
f09f988d Fatal error: Call to undefined function: json_encode() in /in/R15de on line 5