3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v = '2015-03-20 09:55:17 +0100 (59eda4e)'; var_dump(version_compare($v, $v)); var_dump(version_compare($v, $v, '>=')); $v = '2015-03-20 09:55:17 +0100 [59eda4e]'; var_dump(version_compare($v, $v)); var_dump(version_compare($v, $v, '>=')); $v = '2015-03-20 09:55:17 +0100 59eda4e'; var_dump(version_compare($v, $v)); var_dump(version_compare($v, $v, '>='));
based on oDfgR
Output for 4.3.0 - 7.2.0
int(-1) bool(false) int(-1) bool(false) int(0) bool(true)