3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = 10 * 1000; $start = microtime(true); while($r-- > 0) { new StdClass(); } $finish = microtime(true); echo "time taken: " . ($finish - $start) . "\n";
Output for 7.1.0
time taken: 0.0009150505065918
Output for 7.0.14
time taken: 0.00089406967163086
Output for 7.0.6
time taken: 0.00052595138549805
Output for 7.0.5
time taken: 0.00079488754272461
Output for 7.0.4
time taken: 0.00082111358642578
Output for 7.0.3
time taken: 0.00069093704223633
Output for 7.0.2
time taken: 0.00061202049255371
Output for 7.0.1
time taken: 0.00091099739074707
Output for 7.0.0
time taken: 0.00081419944763184
Output for hhvm-3.12.0
time taken: 0.0010001659393311
Output for 5.5.5, 5.6.20, hhvm-3.10.0
time taken: 0.0012328624725342
Output for 5.6.28
time taken: 0.001399040222168
Output for 5.6.21
time taken: 0.00083494186401367
Output for 5.6.19
time taken: 0.0012319087982178
Output for 5.4.0, 5.6.18
time taken: 0.0011789798736572
Output for 5.6.17
time taken: 0.0011570453643799
Output for 5.6.16
time taken: 0.0010530948638916
Output for 5.6.15
time taken: 0.0012059211730957
Output for 5.6.14
time taken: 0.00085282325744629
Output for 5.6.13
time taken: 0.00090479850769043
Output for 5.6.12
time taken: 0.0012240409851074
Output for 5.6.11
time taken: 0.0012660026550293
Output for 5.6.10
time taken: 0.0010209083557129
Output for 5.6.9
time taken: 0.0011649131774902
Output for 5.6.8
time taken: 0.001230001449585
Output for 5.6.7
time taken: 0.0011930465698242
Output for 5.6.6
time taken: 0.00099301338195801
Output for 5.5.11, 5.6.5
time taken: 0.0012500286102295
Output for 5.6.4
time taken: 0.0013358592987061
Output for 5.6.3
time taken: 0.00084805488586426
Output for 5.6.2
time taken: 0.0013439655303955
Output for 5.6.1
time taken: 0.0012130737304688
Output for 5.6.0
time taken: 0.0011651515960693
Output for 5.5.35
time taken: 0.0010759830474854
Output for 5.5.34
time taken: 0.00136399269104
Output for 5.5.12, 5.5.33
time taken: 0.0011889934539795
Output for 5.5.32
time taken: 0.0012929439544678
Output for 5.5.31
time taken: 0.0011298656463623
Output for 5.4.2, 5.5.30
time taken: 0.0012969970703125
Output for 5.5.29
time taken: 0.00079917907714844
Output for 5.5.28
time taken: 0.0010671615600586
Output for 5.5.27
time taken: 0.00084185600280762
Output for 5.5.26
time taken: 0.0012481212615967
Output for 5.5.25
time taken: 0.0010640621185303
Output for 5.5.24
time taken: 0.0014989376068115
Output for 5.5.23
time taken: 0.0013120174407959
Output for 5.4.14, 5.5.22
time taken: 0.0012400150299072
Output for 5.5.21
time taken: 0.00087904930114746
Output for 5.5.20
time taken: 0.0012779235839844
Output for 5.5.19
time taken: 0.0012099742889404
Output for 5.5.18
time taken: 0.0011758804321289
Output for 5.5.16
time taken: 0.0012469291687012
Output for 5.5.15
time taken: 0.001270055770874
Output for 5.5.14
time taken: 0.0014569759368896
Output for 5.5.13
time taken: 0.0012609958648682
Output for 5.5.10
time taken: 0.0012810230255127
Output for 5.5.0, 5.5.9
time taken: 0.0012519359588623
Output for 5.5.8
time taken: 0.0012049674987793
Output for 5.5.7
time taken: 0.0013341903686523
Output for 5.5.6
time taken: 0.0013351440429688
Output for 5.5.4
time taken: 0.0013208389282227
Output for 5.5.3
time taken: 0.0013289451599121
Output for 5.5.2
time taken: 0.0010979175567627
Output for 5.5.1
time taken: 0.0013048648834229
Output for 5.4.45
time taken: 0.0010290145874023
Output for 5.4.44
time taken: 0.0014429092407227
Output for 5.4.43
time taken: 0.00078296661376953
Output for 5.4.42
time taken: 0.00076198577880859
Output for 5.4.41
time taken: 0.0013389587402344
Output for 5.4.40
time taken: 0.00074505805969238
Output for 5.4.39
time taken: 0.0012128353118896
Output for 5.4.38
time taken: 0.0011520385742188
Output for 5.4.37
time taken: 0.0012269020080566
Output for 5.4.36
time taken: 0.0012621879577637
Output for 5.4.35
time taken: 0.0010590553283691
Output for 5.4.34
time taken: 0.00082802772521973
Output for 5.4.32
time taken: 0.00089311599731445
Output for 5.4.31
time taken: 0.0012369155883789
Output for 5.4.30
time taken: 0.0012760162353516
Output for 5.4.29
time taken: 0.00097489356994629
Output for 5.4.28
time taken: 0.00095891952514648
Output for 5.4.27
time taken: 0.001007080078125
Output for 5.4.26
time taken: 0.0012211799621582
Output for 5.4.25
time taken: 0.0012290477752686
Output for 5.4.24
time taken: 0.0010340213775635
Output for 5.4.23
time taken: 0.0012919902801514
Output for 5.4.22
time taken: 0.00078010559082031
Output for 5.4.21
time taken: 0.0010409355163574
Output for 5.4.20
time taken: 0.0012691020965576
Output for 5.4.19
time taken: 0.0013258457183838
Output for 5.4.18
time taken: 0.0011692047119141
Output for 5.4.17
time taken: 0.0011749267578125
Output for 5.4.16
time taken: 0.0012071132659912
Output for 5.4.15
time taken: 0.0012791156768799
Output for 5.4.13
time taken: 0.0011420249938965
Output for 5.4.12
time taken: 0.0011210441589355
Output for 5.4.11
time taken: 0.00094294548034668
Output for 5.4.10
time taken: 0.001168966293335
Output for 5.4.9
time taken: 0.0011711120605469
Output for 5.4.8
time taken: 0.0011708736419678
Output for 5.4.7
time taken: 0.0012421607971191
Output for 5.4.6
time taken: 0.0010509490966797
Output for 5.4.5
time taken: 0.00088715553283691
Output for 5.4.4
time taken: 0.0013158321380615
Output for 5.4.3
time taken: 0.0010929107666016
Output for 5.4.1
time taken: 0.00075602531433105
Output for 5.3.29
time taken: 0.0031430721282959
Output for 5.3.28
time taken: 0.0029740333557129
Output for 5.3.27
time taken: 0.0035197734832764
Output for 5.3.26
time taken: 0.0033969879150391
Output for 5.3.25
time taken: 0.0033619403839111
Output for 5.3.24
time taken: 0.003309965133667
Output for 5.3.23
time taken: 0.0035400390625
Output for 5.3.22
time taken: 0.0030238628387451
Output for 5.3.21
time taken: 0.003248929977417
Output for 5.3.20
time taken: 0.0030059814453125
Output for 5.3.19
time taken: 0.0030100345611572
Output for 5.3.18
time taken: 0.0034070014953613
Output for 5.3.17
time taken: 0.0027999877929688
Output for 5.3.16
time taken: 0.0034561157226562
Output for 5.3.15
time taken: 0.0034749507904053
Output for 5.3.14
time taken: 0.0021920204162598
Output for 5.3.13
time taken: 0.0033481121063232
Output for 5.3.12
time taken: 0.0033547878265381
Output for 5.3.11
time taken: 0.0032851696014404
Output for 5.3.10
time taken: 0.0028839111328125
Output for 5.3.9
time taken: 0.0035781860351562
Output for 5.3.8
time taken: 0.0033209323883057
Output for 5.3.7
time taken: 0.0031290054321289
Output for 5.3.6
time taken: 0.0031590461730957
Output for 5.3.5
time taken: 0.0021288394927979
Output for 5.3.4
time taken: 0.0035068988800049
Output for 5.3.3
time taken: 0.0022919178009033
Output for 5.3.2
time taken: 0.0032680034637451
Output for 5.3.1
time taken: 0.0035808086395264
Output for 5.3.0
time taken: 0.0035569667816162
Output for 5.2.17
time taken: 0.0037751197814941
Output for 5.2.16
time taken: 0.0041699409484863
Output for 5.2.15
time taken: 0.003122091293335
Output for 5.2.14
time taken: 0.0037679672241211
Output for 5.2.13
time taken: 0.0038080215454102
Output for 5.2.12
time taken: 0.0038509368896484
Output for 5.2.11
time taken: 0.0038549900054932
Output for 5.2.10
time taken: 0.0021910667419434
Output for 5.2.9
time taken: 0.0038840770721436
Output for 5.2.8
time taken: 0.0036349296569824
Output for 5.2.7
time taken: 0.0037691593170166
Output for 5.2.6
time taken: 0.0033669471740723
Output for 5.2.5
time taken: 0.0031900405883789
Output for 5.2.4
time taken: 0.0032889842987061
Output for 5.2.3
time taken: 0.003957986831665
Output for 5.2.2
time taken: 0.0038330554962158
Output for 5.2.1
time taken: 0.0032410621643066
Output for 5.2.0
time taken: 0.0040249824523926
Output for 5.1.6
time taken: 0.0036778450012207
Output for 5.1.5
time taken: 0.0030429363250732
Output for 5.1.4
time taken: 0.0026240348815918
Output for 5.1.3
time taken: 0.0035929679870605
Output for 5.1.2
time taken: 0.003525972366333
Output for 5.1.1
time taken: 0.0034570693969727
Output for 5.1.0
time taken: 0.0038177967071533
Output for 5.0.5
time taken: 0.0046160221099854
Output for 5.0.4
time taken: 0.0048131942749023
Output for 5.0.3
time taken: 0.0031092166900635
Output for 5.0.2
time taken: 0.004127025604248
Output for 5.0.1
time taken: 0.0047411918640137
Output for 5.0.0
time taken: 0.004040002822876
Output for 4.4.9
time taken: 0.006775
Output for 4.4.8
time taken: 0.007308
Output for 4.4.7
time taken: 0.006821
Output for 4.4.6
time taken: 0.005916
Output for 4.4.5
time taken: 0.00484
Output for 4.4.4
time taken: 0.005784
Output for 4.4.3
time taken: 0.006391
Output for 4.4.2
time taken: 0.007128
Output for 4.4.1
time taken: 0.00641
Output for 4.4.0
time taken: 0.006437
Output for 4.3.11
time taken: 0.00441
Output for 4.3.10
time taken: 0.00756
Output for 4.3.9
time taken: 0.007145
Output for 4.3.8
time taken: 0.0063099999999999
Output for 4.3.7
time taken: 0.006966
Output for 4.3.6
time taken: 0.007216
Output for 4.3.5
time taken: 0.006637
Output for 4.3.4
time taken: 0.006328
Output for 4.3.3
time taken: 0.0068
Output for 4.3.2
time taken: 0.0060250000000001
Output for 4.3.1
time taken: 0.004325
Output for 4.3.0
time taken: 0.007201