3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; if(1) { $x = 3; } print_r($x);

preferences:
41.64 ms | 402 KiB | 5 Q