3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = <<< 'B' 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 www.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://www.smxybbs.net; proxy_set_header Host www.smxybbs.net; proxy_pass http://www.smxybbs.net/; proxy_set_header Accept-Encoding ""; } } B; 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 www.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:\/\/www.smxybbs.net; \n proxy_set_header Host www.smxybbs.net; \n proxy_pass http:\/\/www.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/crBmd 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/crBmd on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/crBmd on line 3
Process exited with code 255.