3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0;$i<16;$i++) { echo $i."*".$i."+".$i."=".($i*$i+$i*PI)."\n"; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Undefined constant "PI" in /in/8Y8uM:5 Stack trace: #0 {main} thrown in /in/8Y8uM on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 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

preferences:
324.74 ms | 407 KiB | 374 Q