3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = 1; if($a){ echo 'true'; }else { echo 'false'; }
Output for 4.3.0 - 7.4.0
true