3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = microtime(); $a = range(1,100000); foreach ($a as $i) { isset($a['asd']); } echo microtime() - $time; $time = microtime(); $a = range(1,100000); foreach ($a as $i) { array_key_exists('asd', $a); } echo microtime() - $time;
Output for 7.2.6
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.002357 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.003411
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.003133 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.004375
Output for 7.1.10
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.002632 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.004309
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.004308 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.005793
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.004993 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.014649
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.005178 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.008946
Output for 7.1.4
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.00638 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.009991
Output for 7.1.3
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.005011 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.009918
Output for 7.1.2
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.004347 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.007492
Output for 7.1.1
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.003916 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.005963
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 Notice: A non well formed numeric value encountered in /in/4AY4L on line 8 0.003915 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 Notice: A non well formed numeric value encountered in /in/4AY4L on line 15 0.00811
Output for 7.0.20
0.0068310.020481
Output for 7.0.19
0.0052820.008687
Output for 7.0.18
0.0054070.011481
Output for 7.0.17
0.0037760.007867
Output for 7.0.16
0.0048240.006272
Output for 7.0.15
0.0037850.005854
Output for 7.0.14
0.0052660.007768
Output for 7.0.13
0.0057650.010396
Output for 7.0.12
0.0057320.010394
Output for 7.0.11
0.0050320.010222
Output for 7.0.10
0.0043170.00768
Output for 7.0.9
0.004140.007027
Output for 7.0.8
0.0055390.010013
Output for 7.0.7
0.0051820.0092
Output for 7.0.6
0.0090150.011771
Output for 7.0.5
0.0051770.010344
Output for 7.0.4
0.0053590.010147
Output for 7.0.3
0.0050950.009791
Output for 7.0.2
0.0056340.009096
Output for 7.0.1
0.0057710.01143
Output for 7.0.0
0.0060790.00853
Output for hhvm-3.15.4
0.0105650.011021
Output for 5.6.30
0.0324580.059156
Output for 5.6.29
0.0269880.060808
Output for 5.6.28
0.0335040.078062
Output for 5.6.27
0.0270890.050831
Output for 5.6.26
0.0362250.07621
Output for 5.6.25
0.0260450.064839
Output for 5.6.24
0.038280.074822
Output for 5.6.23
0.0516030.070026
Output for 5.6.22
0.0259150.0469
Output for 5.6.21
0.0361370.065574
Output for 5.6.20
0.0302560.07806
Output for 5.6.19
0.0338160.068306
Output for 5.6.18
0.0270430.062712
Output for 5.6.17
0.0329360.070455
Output for 5.6.16
0.0349580.060709
Output for 5.6.15
0.0359620.077244
Output for 5.6.14
0.0374450.069004
Output for 5.6.13
0.0350930.05811
Output for 5.6.12
0.0358310.074068
Output for 5.6.11
0.0467510.074312
Output for 5.6.10
0.0333290.105958
Output for 5.6.9
0.043460.065807
Output for 5.6.8
0.0235320.046579
Output for 5.6.7
0.0347140.047893
Output for 5.6.6
0.0327370.07102
Output for 5.6.5
0.0329630.086409
Output for 5.6.4
0.0319730.100296
Output for 5.6.3
0.0234970.049388
Output for 5.6.2
0.0339510.06737
Output for 5.6.1
0.0269510.045216
Output for 5.6.0
0.0281050.05626