3v4l.org

run code in 200+ PHP versions simultaneously
<?php error_reporting(E_ALL); define('great','my'); $great='fantastic'; $my='my value'; echo "This is ${great }<br/>\n";//output:my value echo "This is ${ great}<br/>\n";//output:my value echo "This is ${ great }<br/>\n";//output:my value echo "This is ${great}<br/>\n";//output:fantastic
Output for 5.5.0 - 7.4.0
This is my value<br/> This is my value<br/> This is my value<br/> This is fantastic<br/>
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.4.45
This is fantastic<br/> This is my value<br/> This is my value<br/> This is fantastic<br/>
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/jQXFc on line 11
Process exited with code 255.