3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $a = <<<'T' server { listen 80; server_name www2.smxybbs.net; access_log /home/qwe7002/nginx.access.log; error_log /home/qwe7002/nginx.error.log; index index.php index.html index.htm; location / { sub_filter 'www1.smxybbs.net' 'www2.smxybbs.net'; sub_filter_once off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Referer http://www1.smxybbs.net; proxy_set_header Host www1.smxybbs.net; proxy_pass http://www1.smxybbs.net/; proxy_set_header Accept-Encoding ""; } } T; echo json_encode($a);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
"server {\n listen 80;\n \n server_name www2.smxybbs.net;\n\n access_log \/home\/qwe7002\/nginx.access.log;\n error_log \/home\/qwe7002\/nginx.error.log;\n\n index index.php index.html index.htm;\n\n location \/ {\n sub_filter 'www1.smxybbs.net' 'www2.smxybbs.net';\n sub_filter_once off;\n proxy_set_header X-Real-IP $remote_addr; \n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; \n proxy_set_header Referer http:\/\/www1.smxybbs.net; \n proxy_set_header Host www1.smxybbs.net; \n proxy_pass http:\/\/www1.smxybbs.net\/;\n proxy_set_header Accept-Encoding \"\"; \n }\n}"
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_SL in /in/tVUeQ on line 3
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_SL in /in/tVUeQ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/tVUeQ on line 3
Process exited with code 255.