3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $blockTimes = array(20,20,20,20,20,20); $totalTimes = array(100,100,100,100,100,100); $totalBlocked = array_map(function() {$a / $b;}, $blockTimes, $totalTimes); var_dump($totalBlocked); ?>
based on I0CYi
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: a in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 array(6) { [0]=> NULL [1]=> NULL [2]=> NULL [3]=> NULL [4]=> NULL [5]=> NULL }
Output for 5.3.18 - 5.6.28
Notice: Undefined variable: b in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 Notice: Undefined variable: b in /in/oQ9BN on line 5 Notice: Undefined variable: a in /in/oQ9BN on line 5 Warning: Division by zero in /in/oQ9BN on line 5 array(6) { [0]=> NULL [1]=> NULL [2]=> NULL [3]=> NULL [4]=> NULL [5]=> NULL }