3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 1 <=> 1; // 0 echo 1 <=> 2; // -1 echo 2 <=> 1; // 1
based on pMIdu
Output for hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.1
0-11
Output for 5.3.20 - 5.6.30
Parse error: syntax error, unexpected '>' in /in/7F0qe on line 3
Process exited with code 255.