3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = 1; $c = $a + $a + $a++; var_dump($c);
Output for 4.3.0 - 7.4.1
int(3)