3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(0=>1,1=>2); $check = true; unset($arr[0], $check); print_r($arr);

preferences:
21.02 ms | 402 KiB | 5 Q