3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Three plus two is ", +PHP_VERSION;
Output for 8.3.0 - 8.3.7
Three plus two is Warning: A non-numeric value encountered in /in/iqul4 on line 3 8.3
Output for 8.2.0 - 8.2.19
Three plus two is Warning: A non-numeric value encountered in /in/iqul4 on line 3 8.2
Output for 8.1.0 - 8.1.28
Three plus two is Warning: A non-numeric value encountered in /in/iqul4 on line 3 8.1
Output for 8.0.0 - 8.0.30
Three plus two is Warning: A non-numeric value encountered in /in/iqul4 on line 3 8
Output for 7.4.0 - 7.4.33
Three plus two is Notice: A non well formed numeric value encountered in /in/iqul4 on line 3 7.4
Output for 7.3.32 - 7.3.33
Three plus two is 7.3
Output for 7.3.16 - 7.3.31
Three plus two is Notice: A non well formed numeric value encountered in /in/iqul4 on line 3 7.3
Output for 7.2.0 - 7.2.33
Three plus two is Notice: A non well formed numeric value encountered in /in/iqul4 on line 3 7.2
Output for 7.1.0 - 7.1.20
Three plus two is Notice: A non well formed numeric value encountered in /in/iqul4 on line 3 7.1
Output for 7.0.0 - 7.0.20
Three plus two is 7
Output for 5.6.8 - 5.6.28
Three plus two is 5.6
Output for 5.5.24 - 5.5.35
Three plus two is 5.5

preferences:
166.76 ms | 401 KiB | 185 Q