3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = '<div class="center"> <table border="0" cellpadding="3" width="600"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_date">date</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">date/time support </td><td class="v">enabled </td></tr> <tr><td class="e">&quot;Olson&quot; Timezone Database Version </td><td class="v">2007.5 </td></tr> <tr><td class="e">Timezone Database </td><td class="v">internal </td></tr> <tr><td class="e">Default timezone </td><td class="v">UTC </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">date.default_latitude</td><td class="v">31.7667</td><td class="v">31.7667</td></tr> <tr><td class="e">date.default_longitude</td><td class="v">35.2333</td><td class="v">35.2333</td></tr> <tr><td class="e">date.sunrise_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.sunset_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.timezone</td><td class="v">Europe/Amsterdam</td><td class="v">Europe/Amsterdam</td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr><td class="e">Multibyte Support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte string engine </td><td class="v">libmbfl </td></tr> <tr><td class="e">Multibyte (japanese) regex support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte regex (oniguruma) version </td><td class="v">4.4.4 </td></tr> <tr><td class="e">Multibyte regex (oniguruma) backtrack check </td><td class="v">On </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.</th></tr> </table><br /> <h2><a name="module_xml">xml</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">XML Support </td><td class="v">active </td></tr> <tr><td class="e">XML Namespace Support </td><td class="v">active </td></tr> <tr><td class="e">libxml2 Version </td><td class="v">2.7.8 </td></tr> </table><br /> <h2><a name="module_xmlreader">xmlreader</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">XMLReader </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_xmlwriter">xmlwriter</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">XMLWriter </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_zip">zip</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">Zip </td><td class="v">enabled </td></tr> <tr><td class="e">Extension Version </td><td class="v">$Id: php_zip.c,v 1.1.2.31 2007/03/14 15:02:20 iliaa Exp $ </td></tr> <tr><td class="e">Zip version </td><td class="v">2.0.0 </td></tr> <tr><td class="e">Libzip version </td><td class="v">0.7.1 </td></tr> </table><br /> <h2><a name="module_zlib">zlib</a></h2> <table border="0" cellpadding="3" width="600"> <tr><td class="e">ZLib Support </td><td class="v">enabled </td></tr> <tr><td class="e">Stream Wrapper support </td><td class="v">compress.zlib:// </td></tr> <tr><td class="e">Stream Filter support </td><td class="v">zlib.inflate, zlib.deflate </td></tr> <tr><td class="e">Compiled Version </td><td class="v">1.2.6 </td></tr> <tr><td class="e">Linked Version </td><td class="v">1.2.8 </td></tr> </table><br /> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">zlib.output_compression</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">zlib.output_compression_level</td><td class="v">-1</td><td class="v">-1</td></tr> <tr><td class="e">zlib.output_handler</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> </table><br /> <h2>Additional Modules</h2> <table border="0" cellpadding="3" width="600"> <tr class="h"><th>Module Name</th></tr> </table><br /> </div> <table></table>'; $output1 = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output); echo $output[1][0] . PHP_EOL . PHP_EOL . $output1;
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
d <div class="center"> <table class="table table-striped adminlist"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_date">date</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">date/time support </td><td class="v">enabled </td></tr> <tr><td class="e">&quot;Olson&quot; Timezone Database Version </td><td class="v">2007.5 </td></tr> <tr><td class="e">Timezone Database </td><td class="v">internal </td></tr> <tr><td class="e">Default timezone </td><td class="v">UTC </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">date.default_latitude</td><td class="v">31.7667</td><td class="v">31.7667</td></tr> <tr><td class="e">date.default_longitude</td><td class="v">35.2333</td><td class="v">35.2333</td></tr> <tr><td class="e">date.sunrise_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.sunset_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.timezone</td><td class="v">Europe/Amsterdam</td><td class="v">Europe/Amsterdam</td></tr> </table><br /> <table class="table table-striped adminlist"> <tr><td class="e">Multibyte Support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte string engine </td><td class="v">libmbfl </td></tr> <tr><td class="e">Multibyte (japanese) regex support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte regex (oniguruma) version </td><td class="v">4.4.4 </td></tr> <tr><td class="e">Multibyte regex (oniguruma) backtrack check </td><td class="v">On </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.</th></tr> </table><br /> <h2><a name="module_xml">xml</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XML Support </td><td class="v">active </td></tr> <tr><td class="e">XML Namespace Support </td><td class="v">active </td></tr> <tr><td class="e">libxml2 Version </td><td class="v">2.7.8 </td></tr> </table><br /> <h2><a name="module_xmlreader">xmlreader</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XMLReader </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_xmlwriter">xmlwriter</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XMLWriter </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_zip">zip</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">Zip </td><td class="v">enabled </td></tr> <tr><td class="e">Extension Version </td><td class="v">$Id: php_zip.c,v 1.1.2.31 2007/03/14 15:02:20 iliaa Exp $ </td></tr> <tr><td class="e">Zip version </td><td class="v">2.0.0 </td></tr> <tr><td class="e">Libzip version </td><td class="v">0.7.1 </td></tr> </table><br /> <h2><a name="module_zlib">zlib</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">ZLib Support </td><td class="v">enabled </td></tr> <tr><td class="e">Stream Wrapper support </td><td class="v">compress.zlib:// </td></tr> <tr><td class="e">Stream Filter support </td><td class="v">zlib.inflate, zlib.deflate </td></tr> <tr><td class="e">Compiled Version </td><td class="v">1.2.6 </td></tr> <tr><td class="e">Linked Version </td><td class="v">1.2.8 </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">zlib.output_compression</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">zlib.output_compression_level</td><td class="v">-1</td><td class="v">-1</td></tr> <tr><td class="e">zlib.output_handler</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> </table><br /> <h2>Additional Modules</h2> <table class="table table-striped adminlist"> <tr class="h"><th>Module Name</th></tr> </table><br /> </div> <table class="table table-striped adminlist"></table>
Output for 5.0.0 - 5.3.29
Fatal error: Cannot use string offset as an array in /in/llTmp on line 73
Process exited with code 255.
Output for 4.3.10 - 4.4.9
<div class="center"> <table class="table table-striped adminlist"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_date">date</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">date/time support </td><td class="v">enabled </td></tr> <tr><td class="e">&quot;Olson&quot; Timezone Database Version </td><td class="v">2007.5 </td></tr> <tr><td class="e">Timezone Database </td><td class="v">internal </td></tr> <tr><td class="e">Default timezone </td><td class="v">UTC </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">date.default_latitude</td><td class="v">31.7667</td><td class="v">31.7667</td></tr> <tr><td class="e">date.default_longitude</td><td class="v">35.2333</td><td class="v">35.2333</td></tr> <tr><td class="e">date.sunrise_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.sunset_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.timezone</td><td class="v">Europe/Amsterdam</td><td class="v">Europe/Amsterdam</td></tr> </table><br /> <table class="table table-striped adminlist"> <tr><td class="e">Multibyte Support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte string engine </td><td class="v">libmbfl </td></tr> <tr><td class="e">Multibyte (japanese) regex support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte regex (oniguruma) version </td><td class="v">4.4.4 </td></tr> <tr><td class="e">Multibyte regex (oniguruma) backtrack check </td><td class="v">On </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.</th></tr> </table><br /> <h2><a name="module_xml">xml</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XML Support </td><td class="v">active </td></tr> <tr><td class="e">XML Namespace Support </td><td class="v">active </td></tr> <tr><td class="e">libxml2 Version </td><td class="v">2.7.8 </td></tr> </table><br /> <h2><a name="module_xmlreader">xmlreader</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XMLReader </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_xmlwriter">xmlwriter</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XMLWriter </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_zip">zip</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">Zip </td><td class="v">enabled </td></tr> <tr><td class="e">Extension Version </td><td class="v">$Id: php_zip.c,v 1.1.2.31 2007/03/14 15:02:20 iliaa Exp $ </td></tr> <tr><td class="e">Zip version </td><td class="v">2.0.0 </td></tr> <tr><td class="e">Libzip version </td><td class="v">0.7.1 </td></tr> </table><br /> <h2><a name="module_zlib">zlib</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">ZLib Support </td><td class="v">enabled </td></tr> <tr><td class="e">Stream Wrapper support </td><td class="v">compress.zlib:// </td></tr> <tr><td class="e">Stream Filter support </td><td class="v">zlib.inflate, zlib.deflate </td></tr> <tr><td class="e">Compiled Version </td><td class="v">1.2.6 </td></tr> <tr><td class="e">Linked Version </td><td class="v">1.2.8 </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">zlib.output_compression</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">zlib.output_compression_level</td><td class="v">-1</td><td class="v">-1</td></tr> <tr><td class="e">zlib.output_handler</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> </table><br /> <h2>Additional Modules</h2> <table class="table table-striped adminlist"> <tr class="h"><th>Module Name</th></tr> </table><br /> </div> <table class="table table-striped adminlist"></table>
Output for 4.3.0 - 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/llTmp on line 73 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/llTmp on line 73 PHP_EOLPHP_EOL<div class="center"> <table class="table table-striped adminlist"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_date">date</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">date/time support </td><td class="v">enabled </td></tr> <tr><td class="e">&quot;Olson&quot; Timezone Database Version </td><td class="v">2007.5 </td></tr> <tr><td class="e">Timezone Database </td><td class="v">internal </td></tr> <tr><td class="e">Default timezone </td><td class="v">UTC </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">date.default_latitude</td><td class="v">31.7667</td><td class="v">31.7667</td></tr> <tr><td class="e">date.default_longitude</td><td class="v">35.2333</td><td class="v">35.2333</td></tr> <tr><td class="e">date.sunrise_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.sunset_zenith</td><td class="v">90.583333</td><td class="v">90.583333</td></tr> <tr><td class="e">date.timezone</td><td class="v">Europe/Amsterdam</td><td class="v">Europe/Amsterdam</td></tr> </table><br /> <table class="table table-striped adminlist"> <tr><td class="e">Multibyte Support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte string engine </td><td class="v">libmbfl </td></tr> <tr><td class="e">Multibyte (japanese) regex support </td><td class="v">enabled </td></tr> <tr><td class="e">Multibyte regex (oniguruma) version </td><td class="v">4.4.4 </td></tr> <tr><td class="e">Multibyte regex (oniguruma) backtrack check </td><td class="v">On </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.</th></tr> </table><br /> <h2><a name="module_xml">xml</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XML Support </td><td class="v">active </td></tr> <tr><td class="e">XML Namespace Support </td><td class="v">active </td></tr> <tr><td class="e">libxml2 Version </td><td class="v">2.7.8 </td></tr> </table><br /> <h2><a name="module_xmlreader">xmlreader</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XMLReader </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_xmlwriter">xmlwriter</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">XMLWriter </td><td class="v">enabled </td></tr> </table><br /> <h2><a name="module_zip">zip</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">Zip </td><td class="v">enabled </td></tr> <tr><td class="e">Extension Version </td><td class="v">$Id: php_zip.c,v 1.1.2.31 2007/03/14 15:02:20 iliaa Exp $ </td></tr> <tr><td class="e">Zip version </td><td class="v">2.0.0 </td></tr> <tr><td class="e">Libzip version </td><td class="v">0.7.1 </td></tr> </table><br /> <h2><a name="module_zlib">zlib</a></h2> <table class="table table-striped adminlist"> <tr><td class="e">ZLib Support </td><td class="v">enabled </td></tr> <tr><td class="e">Stream Wrapper support </td><td class="v">compress.zlib:// </td></tr> <tr><td class="e">Stream Filter support </td><td class="v">zlib.inflate, zlib.deflate </td></tr> <tr><td class="e">Compiled Version </td><td class="v">1.2.6 </td></tr> <tr><td class="e">Linked Version </td><td class="v">1.2.8 </td></tr> </table><br /> <table class="table table-striped adminlist"> <tr class="h"><th>Directive</th><th>Local Value</th><th>Master Value</th></tr> <tr><td class="e">zlib.output_compression</td><td class="v">Off</td><td class="v">Off</td></tr> <tr><td class="e">zlib.output_compression_level</td><td class="v">-1</td><td class="v">-1</td></tr> <tr><td class="e">zlib.output_handler</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr> </table><br /> <h2>Additional Modules</h2> <table class="table table-striped adminlist"> <tr class="h"><th>Module Name</th></tr> </table><br /> </div> <table class="table table-striped adminlist"></table>