3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* this is interned as a literal string */ $literal = 'o'; /* ord is not called, it's optimized away */ $ord = ord('o'); /* chr is called and returns the interned string */ $chr = chr($ord); var_dump($chr, is_literal($chr));

preferences:
51.19 ms | 402 KiB | 5 Q