3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=PHP; $b=HPP; var_dump($a <=> $b); ?>
based on GMe3P
Output for 7.2.0
Warning: Use of undefined constant PHP - assumed 'PHP' (this will throw an Error in a future version of PHP) in /in/avXdZ on line 2 Warning: Use of undefined constant HPP - assumed 'HPP' (this will throw an Error in a future version of PHP) in /in/avXdZ on line 3 int(1)
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant PHP - assumed 'PHP' in /in/avXdZ on line 2 Notice: Use of undefined constant HPP - assumed 'HPP' in /in/avXdZ on line 3 int(1)
Output for 5.3.21 - 5.6.28
Parse error: syntax error, unexpected '>' in /in/avXdZ on line 4
Process exited with code 255.