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 - microtime(true); echo $elapsed . PHP_EOL;
Output for 7.1.0
-0.00065088272094727
Output for 7.0.14
-0.0008549690246582
Output for 7.0.6
-0.00054407119750977
Output for 7.0.5
-0.00042605400085449
Output for 7.0.4
-0.00042819976806641
Output for 7.0.3
-0.00043201446533203
Output for 7.0.2
-0.00055503845214844
Output for 7.0.1
-0.0006258487701416
Output for 7.0.0
-0.00046992301940918
Output for hhvm-3.12.0
-0.0015158653259277
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
-0.0079288482666016
Output for 5.6.21
-0.0071749687194824
Output for 5.6.20
-0.0072331428527832
Output for 5.6.19
-0.0045170783996582
Output for 5.6.18
-0.011886119842529
Output for 5.6.17
-0.005964994430542
Output for 5.6.16
-0.0060529708862305
Output for 5.6.15
-0.0046420097351074
Output for 5.6.14
-0.0050599575042725
Output for 5.6.13
-0.0074379444122314
Output for 5.6.12
-0.0062410831451416
Output for 5.6.11
-0.0044100284576416
Output for 5.6.10
-0.0048730373382568
Output for 5.6.9
-0.0045421123504639
Output for 5.6.8
-0.0046541690826416
Output for 5.6.7
-0.0045020580291748
Output for 5.5.35
-0.0064611434936523
Output for 5.5.34
-0.004561185836792
Output for 5.5.33
-0.0075969696044922
Output for 5.5.32
-0.0047850608825684
Output for 5.5.31
-0.0068151950836182
Output for 5.5.30
-0.0049428939819336
Output for 5.5.29
-0.004647970199585
Output for 5.5.28
-0.0046310424804688
Output for 5.5.27
-0.0074028968811035
Output for 5.5.26
-0.0048961639404297
Output for 5.5.25
-0.0045509338378906
Output for 5.5.24
-0.0050849914550781
Output for 5.4.45
-0.0083940029144287
Output for 5.4.44
-0.0092120170593262
Output for 5.4.43
-0.0068960189819336
Output for 5.4.42
-0.0073540210723877
Output for 5.4.41
-0.0074570178985596
Output for 5.4.40
-0.0069229602813721
Output for 5.4.39
-0.0068669319152832
Output for 5.4.38
-0.0073478221893311
Output for 5.4.37
-0.010025978088379
Output for 5.4.36
-0.012578010559082
Output for 5.4.35
-0.0077359676361084
Output for 5.4.34
-0.0071470737457275
Output for 5.4.32
-0.0050349235534668
Output for 5.4.31
-0.0050039291381836
Output for 5.4.30
-0.0052459239959717
Output for 5.4.29
-0.005728006362915
Output for 5.4.28
-0.010061025619507
Output for 5.4.27
-0.010209083557129
Output for 5.4.26
-0.010897874832153
Output for 5.4.25
-0.0095899105072021
Output for 5.4.24
-0.01041316986084
Output for 5.4.23
-0.006889820098877
Output for 5.4.22
-0.009559154510498
Output for 5.4.21
-0.012503147125244
Output for 5.4.20
-0.0099079608917236
Output for 5.4.19
-0.010398149490356
Output for 5.4.18
-0.0094668865203857
Output for 5.4.17
-0.010282039642334
Output for 5.4.16
-0.010484933853149
Output for 5.4.15
-0.0092141628265381
Output for 5.4.14
-0.013375997543335
Output for 5.4.13
-0.01230788230896
Output for 5.4.12
-0.0091140270233154
Output for 5.4.11
-0.0092129707336426
Output for 5.4.10
-0.0091400146484375
Output for 5.4.9
-0.012027025222778
Output for 5.4.8
-0.020739793777466
Output for 5.4.7
-0.0089061260223389
Output for 5.4.6
-0.010796785354614
Output for 5.4.5
-0.020462989807129
Output for 5.4.4
-0.0099990367889404
Output for 5.4.3
-0.011466026306152
Output for 5.4.2
-0.0060188770294189
Output for 5.4.1
-0.0064101219177246
Output for 5.4.0
-0.0090699195861816
Output for 5.3.29
-0.0051290988922119
Output for 5.3.28
-0.0058021545410156
Output for 5.3.27
-0.0052211284637451
Output for 5.3.26
-0.0053529739379883
Output for 5.3.25
-0.0073502063751221
Output for 5.3.24
-0.010052919387817
Output for 5.3.23
-0.0056278705596924
Output for 5.3.22
-0.0093338489532471
Output for 5.3.21
-0.0095360279083252
Output for 5.3.20
-0.0096800327301025
Output for 5.3.19
-0.019502878189087
Output for 5.3.18
-0.017442941665649
Output for 5.3.17
-0.0061221122741699
Output for 5.3.16
-0.0093050003051758
Output for 5.3.15
-0.0097348690032959
Output for 5.3.14
-0.019807100296021
Output for 5.3.13
-0.0091187953948975
Output for 5.3.12
-0.0067429542541504
Output for 5.3.11
-0.0057199001312256
Output for 5.3.10
-0.0058419704437256
Output for 5.3.9
-0.0067121982574463
Output for 5.3.8
-0.013304948806763
Output for 5.3.7
-0.0093069076538086
Output for 5.3.6
-0.011230945587158
Output for 5.3.5
-0.016956090927124
Output for 5.3.4
-0.010864973068237
Output for 5.3.3
-0.010396957397461
Output for 5.3.2
-0.012777090072632
Output for 5.3.1
-0.010292053222656
Output for 5.3.0
-0.010867118835449
Output for 5.2.17
-0.011357069015503
Output for 5.2.16
-0.010895967483521
Output for 5.2.15
-0.010481119155884
Output for 5.2.14
-0.010473012924194
Output for 5.2.13
-0.010719060897827
Output for 5.2.12
-0.01099705696106
Output for 5.2.11
-0.0102379322052
Output for 5.2.10
-0.010646104812622
Output for 5.2.9
-0.010349035263062
Output for 5.2.8
-0.010234117507935
Output for 5.2.7
-0.012315034866333
Output for 5.2.6
-0.010406017303467
Output for 5.2.5
-0.0099880695343018
Output for 5.2.4
-0.010241031646729
Output for 5.2.3
-0.0098781585693359
Output for 5.2.2
-0.0097410678863525
Output for 5.2.1
-0.011164903640747
Output for 5.2.0
-0.011992931365967
Output for 5.1.6
-0.014164209365845
Output for 5.1.5
-0.015158891677856
Output for 5.1.4
-0.013970136642456
Output for 5.1.3
-0.018466949462891
Output for 5.1.2
-0.016999959945679
Output for 5.1.1
-0.013476848602295
Output for 5.1.0
-0.021285057067871
Output for 5.0.5
-0.014760971069336
Output for 5.0.4
-0.015220880508423
Output for 5.0.3
-0.013743877410889
Output for 5.0.2
-0.013153076171875
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.015666007995605PHP_EOL
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.014513969421387PHP_EOL
Output for 4.4.9
-0.014816
Output for 4.4.8
-0.015134
Output for 4.4.7
-0.016278
Output for 4.4.6
-0.017279
Output for 4.4.5
-0.017629
Output for 4.4.4
-0.016098
Output for 4.4.3
-0.014654
Output for 4.4.2
-0.015094
Output for 4.4.1
-0.013391
Output for 4.4.0
-0.013201
Output for 4.3.11
-0.013019
Output for 4.3.10
-0.016665
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.015504PHP_EOL
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.014026PHP_EOL
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.013692PHP_EOL
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.015183PHP_EOL
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.015259PHP_EOL
Output for 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.015354PHP_EOL
Output for 4.3.3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.01426PHP_EOL
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.016965PHP_EOL
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.016605PHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4JHCB on line 15 -0.020202PHP_EOL