3v4l.org

run code in 300+ PHP versions simultaneously
<?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; $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;
Output for 7.3.1
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000802 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000608
Output for 7.3.0
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000739 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000601
Output for 7.2.13
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000728 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000613
Output for 7.2.12
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001065 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000914
Output for 7.2.11
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001775 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001258
Output for 7.2.10
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000972 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000629
Output for 7.2.9
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000732 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000645
Output for 7.2.8
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000715 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000647
Output for 7.2.7
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000736 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000609
Output for 7.2.6
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001895 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001291
Output for 7.2.5
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000911 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000609
Output for 7.2.4
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000725 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000616
Output for 7.2.3
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000752 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000645
Output for 7.2.2
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.00085 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000715
Output for 7.2.1
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.000808 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.000715
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001974 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001739
Output for 7.1.25
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001754 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001417
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.00182 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001606
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001718 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001417
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.002106 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.0018
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/JFpup on line 15 Notice: A non well formed numeric value encountered in /in/JFpup on line 15 0.001421 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 Notice: A non well formed numeric value encountered in /in/JFpup on line 29 0.001367
Output for 7.0.20
0.0014310.001261
Output for 7.0.14
0.0012230.001098
Output for 7.0.6
0.0011660.00098100000000001
Output for 7.0.5
0.0012040.001047
Output for 7.0.4
0.000908000000000020.00074599999999991
Output for 7.0.3
0.000770999999999990.000722
Output for 7.0.2
0.0011020.001032
Output for 7.0.1
0.000840000000000010.00070199999999998
Output for 7.0.0
0.000727000000000030.00065199999999999
Output for 5.6.28
0.0048120.002984
Output for 5.6.21
0.0031740.002539
Output for 5.6.20
0.0026030.002182
Output for 5.6.19
0.0020220.00173
Output for 5.6.18
0.0019240.00161
Output for 5.6.17
0.00199799999999990.0016809999999999
Output for 5.6.16
0.0029030.00239
Output for 5.6.15
0.0030750.00251
Output for 5.6.14
0.00306400000000010.002559
Output for 5.6.13
0.0036780.002758
Output for 5.6.12
0.0030310.002429
Output for 5.6.11
0.0032410.002578
Output for 5.6.10
0.0028910.002452
Output for 5.6.9
0.0018550.00153
Output for 5.6.8
0.00230699999999990.0019739999999999
Output for 5.5.35
0.0030610.002571
Output for 5.5.34
0.0027850.0021870000000001
Output for 5.5.33
0.003370.002655
Output for 5.5.32
0.0020020.001665
Output for 5.5.31
0.0022970.001667
Output for 5.5.30
0.002530.002032
Output for 5.5.29
0.00337499999999990.002629
Output for 5.5.28
0.00238299999999990.001933
Output for 5.5.27
0.0029380.002075
Output for 5.5.26
0.0020220.0017060000000001
Output for 5.5.25
0.0021740.002105
Output for 5.5.24
0.0020460.0016929999999999
Output for 5.4.45
0.0045030.004727
Output for 5.4.44
0.00307799999999990.0013439999999999
Output for 5.4.43
0.0041350.003933
Output for 5.4.42
0.004790.003911
Output for 5.4.41
0.006150.005525
Output for 5.4.40
0.0025540.002624
Output for 5.4.39
0.0023330.002487
Output for 5.4.38
0.00777399999999990.006119
Output for 5.4.37
0.0049970.004859
Output for 5.4.36
0.0045520.002822
Output for 5.4.35
0.0053860.0050370000000001
Output for 5.4.34
0.0039620.003224
Output for 5.4.32
0.0053790.0043150000000001
Output for 5.4.31
0.00324099999999990.002244
Output for 5.4.30
0.0029720.0020129999999999
Output for 5.4.29
0.0031380.002209
Output for 5.4.28
0.0032210.002342
Output for 5.4.27
0.0031950.002178
Output for 5.4.26
0.0030230.002268
Output for 5.4.25
0.0029940.002035
Output for 5.4.24
0.0029960.002024
Output for 5.4.23
0.0028670.001952
Output for 5.4.22
0.0029150.002042
Output for 5.4.21
0.00293899999999990.0020979999999999
Output for 5.4.20
0.0030770.002165
Output for 5.4.19
0.0039370.002325
Output for 5.4.18
0.003120.002121
Output for 5.4.17
0.00291300000000010.002012
Output for 5.4.16
0.0029820.002192
Output for 5.4.15
0.00313999999999990.002067
Output for 5.4.14
0.0032680.002508
Output for 5.4.13
0.0031590.002039
Output for 5.4.12
0.0032250.002295
Output for 5.4.11
0.0033590.002422
Output for 5.4.10
0.0032690.00236
Output for 5.4.9
0.0047630.002817
Output for 5.4.8
0.0031230.002276
Output for 5.4.7
0.0032750.002523
Output for 5.4.6
0.0030460.002132
Output for 5.4.5
0.0028890.00206
Output for 5.4.4
0.003340.002203
Output for 5.4.3
0.00298599999999990.0023069999999999
Output for 5.4.2
0.0032170.002874
Output for 5.4.1
0.0029990.002107
Output for 5.4.0
0.0039040.002707
Output for 5.3.29
0.004190.003049
Output for 5.3.28
0.00362100000000010.002548
Output for 5.3.27
0.00389000000000010.0022289999999999
Output for 5.3.26
0.0032980.002387
Output for 5.3.25
0.0036610.002325
Output for 5.3.24
0.0033530.002212
Output for 5.3.23
0.0034850.002296
Output for 5.3.22
0.0044240.002943
Output for 5.3.21
0.0040050.002356
Output for 5.3.20
0.0038140.00239
Output for 5.3.19
0.0036430.002432
Output for 5.3.18
0.00394000000000010.002325
Output for 5.3.17
0.00355399999999990.002578
Output for 5.3.16
0.004140.0028079999999999
Output for 5.3.15
0.0039610.002514
Output for 5.3.14
0.00417799999999990.002626
Output for 5.3.13
0.0038340.002275
Output for 5.3.12
0.0038780.002301
Output for 5.3.11
0.0041460.002385
Output for 5.3.10
0.0056150.002938
Output for 5.3.9
0.0036290.002403
Output for 5.3.8
0.0038150.002457
Output for 5.3.7
0.003540.002351
Output for 5.3.6
0.0038620.002597
Output for 5.3.5
0.0037940.002418
Output for 5.3.4
0.0036580.002253
Output for 5.3.3
0.004030.002949
Output for 5.3.2
0.00413699999999990.0027469999999999
Output for 5.3.1
0.00378499999999990.002398
Output for 5.3.0
0.00415999999999990.002714
Output for 5.2.17
0.0040420.0030789999999999
Output for 5.2.16
0.0038160.0028539999999999
Output for 5.2.15
0.00379700000000010.00275
Output for 5.2.14
0.0038760.0027900000000001
Output for 5.2.13
0.003840.003174
Output for 5.2.12
0.0039370.002814
Output for 5.2.11
0.0039020.002998
Output for 5.2.10
0.0044140.003174
Output for 5.2.9
0.0036720.003059
Output for 5.2.8
0.0042070.003159
Output for 5.2.7
0.0036170.002834
Output for 5.2.6
0.0036550.00269
Output for 5.2.5
0.0039010.002755
Output for 5.2.4
0.0038580.003117
Output for 5.2.3
0.0037830.002836
Output for 5.2.2
0.0039210.002797
Output for 5.2.1
0.00336799999999990.0024740000000001
Output for 5.2.0
0.00318700000000010.002772
Output for 5.1.6
0.0034080.0038440000000001
Output for 5.1.5
0.0034010.003116
Output for 5.1.4
0.0031240.0025679999999999
Output for 5.1.3
0.0041710.003992
Output for 5.1.2
0.0032890.002464
Output for 5.1.1
0.0030370.002422
Output for 5.1.0
0.0038580.003047
Output for 5.0.5
0.0048950.003593
Output for 5.0.4
0.0048370.004021
Output for 5.0.3
0.004890.003584
Output for 5.0.2
0.0045320.003565
Output for 5.0.1
0.0048910.003772
Output for 5.0.0
0.0045220.003274
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/JFpup on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/JFpup 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/JFpup on line 3

preferences:
175.32 ms | 401 KiB | 190 Q