3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n=100; // i want {100} printed out print "{$n}\n"; // oh right, let's escape it then printf("{%s}\n", $n);

preferences:
47.01 ms | 402 KiB | 5 Q