3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function cmp($a, $b) { die; return strcmp($a, $b); } $fruits = array(5,1,9,7,4); usort($fruits, "cmp"); echo '<pre>'; print_r($fruits); echo '</pre>';
based on AVhdg
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0