3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<STR a%3A45%3A%7Bs%3A8%3A%22HOSTNAME%22%3Bs%3A36%3A%22nj02-vs-ting-jh2p-013.nj02.baidu.com%22%3Bs%3A4%3A%22PATH%22%3Bs%3A28%3A%22%2Fusr%2Flocal%2Fbin%3A%2Fusr%2Fbin%3A%2Fbin%22%3Bs%3A3%3A%22TMP%22%3Bs%3A4%3A%22%2Ftmp%22%3Bs%3A6%3A%22TMPDIR%22%3Bs%3A4%3A%22%2Ftmp%22%3Bs%3A4%3A%22TEMP%22%3Bs%3A4%3A%22%2Ftmp%22%3Bs%3A6%3A%22OSTYPE%22%3Bs%3A0%3A%22%22%3Bs%3A8%3A%22MACHTYPE%22%3Bs%3A0%3A%22%22%3Bs%3A13%3A%22MALLOC_CHECK_%22%3Bs%3A1%3A%222%22%3Bs%3A4%3A%22USER%22%3Bs%3A3%3A%22bae%22%3Bs%3A4%3A%22HOME%22%3Bs%3A9%3A%22%2Fhome%2Fbae%22%3Bs%3A9%3A%22FCGI_ROLE%22%3Bs%3A9%3A%22RESPONDER%22%3Bs%3A11%3A%22HTTP_X_HOST%22%3Bs%3A15%3A%22bcs.y.baidu.com%22%3Bs%3A22%3A%22HTTP_X_FORWARDED_PROTO%22%3Bs%3A4%3A%22http%22%3Bs%3A9%3A%22HTTP_HOST%22%3Bs%3A15%3A%22bcs.y.baidu.com%22%3Bs%3A34%3A%22HTTP_ACCESS_CONTROL_REQUEST_METHOD%22%3Bs%3A4%3A%22POST%22%3Bs%3A11%3A%22HTTP_ORIGIN%22%3Bs%3A18%3A%22http%3A%2F%2Fy.baidu.com%22%3Bs%3A15%3A%22HTTP_USER_AGENT%22%3Bs%3A108%3A%22Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F31.0.1650.63+Safari%2F537.36%22%3Bs%3A35%3A%22HTTP_ACCESS_CONTROL_REQUEST_HEADERS%22%3Bs%3A12%3A%22content-type%22%3Bs%3A11%3A%22HTTP_ACCEPT%22%3Bs%3A3%3A%22%2A%2F%2A%22%3Bs%3A12%3A%22HTTP_REFERER%22%3Bs%3A66%3A%22http%3A%2F%2Fy.baidu.com%2Fartist%2Fregister%2Fstep2%3Fname%3DMC%25E5%25B0%2591%25E6%2595%258F%22%3Bs%3A20%3A%22HTTP_ACCEPT_ENCODING%22%3Bs%3A17%3A%22gzip%2Cdeflate%2Csdch%22%3Bs%3A20%3A%22HTTP_ACCEPT_LANGUAGE%22%3Bs%3A14%3A%22zh-CN%2Czh%3Bq%3D0.8%22%3Bs%3A20%3A%22HTTP_X_FORWARDED_FOR%22%3Bs%3A13%3A%2214.29.209.168%22%3Bs%3A15%3A%22SERVER_SOFTWARE%22%3Bs%3A14%3A%22lighttpd%2F1.5.0%22%3Bs%3A11%3A%22SERVER_NAME%22%3Bs%3A15%3A%22bcs.y.baidu.com%22%3Bs%3A17%3A%22GATEWAY_INTERFACE%22%3Bs%3A7%3A%22CGI%2F1.1%22%3Bs%3A11%3A%22SERVER_PORT%22%3Bs%3A4%3A%228888%22%3Bs%3A11%3A%22SERVER_ADDR%22%3Bs%3A12%3A%2210.207.19.47%22%3Bs%3A11%3A%22REMOTE_PORT%22%3Bs%3A5%3A%2226613%22%3Bs%3A11%3A%22REMOTE_ADDR%22%3Bs%3A13%3A%2214.29.209.168%22%3Bs%3A11%3A%22SCRIPT_NAME%22%3Bs%3A27%3A%22%2Findex.php%2Fdata%2Fsong%2Fupfile%22%3Bs%3A9%3A%22PATH_INFO%22%3Bs%3A17%3A%22%2Fdata%2Fsong%2Fupfile%22%3Bs%3A15%3A%22PATH_TRANSLATED%22%3Bs%3A44%3A%22%2Fhome%2Fbae%2Fwwwdata.y%2Fwebroot%2Fdata%2Fsong%2Fupfile%22%3Bs%3A15%3A%22SCRIPT_FILENAME%22%3Bs%3A37%3A%22%2Fhome%2Fbae%2Fwwwdata.y%2Fwebroot%2Findex.php%22%3Bs%3A13%3A%22DOCUMENT_ROOT%22%3Bs%3A28%3A%22%2Fhome%2Fbae%2Fwwwdata.y%2Fwebroot%2F%22%3Bs%3A11%3A%22REQUEST_URI%22%3Bs%3A17%3A%22%2Fdata%2Fsong%2Fupfile%22%3Bs%3A12%3A%22REDIRECT_URI%22%3Bs%3A27%3A%22%2Findex.php%2Fdata%2Fsong%2Fupfile%22%3Bs%3A12%3A%22QUERY_STRING%22%3Bs%3A0%3A%22%22%3Bs%3A14%3A%22REQUEST_METHOD%22%3Bs%3A7%3A%22OPTIONS%22%3Bs%3A15%3A%22REDIRECT_STATUS%22%3Bs%3A3%3A%22200%22%3Bs%3A15%3A%22SERVER_PROTOCOL%22%3Bs%3A8%3A%22HTTP%2F1.1%22%3Bs%3A20%3A%22ORIG_SCRIPT_FILENAME%22%3Bs%3A54%3A%22%2Fhome%2Fbae%2Fwwwdata.y%2Fwebroot%2Findex.php%2Fdata%2Fsong%2Fupfile%22%3Bs%3A20%3A%22ORIG_PATH_TRANSLATED%22%3Bs%3A45%3A%22%2Fhome%2Fbae%2Fwwwdata.y%2Fwebroot%2F%2Fdata%2Fsong%2Fupfile%22%3Bs%3A8%3A%22PHP_SELF%22%3Bs%3A44%3A%22%2Findex.php%2Fdata%2Fsong%2Fupfile%2Fdata%2Fsong%2Fupfile%22%3Bs%3A12%3A%22REQUEST_TIME%22%3Bi%3A1436429755%3B%7D STR; var_dump(unserialize(urldecode($str)));
Output for git.master, git.master_jit, rfc.property-hooks
array(45) { ["HOSTNAME"]=> string(36) "nj02-vs-ting-jh2p-013.nj02.baidu.com" ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" ["TMP"]=> string(4) "/tmp" ["TMPDIR"]=> string(4) "/tmp" ["TEMP"]=> string(4) "/tmp" ["OSTYPE"]=> string(0) "" ["MACHTYPE"]=> string(0) "" ["MALLOC_CHECK_"]=> string(1) "2" ["USER"]=> string(3) "bae" ["HOME"]=> string(9) "/home/bae" ["FCGI_ROLE"]=> string(9) "RESPONDER" ["HTTP_X_HOST"]=> string(15) "bcs.y.baidu.com" ["HTTP_X_FORWARDED_PROTO"]=> string(4) "http" ["HTTP_HOST"]=> string(15) "bcs.y.baidu.com" ["HTTP_ACCESS_CONTROL_REQUEST_METHOD"]=> string(4) "POST" ["HTTP_ORIGIN"]=> string(18) "http://y.baidu.com" ["HTTP_USER_AGENT"]=> string(108) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36" ["HTTP_ACCESS_CONTROL_REQUEST_HEADERS"]=> string(12) "content-type" ["HTTP_ACCEPT"]=> string(3) "*/*" ["HTTP_REFERER"]=> string(66) "http://y.baidu.com/artist/register/step2?name=MC%E5%B0%91%E6%95%8F" ["HTTP_ACCEPT_ENCODING"]=> string(17) "gzip,deflate,sdch" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "zh-CN,zh;q=0.8" ["HTTP_X_FORWARDED_FOR"]=> string(13) "14.29.209.168" ["SERVER_SOFTWARE"]=> string(14) "lighttpd/1.5.0" ["SERVER_NAME"]=> string(15) "bcs.y.baidu.com" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["SERVER_PORT"]=> string(4) "8888" ["SERVER_ADDR"]=> string(12) "10.207.19.47" ["REMOTE_PORT"]=> string(5) "26613" ["REMOTE_ADDR"]=> string(13) "14.29.209.168" ["SCRIPT_NAME"]=> string(27) "/index.php/data/song/upfile" ["PATH_INFO"]=> string(17) "/data/song/upfile" ["PATH_TRANSLATED"]=> string(44) "/home/bae/wwwdata.y/webroot/data/song/upfile" ["SCRIPT_FILENAME"]=> string(37) "/home/bae/wwwdata.y/webroot/index.php" ["DOCUMENT_ROOT"]=> string(28) "/home/bae/wwwdata.y/webroot/" ["REQUEST_URI"]=> string(17) "/data/song/upfile" ["REDIRECT_URI"]=> string(27) "/index.php/data/song/upfile" ["QUERY_STRING"]=> string(0) "" ["REQUEST_METHOD"]=> string(7) "OPTIONS" ["REDIRECT_STATUS"]=> string(3) "200" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["ORIG_SCRIPT_FILENAME"]=> string(54) "/home/bae/wwwdata.y/webroot/index.php/data/song/upfile" ["ORIG_PATH_TRANSLATED"]=> string(45) "/home/bae/wwwdata.y/webroot//data/song/upfile" ["PHP_SELF"]=> string(44) "/index.php/data/song/upfile/data/song/upfile" ["REQUEST_TIME"]=> int(1436429755) }

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:
55.39 ms | 409 KiB | 8 Q