3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = '$hello , ken (JX02), Your Orders $invoiceno has been delivered. Thank you.'; $hello = "morning!"; $msg = isset($hello) ? str_replace( '$hello' , $hello, $msg): str_replace( '$hello' , "", $msg); $msg = isset($invoiceno) ? str_replace( '$invoiceno' , $invoiceno, $msg): str_replace( '$invoiceno' , "", $msg); echo str_replace(" ", " ", $msg);; ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.52 ms | 2120 KiB | 9 Q