3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Five plus three is " . 5 + 3;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
Five plus three is 8
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /in/N2V4J on line 3 Warning: A non-numeric value encountered in /in/N2V4J on line 3 3
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.26
Warning: A non-numeric value encountered in /in/N2V4J on line 3 3

preferences:
83.53 ms | 408 KiB | 5 Q