3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello'; function hello(&$string = '') { $string .= ' World!'; print trim($string); } hello(); hello($string); hello($string); ?>

preferences:
34.27 ms | 402 KiB | 5 Q