3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print htmlspecialchars(" $c=' <?php $c=\'%s\'; printf($c, addslashes($c));'; printf($c, addslashes($c));");
based on mc9SN
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: c in /in/JEZS2 on line 3 Notice: Undefined variable: c in /in/JEZS2 on line 5 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 =' &lt;?php =\'%s\'; printf(, addslashes());'; printf(, addslashes());
Output for hhvm-3.12.0
Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 =' &lt;?php =\'%s\'; printf(, addslashes());'; printf(, addslashes());
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.3 - 5.6.28
Notice: Undefined variable: c in /in/JEZS2 on line 5 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 =' &lt;?php =\'%s\'; printf(, addslashes());'; printf(, addslashes());
Output for 5.0.4 - 5.2.2
Notice: Undefined variable: c in /in/JEZS2 on line 4 Notice: Undefined variable: c in /in/JEZS2 on line 5 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 =' &lt;?php =\'%s\'; printf(, addslashes());'; printf(, addslashes());
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: c in /in/JEZS2 on line 4 Notice: Undefined variable: c in /in/JEZS2 on line 5 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 =' &lt;?php =\'%s\'; printf(, addslashes());'; printf(, addslashes());
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: c in /in/JEZS2 on line 5 Notice: Undefined variable: c in /in/JEZS2 on line 5 Notice: Undefined variable: c in /in/JEZS2 on line 6 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 Notice: Undefined variable: c in /in/JEZS2 on line 7 =' &lt;?php =\'%s\'; printf(, addslashes());'; printf(, addslashes());