3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'hello'; ?> <?php/* endif;*/ ?> <?php echo 'world'; ?>
Output for 7.2.0
hello Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/14K98 on line 2 world
Output for 5.4.0 - 7.1.7
hello Notice: Use of undefined constant php - assumed 'php' in /in/14K98 on line 2 world
Output for 4.3.0 - 5.3.29
hello<?php/* endif;*/ ?> world