3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1, 2, 0.1) as $r) { var_dump($r); if ($r === 1.7) echo "ok\n"; if (intval($r * 10) === 17) echo "okish\n"; }

preferences:
41.7 ms | 408 KiB | 5 Q