3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num = 5; for($i = 1; $i <= 365; $i++) { static $total; $num = $num + 2; $total = $num + $total; } echo 'total = ' . $total;
based on YOG2t
Output for 4.3.0 - 7.1.0
total = 135415