3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0; $a || $a = 9; $b = 0; $b or $b = 9; var_dump($a, $b);

preferences:
51.76 ms | 404 KiB | 5 Q