3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $starttime = microtime(true); $array = array(3,4,1,3,5,1,92,2,4124,424,52,12); $array_count = count($array); for ($c=0;$c<100000;$c++) { for ($i=0;$i<$array_count;$i++) { for ($y=0;$y<$array_count-1;$y++) { if ($array[$y+1] < $array[$y]) { $array[$y] ^= $array[$y + 1] ^= $array[$y] ^= $array[$y + 1]; } } } } echo microtime(true) - $starttime;
based on SCl60
Output for 7.1.0
-0.28490900993347
Output for 7.0.14
0.26744103431702
Output for 7.0.6
0.42736220359802
Output for 7.0.5
0.41220593452454
Output for 7.0.4
0.50640106201172
Output for 7.0.3
0.44578695297241
Output for 7.0.2
0.42351293563843
Output for 7.0.1
0.40357184410095
Output for 7.0.0
0.40734910964966
Output for 5.6.28
0.73748707771301
Output for 5.6.21
0.86562490463257
Output for 5.6.20
0.8827760219574
Output for 5.6.19
0.89530682563782
Output for 5.6.18
0.87722611427307
Output for 5.6.17
0.89471483230591
Output for 5.6.16
0.90302920341492
Output for 5.6.15
0.91076612472534
Output for 5.6.14
0.89944386482239
Output for 5.6.13
0.87960481643677
Output for 5.6.12
0.9324209690094
Output for 5.6.11
0.8756890296936
Output for 5.6.10
0.91786098480225
Output for 5.6.9
0.93415093421936
Output for 5.6.8
0.84939312934875
Output for 5.5.35
0.82599592208862
Output for 5.5.34
1.0513181686401
Output for 5.5.33
1.1438369750977
Output for 5.5.32
0.8710949420929
Output for 5.5.31
0.93132495880127
Output for 5.5.30
0.92176604270935
Output for 5.5.29
1.0758819580078
Output for 5.5.28
0.93446707725525
Output for 5.5.27
0.89618301391602
Output for 5.5.26
0.98809719085693
Output for 5.5.25
1.0601100921631
Output for 5.5.24
0.88735103607178
Output for 5.4.45
1.8419799804688
Output for 5.4.44
1.643031835556
Output for 5.4.43
1.3173871040344
Output for 5.4.42
1.4144849777222
Output for 5.4.41
1.5339620113373
Output for 5.4.40
1.3550159931183
Output for 5.4.39
2.3292689323425
Output for 5.4.38
1.4432981014252
Output for 5.4.37
1.6437931060791
Output for 5.4.36
1.9657230377197
Output for 5.4.35
2.1225337982178
Output for 5.4.34
1.5405058860779
Output for 5.4.32
0.99694895744324
Output for 5.4.31
1.0144238471985
Output for 5.4.30
0.97956395149231
Output for 5.4.29
0.98807907104492
Output for 5.4.28
1.0186350345612
Output for 5.4.27
1.0016269683838
Output for 5.4.26
1.021390914917
Output for 5.4.25
1.0676159858704
Output for 5.4.24
1.0298719406128
Output for 5.4.23
1.005343914032
Output for 5.4.22
0.99301409721375
Output for 5.4.21
1.0666348934174
Output for 5.4.20
1.0615258216858
Output for 5.4.19
1.0069010257721
Output for 5.4.18
1.0192010402679
Output for 5.4.17
0.99839401245117
Output for 5.4.16
1.0559589862823
Output for 5.4.15
1.0207149982452
Output for 5.4.14
1.044860124588
Output for 5.4.13
1.0520911216736
Output for 5.4.12
1.2316489219666
Output for 5.4.11
1.0274410247803
Output for 5.4.10
1.0192611217499
Output for 5.4.9
1.2510209083557
Output for 5.4.8
1.028636932373
Output for 5.4.7
1.1184930801392
Output for 5.4.6
1.0318109989166
Output for 5.4.5
1.1894519329071
Output for 5.4.4
1.0412111282349
Output for 5.4.3
1.0734419822693
Output for 5.4.2
1.0342001914978
Output for 5.4.1
1.0330739021301
Output for 5.4.0
1.0185170173645
Output for 5.3.29
1.3507850170135
Output for 5.3.28
1.2773959636688
Output for 5.3.27
1.7803177833557
Output for 5.3.26
1.3151278495789
Output for 5.3.25
1.4353611469269
Output for 5.3.24
1.2848031520844
Output for 5.3.23
1.4792981147766
Output for 5.3.22
1.3008689880371
Output for 5.3.21
1.3491430282593
Output for 5.3.20
1.300094127655
Output for 5.3.19
1.2927360534668
Output for 5.3.18
1.3930809497833
Output for 5.3.17
1.304753780365
Output for 5.3.16
1.3096377849579
Output for 5.3.15
1.2726318836212
Output for 5.3.14
1.3364911079407
Output for 5.3.13
1.552983045578
Output for 5.3.12
1.5446729660034
Output for 5.3.11
1.6430389881134
Output for 5.3.10
1.2965700626373
Output for 5.3.9
1.4776740074158
Output for 5.3.8
1.3492188453674
Output for 5.3.7
1.2937870025635
Output for 5.3.6
1.6423139572144
Output for 5.3.5
1.7696249485016
Output for 5.3.4
1.2666320800781
Output for 5.3.3
1.5473480224609
Output for 5.3.2
1.2692539691925
Output for 5.3.1
1.2974989414215
Output for 5.3.0
1.3591809272766
Output for 5.2.17
1.93621301651
Output for 5.2.16
1.8705070018768
Output for 5.2.15
1.8986251354218
Output for 4.3.0 - 5.1.6, 5.2.1 - 5.2.2, 5.2.4, 5.2.7 - 5.2.9, 5.2.11 - 5.2.14

Process exited with code 137.
Output for 5.2.10
1.9426398277283
Output for 5.2.6
1.9063940048218
Output for 5.2.5
1.9484498500824
Output for 5.2.3
1.9670240879059
Output for 5.2.0
1.9332461357117