3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = array_combine(range(0, 10000), range(0, 10000)); $a = microtime(); for($i = 0; $i < 10000; $i++) { array_key_exists(rand(0, 10000), $c); } $b = microtime(); echo $b - $a; echo '\n'; $t = array_combine(range(0, 10000), range(0, 10000)); $d = microtime(); for($i = 0; $i < 10000; $i++) { isset($t[rand(0, 10000)]); } $e = microtime(); echo $e - $d;
based on JFpup
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/J2Cj1 on line 15 Notice: A non well formed numeric value encountered in /in/J2Cj1 on line 15 0.001482\n Notice: A non well formed numeric value encountered in /in/J2Cj1 on line 30 Notice: A non well formed numeric value encountered in /in/J2Cj1 on line 30 0.001426
Output for 7.0.14
0.001232\n0.001085
Output for 7.0.6
0.00089100000000003\n0.00082199999999999
Output for 7.0.5
0.001257\n0.001062
Output for 7.0.4
0.0011\n0.00096099999999999
Output for 7.0.3
0.001091\n0.001018
Output for 7.0.2
0.000718\n0.00063899999999995
Output for 7.0.1
0.0012519999999999\n0.00098700000000007
Output for 7.0.0
0.001202\n0.001134
Output for 5.6.28
0.004791\n0.002947
Output for 5.6.21
0.002938\n0.002398
Output for 5.6.20
0.002899\n0.002413
Output for 5.6.19
0.0031760000000001\n0.0024749999999999
Output for 5.6.18
0.002178\n0.001719
Output for 5.6.17
0.002012\n0.001782
Output for 5.6.16
0.00193\n0.001564
Output for 5.6.15
0.003248\n0.002199
Output for 5.6.14
0.003067\n0.002573
Output for 5.6.13
0.002865\n0.002406
Output for 5.6.12
0.00248\n0.002004
Output for 5.6.11
0.003298\n0.002746
Output for 5.6.10
0.003035\n0.0024690000000001
Output for 5.6.9
0.002238\n0.002004
Output for 5.6.8
0.002379\n0.002051
Output for 5.5.35
0.003016\n0.002276
Output for 5.5.34
0.002006\n0.001583
Output for 5.5.33
0.002129\n0.001737
Output for 5.5.32
0.002182\n0.001932
Output for 5.5.31
0.0028820000000001\n0.002372
Output for 5.5.30
0.002118\n0.001755
Output for 5.5.29
0.003339\n0.00267
Output for 5.5.28
0.003039\n0.00244
Output for 5.5.27
0.002953\n0.002352
Output for 5.5.26
0.003431\n0.002489
Output for 5.5.25
0.002926\n0.002404
Output for 5.5.24
0.002879\n0.002383
Output for 5.4.45
0.002566\n0.002139
Output for 5.4.44
0.002483\n0.001988
Output for 5.4.43
0.00295\n0.002292
Output for 5.4.42
0.002198\n0.002071
Output for 5.4.41
0.003129\n0.0024380000000001
Output for 5.4.40
0.002744\n0.002211
Output for 5.4.39
0.002621\n0.0020899999999999
Output for 5.4.38
0.002869\n0.002275
Output for 5.4.37
0.002365\n0.001835
Output for 5.4.36
0.003639\n0.00288
Output for 5.4.35
0.003611\n0.002395
Output for 5.4.34
0.003107\n0.002359
Output for 5.4.32
0.002641\n0.002074
Output for 5.4.31
0.003119\n0.002467
Output for 5.4.30
0.002737\n0.002257
Output for 5.4.29
0.003314\n0.002541
Output for 5.4.28
0.0021190000000001\n0.001784
Output for 5.4.27
0.003664\n0.002491
Output for 5.4.26
0.00288\n0.002387
Output for 5.4.25
0.0030979999999999\n0.002422
Output for 5.4.24
0.0031680000000001\n0.0028530000000001
Output for 5.4.23
0.0027459999999999\n0.002261
Output for 5.4.22
0.002247\n0.001858
Output for 5.4.21
0.00237\n0.0019440000000001
Output for 5.4.20
0.00304\n0.002499
Output for 5.4.19
0.003091\n0.0026109999999999
Output for 5.4.18
0.00296\n0.002443
Output for 5.4.17
0.002951\n0.002457
Output for 5.4.16
0.002628\n0.001754
Output for 5.4.15
0.004114\n0.002752
Output for 5.4.14
0.003157\n0.002471
Output for 5.4.13
0.002906\n0.002192
Output for 5.4.12
0.002996\n0.00226
Output for 5.4.11
0.003223\n0.002539
Output for 5.4.10
0.002518\n0.002051
Output for 5.4.9
0.0021639999999999\n0.002014
Output for 5.4.8
0.003216\n0.002516
Output for 5.4.7
0.0033340000000001\n0.0025229999999999
Output for 5.4.6
0.0031680000000001\n0.00256
Output for 5.4.5
0.003123\n0.002529
Output for 5.4.4
0.0043069999999999\n0.0035459999999999
Output for 5.4.3
0.0031800000000001\n0.002517
Output for 5.4.2
0.003248\n0.002567
Output for 5.4.1
0.003095\n0.002441
Output for 5.4.0
0.003114\n0.002478
Output for 5.3.29
0.004557\n0.003108
Output for 5.3.28
0.003965\n0.002796
Output for 5.3.27
0.004411\n0.003093
Output for 5.3.26
0.002891\n0.002231
Output for 5.3.25
0.0041960000000001\n0.0029509999999999
Output for 5.3.24
0.004412\n0.003007
Output for 5.3.23
0.004293\n0.003039
Output for 5.3.22
0.002985\n0.0021960000000001
Output for 5.3.21
0.004456\n0.0031030000000001
Output for 5.3.20
0.003519\n0.002354
Output for 5.3.19
0.0046889999999999\n0.003242
Output for 5.3.18
0.004554\n0.003291
Output for 5.3.17
0.0043550000000001\n0.003185
Output for 5.3.16
0.00435\n0.002995
Output for 5.3.15
0.003871\n0.002709
Output for 5.3.14
0.003477\n0.002418
Output for 5.3.13
0.004596\n0.003313
Output for 5.3.12
0.004772\n0.003288
Output for 5.3.11
0.004212\n0.003038
Output for 5.3.10
0.00389\n0.002982
Output for 5.3.9
0.00413\n0.003154
Output for 5.3.8
0.0037539999999999\n0.002937
Output for 5.3.7
0.0038929999999999\n0.003181
Output for 5.3.6
0.003886\n0.00302
Output for 5.3.5
0.004275\n0.003238
Output for 5.3.4
0.0026930000000001\n0.002188
Output for 5.3.3
0.003756\n0.002881
Output for 5.3.2
0.003953\n0.003062
Output for 5.3.1
0.004268\n0.003124
Output for 5.3.0
0.003426\n0.002491
Output for 5.2.17
0.004035\n0.003015
Output for 5.2.16
0.004359\n0.003277
Output for 5.2.15
0.0030049999999999\n0.002436
Output for 5.2.14
0.003675\n0.00278
Output for 5.2.13
0.0047050000000001\n0.0035820000000001
Output for 5.2.12
0.0035419999999999\n0.002709
Output for 5.2.11
0.003634\n0.002846
Output for 5.2.10
0.005211\n0.003794
Output for 5.2.9
0.004691\n0.003529
Output for 5.2.8
0.004881\n0.003657
Output for 5.2.7
0.004695\n0.003491
Output for 5.2.6
0.004811\n0.003699
Output for 5.2.5
0.00419\n0.003637
Output for 5.2.4
0.004198\n0.003391
Output for 5.2.3
0.004693\n0.003619
Output for 5.2.2
0.00368\n0.002779
Output for 5.2.1
0.004736\n0.003283
Output for 5.2.0
0.004841\n0.0035580000000001
Output for 5.1.6
0.004283\n0.003352
Output for 5.1.5
0.002947\n0.002427
Output for 5.1.4
0.0036809999999999\n0.002979
Output for 5.1.3
0.00332\n0.0027199999999999
Output for 5.1.2
0.004248\n0.0034230000000001
Output for 5.1.1
0.006927\n0.004989
Output for 5.1.0
0.002369\n0.001993
Output for 5.0.5
0.00666\n0.00481
Output for 5.0.4
0.0045930000000001\n0.003587
Output for 5.0.3
0.005838\n0.00457
Output for 5.0.2
0.004447\n0.003531
Output for 5.0.1
0.004251\n0.0034219999999999
Output for 5.0.0
0.004809\n0.003762
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/J2Cj1 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/J2Cj1 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/J2Cj1 on line 3