3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $c=' <?php $c=\'%s\'; printf($c, addslashes($c));'; printf($c, addslashes($c));
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<?php $c=' <?php $c=\'%s\'; printf($c, addslashes($c));'; printf($c, addslashes($c));
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /in/p3To8 on line 5
Process exited with code 255.
Output for 4.3.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/p3To8 on line 4 <? $c=' %s\'; printf($c, addslashes($c));'; printf($c, addslashes($c));