3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i=0;$i<16;$i++) { echo $i."*".$i."+".$i."=".($i*$i+$i*PI)."\n"; } ?>
Output for 7.1.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 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 - 7.0.14
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