3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(1/0); for ($i = 10; $i <= 30; $i++) { echo $i." ".intval("Infinity", $i)."\n"; }
based on keTn1
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/HLd3u on line 3 float(INF) 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 18 20 18 21 18 22 18 23 18 24 151176378 25 185011843 26 224651640 27 270812475 28 324267766 29 385849803 30 13693557269
Output for 5.3.18 - 5.6.28
Warning: Division by zero in /in/HLd3u on line 3 bool(false) 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 18 20 18 21 18 22 18 23 18 24 151176378 25 185011843 26 224651640 27 270812475 28 324267766 29 385849803 30 13693557269