3v4l.org

run code in 200+ php & hhvm versions
```<?php for (\$i=0;\$i<16;\$i++) { echo \$i."*".\$i."+".\$i."=".(\$i*\$i+\$i*PI)."\n"; } ?>```
Output for 7.2.0 - 7.3.0rc4
Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 0*0+0=0 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 1*1+1=1 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 2*2+2=4 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 3*3+3=9 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 4*4+4=16 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 5*5+5=25 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 6*6+6=36 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 7*7+7=49 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 8*8+8=64 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 9*9+9=81 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 10*10+10=100 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 11*11+11=121 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 12*12+12=144 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 13*13+13=169 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 14*14+14=196 Warning: Use of undefined constant PI - assumed 'PI' (this will throw an Error in a future version of PHP) in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 15*15+15=225
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 0*0+0=0 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 1*1+1=1 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 2*2+2=4 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 3*3+3=9 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 4*4+4=16 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 5*5+5=25 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 6*6+6=36 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 7*7+7=49 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 8*8+8=64 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 9*9+9=81 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 10*10+10=100 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 11*11+11=121 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 12*12+12=144 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 13*13+13=169 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 14*14+14=196 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 Warning: A non-numeric value encountered in /in/8Y8uM on line 5 15*15+15=225
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.0.20
Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 0*0+0=0 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 1*1+1=1 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 2*2+2=4 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 3*3+3=9 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 4*4+4=16 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 5*5+5=25 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 6*6+6=36 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 7*7+7=49 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 8*8+8=64 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 9*9+9=81 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 10*10+10=100 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 11*11+11=121 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 12*12+12=144 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 13*13+13=169 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 14*14+14=196 Notice: Use of undefined constant PI - assumed 'PI' in /in/8Y8uM on line 5 15*15+15=225