3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(){ echo 'oops'; } echo preg_replace('/.+/e', 'strtoupper("\0")', $s='{ f()}');

preferences:
38.92 ms | 402 KiB | 5 Q