3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(0); $date = new DateTime('yesterday'); $null = null; var_dump($date < $null); var_dump($date > $null); var_dump($null < $date); var_dump($null > $date); if (class_exists('DateTimeImmutable')) { $dati = new DateTimeImmutable(); var_dump($dati < $date); var_dump($dati > $date); var_dump($null < $dati); var_dump($null > $dati); } else { echo 'Not Implemented' }
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/AuhUp on line 20
Process exited with code 255.