3v4l.org

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