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"; ${'lovelyplants'} = 'ferns'; $type = 'plants'; echo "I like ${'lovely' . $type}\n"; ${'lovely' . $type} = 'shrubs'; echo "I like ${'lovely' . $type}\n";
based on N13KZ
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
I like roses I like palms I like ferns I like shrubs