3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $limit = 100000; for ($i = 0; $i < $limit; ++$i) { $j = $i % 10 === 0; } for ($i = 0; $i < $limit; ++$i) { $j = $i & 1; } for ($i = 0; $i < $limit; ++$i) { $j = (bool) $i & 10; }
Output for 4.3.0 - 7.2.0