3v4l.org

run code in 200+ php & hhvm versions
<?php var_dump(version_compare('1.0.0 alpha 1', '1.0.0 beta 1')); var_dump(version_compare('1.0.0 dev 1', '1.0.0 beta 1')); var_dump(version_compare('1.0.0 totalgarbage 1', '1.0.0 beta 1'));
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.6
int(0) int(0) int(0)