3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 4; $b = 9; var_dump( strcmp($a, $b), $a <=> $b );
based on SiZJS
Output for 7.0.0 - 7.2.0
int(-5) int(-1)
Output for 5.3.22 - 5.6.28
Parse error: syntax error, unexpected '>' in /in/vMvK1 on line 8
Process exited with code 255.