3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($a, $b) { var_dump($a === $b); var_dump($a !== $b); var_dump($a < $b); var_dump($a <= $b); var_dump($a == $b); var_dump($a != $b); var_dump($a >= $b); var_dump($a > $b); var_dump($a <=> $b) } class A{}; class C{}; $a = array(0, 1); $b = array(NAN, 0); test($a, $b);
based on YuOOm
Output for 5.3.17 - 5.6.13
Parse error: syntax error, unexpected '>' in /in/CgmDo on line 12
Process exited with code 255.