3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = \'<?php $x = \'*\'; $x = str_replace(chr(0x2A), $x, $x); $x = addslashes($x); echo $x; ?>\'; $x = str_replace(chr(0x2A), $x, $x); $x = addslashes($x); echo $x; ?>
Output for 5.4.0 - 5.4.4
Parse error: syntax error, unexpected ''<?php $x = \'*\'; $x = str_re' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) in /in/TaA6l on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.14
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in /in/TaA6l on line 1
Process exited with code 255.

preferences:
167.99 ms | 1395 KiB | 27 Q