3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function compareByLength() { $a="jani"; $b="kavi"; $aa=strlen($a) <=> strlen($b); echo "$aa Refsnes.<br>"; // echo $a; } compareByLength(); ?>
based on vRv2H
Output for 7.0.0 - 7.2.0
0 Refsnes.<br>
Output for 5.3.21 - 5.6.28
Parse error: syntax error, unexpected '>' in /in/Catth on line 6
Process exited with code 255.