3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new \DateTimeImmutable('now') <=> 0);
based on O2qmg
Output for hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0rc3
Notice: Object of class DateTimeImmutable could not be converted to int in /in/THjvr on line 2 int(1)
Output for hhvm-3.22.0
Notice: Object of class DateTimeImmutable could not be converted to int in /in/THjvr on line -1 int(1)
Output for 5.6.30
Parse error: syntax error, unexpected '>' in /in/THjvr on line 2
Process exited with code 255.