3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; for ($i=0; $i<10; $i++){ echo $i." : ".strlen($i)."\n"; if ($i==5){ function strlen($x){return "hello";} } }

preferences:
15.03 ms | 404 KiB | 5 Q