3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function odd ($x) { return ($x % 2 === 1)+0; }; $cnt = 0; foreach (range(1,1000) as $x) { $cnt += odd($x); }
based on amFZF
Output for 4.3.0 - 7.1.0