3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(2+"2"); var_dump(2/0); var_dump(2/0+2);
based on EUrWi
Output for 7.0.0 - 7.2.0
int(4) Warning: Division by zero in /in/WrCXn on line 4 float(INF) Warning: Division by zero in /in/WrCXn on line 5 float(INF)
Output for 5.3.18 - 5.6.28
int(4) Warning: Division by zero in /in/WrCXn on line 4 bool(false) Warning: Division by zero in /in/WrCXn on line 5 int(2)