3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(range(1.6, 2, 0.1)); print_r(range(1.6, 2, 0.1));
Output for 8.0.0 - 8.0.19, 8.1.0 - 8.1.6
array(5) { [0]=> float(1.6) [1]=> float(1.7000000000000002) [2]=> float(1.8) [3]=> float(1.9000000000000001) [4]=> float(2) } Array ( [0] => 1.6 [1] => 1.7 [2] => 1.8 [3] => 1.9 [4] => 2 )
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.29
array(5) { [0]=> float(1.6) [1]=> float(1.7) [2]=> float(1.8) [3]=> float(1.9) [4]=> float(2) } Array ( [0] => 1.6 [1] => 1.7 [2] => 1.8 [3] => 1.9 [4] => 2 )

preferences:
44.57 ms | 410 KiB | 5 Q