3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v0 = '5.6.3RC1'; foreach(array('5.6.2', '5.6.3RC', '5.6.3RC1', '5.6.3RC2', '5.6.3') as $v) { echo "$v vs $v0=", version_compare($v, $v0), "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
5.6.2 vs 5.6.3RC1=-1 5.6.3RC vs 5.6.3RC1=-1 5.6.3RC1 vs 5.6.3RC1=0 5.6.3RC2 vs 5.6.3RC1=1 5.6.3 vs 5.6.3RC1=1
Output for hhvm-3.10.0

Process exited with code 153.