3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start(); date_default_timezone_set('UTC'); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output[1][0]); $output1 = preg_replace('#(\w),(\w)#', '\1, \2', $output); xdiff_string_diff($output, $output1);
Output for 7.0.0 - 7.2.6
Notice: Undefined offset: 0 in /in/lYSGT on line 8 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/lYSGT:10 Stack trace: #0 {main} thrown in /in/lYSGT on line 10
Process exited with code 255.
Output for hhvm-3.17.3
Notice: Undefined index: 0 in /in/lYSGT on line 8 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/lYSGT:10 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.12.14 - 3.15.4
Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/lYSGT:10 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1
Fatal error: Uncaught TypeError: Argument 1 passed to ini_get_all() must be an instance of string, null given in /in/lYSGT:4 Stack trace: #0 /in/lYSGT(4): phpinfo() #1 {main} <html><head><title>HHVM phpinfo</title><style type="text/css">body { margin: auto; text-align: center; width: 600px; }hr { margin-top: 30px; }table { border-collapse: collapse; margin: auto; width: 100%; }td { border: 1px solid black; padding: 5px; }.l { background-color: #CCF; }.r { background-color: #CCC; word-break: break-all; }</style></head><body><h1>HHVM Version 3.11.1</h1><hr><h2>Version</h2><table><tr><td class="l">Version</td><td class="r">3.11.1</td></tr><tr><td class="l">Version ID</td><td class="r">31101</td></tr><tr><td class="l">Debug</td><td class="r"></td></tr><tr><td class="l">Compiler ID</td><td class="r">tags/HHVM-3.11.1-0-g64d37362bc0b6aee919492ad61cf65ce0a5d5e92</td></tr><tr><td class="l">Repo Schema</td><td class="r">8b80ba45250a6669cd610c189dbbb55b6218c2a3</td></tr><tr><td class="l">PHP Version</td><td class="r">5.6.99-hhvm</td></tr><tr><td class="l">Zend Version</td><td class="r">2.4.99</td></tr><tr><td class="l">uname</td><td class="r">Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64</td></tr></table>
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: Call to undefined function xdiff_string_diff() in /in/lYSGT on line 10
Process exited with code 255.
Output for 5.3.0 - 5.6.30
Notice: Undefined offset: 0 in /in/lYSGT on line 8 Fatal error: Call to undefined function xdiff_string_diff() in /in/lYSGT on line 10
Process exited with code 255.
Output for 5.1.0 - 5.2.17
Notice: Undefined offset: 0 in /in/lYSGT on line 8 Fatal error: Call to undefined function xdiff_string_diff() in /in/lYSGT on line 10
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/lYSGT on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/lYSGT on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/lYSGT on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/lYSGT on line 3