3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=71927 define('great','my'); $great=[1 => 'fantastic']; $my='my value'; echo "This is ${great[1] }\n"; echo "This is ${ great[1]}\n"; echo "This is ${ great[1] }\n"; echo "This is ${great[1]}\n";

preferences:
49.79 ms | 402 KiB | 5 Q