3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c=' <?php $c=\'%s\'; printf($c, addslashes($c));';p[]] printf($c, addslashes($c));
based on mc9SN
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected ']' in /in/i5eJC on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.17
Fatal error: Cannot use [] for reading in /in/i5eJC on line 5
Process exited with code 255.
Output for 5.3.21 - 5.5.31
Parse error: syntax error, unexpected '[' in /in/i5eJC on line 5
Process exited with code 255.