3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($prov_failure>0) { $fh = fopen($webserver_root_path.$file_path_errorlog, 'w') or die("can't open file"); $stringData = "$errorlogtext\n"; fwrite($fh, $stringData); fclose($fh); echo "Error log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_errorlog." target=".$file_path_errorlog.">".$file_name_errorlog."</a> Full log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#DD0000>X Failure!!</font>\n"; echo "<input type=hidden name=prov_voice_failures[PROXY][$proxy_id][] value=\"Mass Provisioning returned errors!\">"; $provisioning_report.="Error log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_errorlog." target=".$file_path_errorlog.">".$file_name_errorlog."</a> Full log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#DD0000>X Failure!!</font>\n"; } else { echo "<a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#00AA00>&radic;</font>\n"; $provisioning_report.="<a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#00AA00>&radic;</font>\n"; }
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: prov_failure in /in/SBjkm on line 3 Notice: Undefined variable: public_includes_path in /in/SBjkm on line 16 Notice: Undefined variable: file_path_log in /in/SBjkm on line 16 Notice: Undefined variable: file_name_log in /in/SBjkm on line 16 Notice: Undefined variable: file_name_log in /in/SBjkm on line 16 <a href=/fileviewer.php?file= target=></a> <font color=#00AA00>&radic;</font> Notice: Undefined variable: public_includes_path in /in/SBjkm on line 17 Notice: Undefined variable: file_path_log in /in/SBjkm on line 17 Notice: Undefined variable: file_name_log in /in/SBjkm on line 17 Notice: Undefined variable: file_name_log in /in/SBjkm on line 17 Notice: Undefined variable: provisioning_report in /in/SBjkm on line 17
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: prov_failure in /in/SBjkm on line 3 Notice: Undefined variable: public_includes_path in /in/SBjkm on line 16 Notice: Undefined variable: file_path_log in /in/SBjkm on line 16 Notice: Undefined variable: file_name_log in /in/SBjkm on line 16 Notice: Undefined variable: file_name_log in /in/SBjkm on line 16 <a href=/fileviewer.php?file= target=></a> <font color=#00AA00>&radic;</font> Notice: Undefined variable: public_includes_path in /in/SBjkm on line 17 Notice: Undefined variable: file_path_log in /in/SBjkm on line 17 Notice: Undefined variable: file_name_log in /in/SBjkm on line 17 Notice: Undefined variable: file_name_log in /in/SBjkm on line 17
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: prov_failure in /in/SBjkm on line 3 Notice: Undefined variable: public_includes_path in /in/SBjkm on line 16 Notice: Undefined variable: file_path_log in /in/SBjkm on line 16 Notice: Undefined variable: file_name_log in /in/SBjkm on line 16 Notice: Undefined variable: file_name_log in /in/SBjkm on line 16 <a href=/fileviewer.php?file= target=></a> <font color=#00AA00>&radic;</font> Notice: Undefined variable: public_includes_path in /in/SBjkm on line 17 Notice: Undefined variable: file_path_log in /in/SBjkm on line 17 Notice: Undefined variable: file_name_log in /in/SBjkm on line 17 Notice: Undefined variable: file_name_log in /in/SBjkm on line 17 Notice: Undefined variable: provisioning_report in /in/SBjkm on line 17