3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n=10; // i want {100} printed out print "{$n}\n"; // oh right, let's escape it then print "\{$n}\n";
based on iBvY5
Output for 5.1.1 - 7.2.0
10 \{10}
Output for 5.1.0
10 {$n}
Output for 4.3.0 - 5.0.5
10 {10}