3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = time(); $b = $a - 1000; $c = $b > (time() ? 1 : 2); var_dump( $c );
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0
bool(true)

preferences:
114.22 ms | 402 KiB | 165 Q