3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (4 % 2) ? 'pari' : 'dispari'; echo "\n"; echo (4.3 % 2) ? 'pari' : 'dispari'; echo "\n"; echo (4.8 % 2) ? 'pari' : 'dispari'; echo "\n"; echo (0 % 2) ? 'pari' : 'dispari';
Output for 4.3.0 - 7.2.0
dispari dispari dispari dispari