3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(token_get_all(<<<EOT <?php $string['message'] = 'construction'; $text = "this is a ${string['message']} that is valid".PHP_EOL; echo $text; EOT ));
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /in/LMoAE on line 6
Process exited with code 255.

preferences:
187.59 ms | 1387 KiB | 67 Q