3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 5; $b = 7; echo "The sum of $a and $b is "($a+$b); ?>
Output for 8.1.23 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function The sum of 5 and 7 is () in /in/FeqNA:4 Stack trace: #0 {main} thrown in /in/FeqNA on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/FeqNA on line 4
Process exited with code 255.

preferences:
98.51 ms | 402 KiB | 84 Q