3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = 10; $a-=2+2; var_dump($a);
Output for 7.2.0 - 7.4.4
int(6)