3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = <<< TEXT 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_pass http://www.smxybbs.net/; } } TEXT; echo json_encode($a);
Output for 5.2.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_pass http:\/\/www.smxybbs.net\/;\n }\n}"
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/lFakR on line 22
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function json_encode() in /in/lFakR on line 23
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/lFakR on line 22
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/lFakR on line 22
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: json_encode() in /in/lFakR on line 23
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/lFakR on line 22