3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lovelyflowers = 'roses'; $lovelytrees = 'palms'; $type = 'flowers'; echo "I like ${'lovely' . $type}\n"; $type = 'trees'; echo "I like ${'lovely' . $type}\n";
based on joer4
Output for 4.3.0 - 7.1.0
I like roses I like palms