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 www1.smxybbs.net; access_log /home/qwe7002/nginx.access.log; error_log /home/qwe7002/nginx.error.log; index index.php index.html index.htm; autoindex on; error_page 404 /404.html; error_page 403 /403.html; error_page 502 /502.html; root /home/qwe7002/bbs/; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_pass unix:/tmp/qwe7002-fpm.sock; fastcgi_index index.php; include fastcgi_params; } } T; echo json_encode($a);
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 24 "server {\n listen 80;\n\n server_name www1.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 autoindex on;\n \n error_page 404 \/404.html;\n error_page 403 \/403.html;\n error_page 502 \/502.html;\n \n root \/home\/qwe7002\/bbs\/;\n\n location \/ {\n try_files \/ \/index.php?;\n }\n\n location ~ \\.php$ {\n fastcgi_pass unix:\/tmp\/qwe7002-fpm.sock;\n fastcgi_index index.php;\n include fastcgi_params;\n }\n}"
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: uri in /in/NSTvI on line 33 Notice: Undefined variable: uri in /in/NSTvI on line 33 Notice: Undefined variable: args in /in/NSTvI on line 33 "server {\n listen 80;\n\n server_name www1.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 autoindex on;\n \n error_page 404 \/404.html;\n error_page 403 \/403.html;\n error_page 502 \/502.html;\n \n root \/home\/qwe7002\/bbs\/;\n\n location \/ {\n try_files \/ \/index.php?;\n }\n\n location ~ \\.php$ {\n fastcgi_pass unix:\/tmp\/qwe7002-fpm.sock;\n fastcgi_index index.php;\n include fastcgi_params;\n }\n}"
Output for 5.2.3 - 5.6.28
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 32 "server {\n listen 80;\n\n server_name www1.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 autoindex on;\n \n error_page 404 \/404.html;\n error_page 403 \/403.html;\n error_page 502 \/502.html;\n \n root \/home\/qwe7002\/bbs\/;\n\n location \/ {\n try_files \/ \/index.php?;\n }\n\n location ~ \\.php$ {\n fastcgi_pass unix:\/tmp\/qwe7002-fpm.sock;\n fastcgi_index index.php;\n include fastcgi_params;\n }\n}"
Output for 5.2.0 - 5.2.2
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 "server {\n listen 80;\n\n server_name www1.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 autoindex on;\n \n error_page 404 \/404.html;\n error_page 403 \/403.html;\n error_page 502 \/502.html;\n \n root \/home\/qwe7002\/bbs\/;\n\n location \/ {\n try_files \/ \/index.php?;\n }\n\n location ~ \\.php$ {\n fastcgi_pass unix:\/tmp\/qwe7002-fpm.sock;\n fastcgi_index index.php;\n include fastcgi_params;\n }\n}"
Output for 5.0.4 - 5.1.1, 5.1.3 - 5.1.6
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function json_encode() in /in/NSTvI on line 36
Process exited with code 255.
Output for 5.1.2
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function json_encode() in /in/NSTvI on line 37
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function json_encode() in /in/NSTvI on line 36
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function: json_encode() in /in/NSTvI on line 36
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function: json_encode() in /in/NSTvI on line 36
Process exited with code 255.
Output for 4.4.2
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function: json_encode() in /in/NSTvI on line 37
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: uri in /in/NSTvI on line 24 Notice: Undefined variable: args in /in/NSTvI on line 25 Fatal error: Call to undefined function: json_encode() in /in/NSTvI on line 36