3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_STRICT); function optionalParam($x = 1, $y = 5, $z) { if ((!$z > 0)) { $z = 1; } for($count = $x; $count < $y; $count+= $z) { echo "#"; } } optionalParam(2,4,2); ?>

preferences:
56.07 ms | 402 KiB | 5 Q