3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 'intruder'; define('con', '"smart"'); // Use a closure (anomynous function) like so: $_ = function ($val){return $val;}; $doc = <<<TXT Hi there, One day I caught this $int nearby. I was then told that actually other {$_(con)} $int was there before. So who came first, the chicken or the egg? TXT; echo $doc;

preferences:
44.38 ms | 402 KiB | 5 Q