3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = <<< 'T' server { listen 80; server_name reader.wogong.net; root /home/wogong/selfoss/; access_log /home/wogong/log/selfoss.access.log; error_log /home/wogong/log/selfoss.error.log; location ~* \ (gif|jpg|png) { expires 30d; } location ~ ^/favicons/.*$ { try_files $uri /data/$uri; } location ~ ^/thumbnails/.*$ { try_files $uri /data/$uri; } location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { deny all; } location / { index index.php index.html index.htm; try_files $uri /public/$uri /index.php$is_args$args; } location ~ \.php$ { fastcgi_pass unix:/tmp/wogong-fpm.sock; fastcgi_index index.php; include fastcgi_params; } } 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 server_name reader.wogong.net;\n root \/home\/wogong\/selfoss\/;\n \n access_log \/home\/wogong\/log\/selfoss.access.log;\n error_log \/home\/wogong\/log\/selfoss.error.log;\n \n location ~* \\ (gif|jpg|png) {\n expires 30d;\n }\n \n location ~ ^\/favicons\/.*$ {\n try_files $uri \/data\/$uri;\n }\n \n location ~ ^\/thumbnails\/.*$ {\n try_files $uri \/data\/$uri;\n }\n \n location ~* ^\/(data\\\/logs|data\\\/sqlite|config\\.ini|\\.ht) {\n deny all;\n }\n \n location \/ {\n index index.php index.html index.htm;\n try_files $uri \/public\/$uri \/index.php$is_args$args;\n }\n \n location ~ \\.php$ {\n fastcgi_pass unix:\/tmp\/wogong-fpm.sock;\n \n fastcgi_index index.php;\n include fastcgi_params;\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/ehUjp 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/ehUjp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ehUjp on line 3
Process exited with code 255.