3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_map(function($c) { var_dump(ord($c), $c); }, str_split(hex2bin("3530343339"))));
Output for 5.4.0 - 7.1.0
int(53) string(1) "5" int(48) string(1) "0" int(52) string(1) "4" int(51) string(1) "3" int(57) string(1) "9" array(5) { [0]=> NULL [1]=> NULL [2]=> NULL [3]=> NULL [4]=> NULL }
Output for 5.3.0 - 5.3.29
Fatal error: Call to undefined function hex2bin() in /in/VbXKe on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/VbXKe on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/VbXKe on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/VbXKe on line 2
Process exited with code 255.