3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tstart = microtime(true); $numberOfRandoms = 500; $uniques = array(); do { $uniques[mt_rand(10000, 99999)] = true; } while(count(array_keys($uniques)) < $numberOfRandoms); $uniques = array_keys($uniques); $elapsed = $tstart - $start; echo $elapsed . PHP_EOL;
Output for 7.1.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758742.0062
Output for 7.0.14
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758742.0039
Output for 7.0.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1462255021.6718
Output for 7.0.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459623280.1645
Output for 7.0.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1457590198.6384
Output for 7.0.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1458283290.0386
Output for 7.0.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1458649618.6571
Output for 7.0.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1458754158.788
Output for 7.0.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459019411.5429
Output for hhvm-3.12.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459267716.6332
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758742.0046
Output for 5.6.21
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1462151762.8783
Output for 5.6.20
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1460223829.8175
Output for 5.6.19
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1457360111.4642
Output for 5.6.18
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1457992766.2367
Output for 5.6.17
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1458385208.1374
Output for 5.6.16
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459108512.4291
Output for 5.6.15
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459198119.7467
Output for 5.6.14
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459552988.4156
Output for 5.6.13
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1460690307.2655
Output for 5.6.12
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461084858.8981
Output for 5.6.11
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461369202.3837
Output for 5.6.10
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461548686.4909
Output for 5.6.9
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461739328.0711
Output for 5.6.8
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461940823.4003
Output for 5.6.7
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1464165419.9133
Output for 5.5.35
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1463893052.7762
Output for 5.5.34
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1460319057.4751
Output for 5.5.33
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1457456729.929
Output for 5.5.32
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1458172271.656
Output for 5.5.31
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1458481648.2711
Output for 5.5.30
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1459465002.042
Output for 5.5.29
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1460827408.8643
Output for 5.5.28
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461182392.979
Output for 5.5.27
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461277823.9539
Output for 5.5.26
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461643835.5701
Output for 5.5.25
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1461838404.8777
Output for 5.5.24
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1464023338.9183
Output for 5.4.45
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1442227269.7014
Output for 5.4.44
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1441384635.2158
Output for 5.4.43
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1441384632.5252
Output for 5.4.42
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1441384631.3501
Output for 5.4.41
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1441384629.0719
Output for 5.4.40
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1441384626.7787
Output for 5.4.39
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1441384626.34
Output for 5.4.38
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1425392683.5174
Output for 5.4.37
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1425392676.6163
Output for 5.4.36
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1425392676.1905
Output for 5.4.35
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1425392675.7901
Output for 5.4.34
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1425392675.4071
Output for 5.4.32
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1410495969.8066
Output for 5.4.31
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1410495967.8093
Output for 5.4.30
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1410495962.6496
Output for 5.4.29
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1410495962.0812
Output for 5.4.28
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758745.6576
Output for 5.4.27
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758745.7146
Output for 5.4.26
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758745.7814
Output for 5.4.25
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758745.8804
Output for 5.4.24
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758745.967
Output for 5.4.23
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.0485
Output for 5.4.22
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.1437
Output for 5.4.21
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.249
Output for 5.4.20
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.371
Output for 5.4.19
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.4711
Output for 5.4.18
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.5696
Output for 5.4.17
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.6505
Output for 5.4.16
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.7395
Output for 5.4.15
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.8382
Output for 5.4.14
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758746.975
Output for 5.4.13
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.0616
Output for 5.4.12
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.1417
Output for 5.4.11
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.2182
Output for 5.4.10
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.2889
Output for 5.4.9
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.3678
Output for 5.4.8
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.4712
Output for 5.4.7
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.5388
Output for 5.4.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.6004
Output for 5.4.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.6611
Output for 5.4.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.7156
Output for 5.4.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.775
Output for 5.4.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.8427
Output for 5.4.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.8986
Output for 5.4.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758747.9549
Output for 5.3.29
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1410495963.2065
Output for 5.3.28
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.0146
Output for 5.3.27
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.1419
Output for 5.3.26
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.2215
Output for 5.3.25
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.2994
Output for 5.3.24
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.3716
Output for 5.3.23
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.4441
Output for 5.3.22
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.5206
Output for 5.3.21
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.6082
Output for 5.3.20
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.6839
Output for 5.3.19
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.7579
Output for 5.3.18
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.8286
Output for 5.3.17
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.9208
Output for 5.3.16
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758748.9942
Output for 5.3.15
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.0666
Output for 5.3.14
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.229
Output for 5.3.13
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.3204
Output for 5.3.12
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.4006
Output for 5.3.11
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.4849
Output for 5.3.10
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.5627
Output for 5.3.9
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.6544
Output for 5.3.8
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.7343
Output for 5.3.7
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.8093
Output for 5.3.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.9009
Output for 5.3.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758749.9862
Output for 5.3.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.1126
Output for 5.3.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.1831
Output for 5.3.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.2612
Output for 5.3.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.3467
Output for 5.3.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.4252
Output for 5.2.17
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.4987
Output for 5.2.16
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.5477
Output for 5.2.15
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.6341
Output for 5.2.14
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.7011
Output for 5.2.13
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.7481
Output for 5.2.12
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.8163
Output for 5.2.11
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.8863
Output for 5.2.10
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758750.9528
Output for 5.2.9
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.0188
Output for 5.2.8
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.0837
Output for 5.2.7
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.151
Output for 5.2.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.2196
Output for 5.2.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.2853
Output for 5.2.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.3542
Output for 5.2.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.4253
Output for 5.2.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.4955
Output for 5.2.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.5756
Output for 5.2.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.6408
Output for 5.1.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.6944
Output for 5.1.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.7513
Output for 5.1.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.8073
Output for 5.1.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.8653
Output for 5.1.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.9307
Output for 5.1.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758751.9858
Output for 5.1.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758752.0445
Output for 5.0.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758752.0934
Output for 5.0.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758752.1437
Output for 5.0.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758752.2038
Output for 5.0.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 1399758752.2533
Output for 5.0.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 1399758752.3023PHP_EOL
Output for 5.0.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 1399758752.3646PHP_EOL
Output for 4.4.9
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.408814
Output for 4.4.8
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.454105
Output for 4.4.7
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.544015
Output for 4.4.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.610448
Output for 4.4.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.65883
Output for 4.4.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.729106
Output for 4.4.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.776127
Output for 4.4.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.824822
Output for 4.4.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.873963
Output for 4.4.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.932333
Output for 4.3.11
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.984557
Output for 4.3.10
Notice: Undefined variable: start in /in/Sp3F2 on line 14 0.030236
Output for 4.3.9
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.074996PHP_EOL
Output for 4.3.8
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.134112PHP_EOL
Output for 4.3.7
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.17848PHP_EOL
Output for 4.3.6
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.224589PHP_EOL
Output for 4.3.5
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.271856PHP_EOL
Output for 4.3.4
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.329038PHP_EOL
Output for 4.3.3
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.375455PHP_EOL
Output for 4.3.2
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.422977PHP_EOL
Output for 4.3.1
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.472437PHP_EOL
Output for 4.3.0
Notice: Undefined variable: start in /in/Sp3F2 on line 14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Sp3F2 on line 15 0.348855PHP_EOL