3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getFormattedData() { $data = '@@'; return call_user_func_array( 'sprintf' array_merge( array(str_repeat('%b', strlen($data))), array_values(unpack('C*', $data)) ) ); } echo getFormattedData($map);
Output for 5.4.0 - 5.4.8
Parse error: syntax error, unexpected 'array_merge' (T_STRING) in /in/sPnhO on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.18
Parse error: syntax error, unexpected T_STRING in /in/sPnhO on line 7
Process exited with code 255.