3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = ' [257] => Event Object ( [id:protected] => 9687 [api_key:protected] => 1 [srcip:protected] => 24.98.134.153 [srcip_i:protected] => 409110169 [dstip:protected] => 198.199.124.5 [dstip_i:protected] => 3334962181 [time:protected] => 2014-05-04 14:46:02 [src_country_code:protected] => US [attributes:protected] => Array ( [SERVER] => Array ( [REDIRECT_STATUS] => 200 [PATH] => /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] => [SERVER_SOFTWARE] => Apache/2.2.22 (Ubuntu) [SERVER_NAME] => 127.0.0.1 [SERVER_ADDR] => 198.199.124.5 [SERVER_PORT] => 80 [REMOTE_ADDR] => 24.98.134.153 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/bee.php [REMOTE_PORT] => 8256 [REDIRECT_URL] => / [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/0.9 [REQUEST_METHOD] =>  [QUERY_STRING] => [REQUEST_URI] => [SERVER_PORT] => 80 [REMOTE_ADDR] => 24.98.134.153 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/bee.php [REMOTE_PORT] => 8256 [REDIRECT_URL] => / [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/0.9 [REQUEST_METHOD] =>  [QUERY_STRING] => [REQUEST_URI] => [SCRIPT_NAME] => /bee.php [PHP_SELF] => /bee.php [REQUEST_TIME] => 1399229162 ) ) 甘味 ラーメン のりもの 二輪 自転車 カメラ 家電 鉄道 二次元 二次元裏 二次元裏 二次元裏 [SCRIPT_NAME] => /bee.php [PHP_SELF] => /bee.php [REQUEST_TIME] => 1399229162 ) )'; var_dump(preg_replace_callback('~([^\x00-\x7F]+)~', 'bin2hex', $string));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 Warning: bin2hex() expects parameter 1 to be string, array given in /in/OMXeU on line 74 string(2590) " [257] => Event Object ( [id:protected] => 9687 [api_key:protected] => 1 [srcip:protected] => 24.98.134.153 [srcip_i:protected] => 409110169 [dstip:protected] => 198.199.124.5 [dstip_i:protected] => 3334962181 [time:protected] => 2014-05-04 14:46:02 [src_country_code:protected] => US [attributes:protected] => Array ( [SERVER] => Array ( [REDIRECT_STATUS] => 200 [PATH] => /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] => [SERVER_SOFTWARE] => Apache/2.2.22 (Ubuntu) [SERVER_NAME] => 127.0.0.1 [SERVER_ADDR] => 198.199.124.5 [SERVER_PORT] => 80 [REMOTE_ADDR] => 24.98.134.153 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/bee.php [REMOTE_PORT] => 8256 [REDIRECT_URL] => / [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/0.9 [REQUEST_METHOD] =>  [QUERY_STRING] => [REQUEST_URI] => [SERVER_PORT] => 80 [REMOTE_ADDR] => 24.98.134.153 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/bee.php [REMOTE_PORT] => 8256 [REDIRECT_URL] => / [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/0.9 [REQUEST_METHOD] =>  [QUERY_STRING] => [REQUEST_URI] => [SCRIPT_NAME] => /bee.php [PHP_SELF] => /bee.php [REQUEST_TIME] => 1399229162 ) ) [SCRIPT_NAME] => /bee.php [PHP_SELF] => /bee.php [REQUEST_TIME] => 1399229162 ) )"
Output for 4.3.0 - 5.2.17
string(2710) " [257] => Event Object ( [id:protected] => 9687 [api_key:protected] => 1 [srcip:protected] => 24.98.134.153 [srcip_i:protected] => 409110169 [dstip:protected] => 198.199.124.5 [dstip_i:protected] => 3334962181 [time:protected] => 2014-05-04 14:46:02 [src_country_code:protected] => US [attributes:protected] => Array ( [SERVER] => Array ( [REDIRECT_STATUS] => 200 [PATH] => /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] => [SERVER_SOFTWARE] => Apache/2.2.22 (Ubuntu) [SERVER_NAME] => 127.0.0.1 [SERVER_ADDR] => 198.199.124.5 [SERVER_PORT] => 80 [REMOTE_ADDR] => 24.98.134.153 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/bee.php [REMOTE_PORT] => 8256 [REDIRECT_URL] => / [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/0.9 [REQUEST_METHOD] =>  [QUERY_STRING] => [REQUEST_URI] => [SERVER_PORT] => 80 [REMOTE_ADDR] => 24.98.134.153 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/bee.php [REMOTE_PORT] => 8256 [REDIRECT_URL] => / [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/0.9 [REQUEST_METHOD] =>  [QUERY_STRING] => [REQUEST_URI] => [SCRIPT_NAME] => /bee.php [PHP_SELF] => /bee.php [REQUEST_TIME] => 1399229162 ) ) 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 4172726179 [SCRIPT_NAME] => /bee.php [PHP_SELF] => /bee.php [REQUEST_TIME] => 1399229162 ) )"