3v4l.org

run code in 300+ PHP versions simultaneously
<?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, '>='));

preferences:
44.86 ms | 402 KiB | 5 Q