3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "C#maj7"; $qualityVal = ""; if (true) { $qualityVal .= substr($string, 2); } $num = 10; $num += 10; class Hello { public function __toString() { return "Hello!"; } } $hello = new Hello(); echo (string) $hello; ?>

preferences:
42.1 ms | 402 KiB | 5 Q