<?php $a = '7.0.x';$b = '7.0.2'; var_dump(version_compare($a, $b));
Standard input is empty
int(-1)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!