3v4l.org

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