3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php echo 'This is a test'; $compressed = gzcompress('This is a test'); echo '<br>'; for ($i=0; $i<strlen($compressed); $i++) { echo '['.$i.'] = '.ord($compressed[$i]).'<br>'; } ?> $compressed = gzcompress('This is a test'); echo '<br>'; for ($i=0; $i<strlen($compressed); $i++) { echo '['.$i.'] = '.ord($compressed[$i]).'<br>'; } ?>
Output for 5.3.0 - 5.5.7
Parse error: syntax error, unexpected '<' in /in/1rCAE on line 2
Process exited with code 255.