3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump( 5.0 + 3.0, 5.0 - 3.0, 5.0 % 3.0, 5.0 * 3.0, 5.0 | 3.0, 5.0 & 3.0, 5.0 ^ 3.0, 5.0 << 3.0, 5.0 >> 3.0, 5.0 / 3.0, );
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.6
float(8) float(2) int(2) float(15) int(7) int(1) int(6) int(40) int(0) float(1.6666666666666667)
Output for 7.4.0 - 7.4.33
float(8) float(2) int(2) float(15) int(7) int(1) int(6) int(40) int(0) float(1.6666666666667)

preferences:
124.1 ms | 1253 KiB | 4 Q