3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uptime = (100-($server_data['down'] / $server_data['up'])*100); if ($uptime < 0) $uptime = 0; echo $uptime;
Output for 7.0.0 - 7.2.6
Notice: Undefined variable: server_data in /in/gsBe1 on line 2 Notice: Undefined variable: server_data in /in/gsBe1 on line 2 Warning: Division by zero in /in/gsBe1 on line 2 NAN
Output for 5.0.4 - 5.6.25
Notice: Undefined variable: server_data in /in/gsBe1 on line 2 Notice: Undefined variable: server_data in /in/gsBe1 on line 2 Warning: Division by zero in /in/gsBe1 on line 2 100
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: server_data in /in/gsBe1 on line 2 Notice: Undefined variable: server_data in /in/gsBe1 on line 2 Warning: Division by zero in /in/gsBe1 on line 2 100