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"; echo "{{$n}}";
based on jl9hH
Output for 5.1.1 - 7.2.0
100 \{100} {100}
Output for 5.1.0
100 {$n} {100}
Output for 4.3.0 - 5.0.5
100 {100} {100}