3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $a = 1.5; sort($a);
Output for 7.0.0 - 7.1.0
Warning: sort() expects parameter 1 to be array, float given in /in/GNpSY on line 5
Output for hhvm-3.10.0 - 3.13.2
Warning: Invalid operand type was used: sort expects array(s) or collection(s) in /in/GNpSY on line 5
Output for 4.3.0 - 5.6.28
Warning: sort() expects parameter 1 to be array, double given in /in/GNpSY on line 5