3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable = 'something'; $string = "this is my string that contains a $variable in text form, but i want the variable to actually contain $variable when i echo it"; echo $string;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
166.02 ms | 2370 KiB | 9 Q