3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught TypeError: bin2hex(): Argument #1 ($string) must be of type string, array given in /in/qQ0WK:74 Stack trace: #0 [internal function]: bin2hex(Array) #1 /in/qQ0WK(74): preg_replace_callback('~[^\\x00-\\x7F]+~', 'bin2hex', '\n\n [257] => ...') #2 {main} thrown in /in/qQ0WK on line 74
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.58 ms | 401 KiB | 8 Q