3v4l.org

run code in 300+ PHP versions simultaneously
<?php $update = [0]; $arr = []; $update && $arr[] = 1; var_dump($arr);

preferences:
24.71 ms | 404 KiB | 5 Q