3v4l.org

run code in 200+ PHP versions simultaneously
<?php for ($i = 0; $i < 3; $i++) { static $age = 18; $age++; } var_dump($age);
based on 5pB0O
Output for 5.6.30 - 7.4.0
int(21)