3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n=100; // i want {100} printed out print "{$n}"; // oh right, let's escape it then print "\{$n}"; // oh right, let's escape it then print "\{$n\}";
based on 3Jigt
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\}