3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'cup'; $name = 'coffee'; $str = 'This is a $string with my $name in it.http://www.7di.net'; echo $str. "\n"; eval("\$str = \"$str\";"); echo $str. "\n"; ?>;
Output for 4.3.0 - 7.2.0
This is a $string with my $name in it.http://www.7di.net This is a cup with my coffee in it.http://www.7di.net ;