3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $p1 = [2]; $p2 =[4]; echo distance($p1, $p2); function distance($x, $y) { $d = hypot($x, $y); echo $d; }
based on KLvZG
Output for 7.0.0 - 7.3.0beta1
Warning: hypot() expects parameter 1 to be float, array given in /in/5SH3h on line 9
Output for hhvm-3.22.0
Warning: hypot() expects parameter 1 to be double, array given in /in/5SH3h on line -1
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3
Warning: hypot() expects parameter 1 to be double, array given in /in/5SH3h on line 9