3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array( 1, 2, true, null, //will be removed '', //will be removed false, //will be removed 0, //will be removed array(), //will be removed 'finish' ); foreach(array_filter($x, function($v){ echo $v; return true; }) as $b) {}

preferences:
35 ms | 402 KiB | 5 Q