3v4l.org

run code in 300+ PHP versions simultaneously
<?php function echoTest() { ob_start(); echo 'function'; } echo 'I am in a ' . echoTest(); echo ob_get_contents(); ob_end_clean();

preferences:
39.59 ms | 402 KiB | 5 Q