3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); $r = 10 * 1000; while($r-- > 0) { new StdClass(); } $finish = microtime(true); echo "time taken: " . ($finish - $start) . "\n";
Output for 7.1.0
time taken: 0.0004730224609375
Output for 7.0.14
time taken: 0.00084495544433594
Output for 7.0.10
time taken: 0.00063705444335938
Output for 7.0.9
time taken: 0.00058794021606445
Output for 7.0.8
time taken: 0.00062704086303711
Output for 7.0.7
time taken: 0.00071597099304199
Output for 7.0.6
time taken: 0.00075292587280273
Output for 7.0.5
time taken: 0.00067996978759766
Output for 7.0.4
time taken: 0.00057101249694824
Output for 7.0.3
time taken: 0.0008399486541748
Output for 7.0.2
time taken: 0.0007319450378418
Output for 7.0.1
time taken: 0.00069189071655273
Output for 7.0.0
time taken: 0.00083518028259277
Output for 5.6.28
time taken: 0.0013968944549561
Output for 5.6.25
time taken: 0.0011720657348633
Output for 5.6.24
time taken: 0.0010929107666016
Output for 5.6.23
time taken: 0.0011789798736572
Output for 5.6.22
time taken: 0.0012891292572021
Output for 5.6.21
time taken: 0.0011181831359863
Output for 5.6.20
time taken: 0.0011050701141357
Output for 5.6.19
time taken: 0.0010199546813965
Output for 5.6.18
time taken: 0.0013301372528076
Output for 5.6.17
time taken: 0.0010361671447754
Output for 5.4.42, 5.6.16
time taken: 0.0010440349578857
Output for 5.6.15
time taken: 0.0011670589447021
Output for 5.6.14
time taken: 0.001209020614624
Output for 5.6.13
time taken: 0.0013740062713623
Output for 5.6.12
time taken: 0.00118088722229
Output for 5.6.11
time taken: 0.0012600421905518
Output for 5.6.10
time taken: 0.0018789768218994
Output for 5.6.9
time taken: 0.0011692047119141
Output for 5.6.8
time taken: 0.0012509822845459
Output for 5.4.14, 5.4.18, 5.6.7
time taken: 0.0012500286102295
Output for 5.4.32 - 5.4.34, 5.6.6
time taken: 0.0012669563293457
Output for 5.6.5
time taken: 0.0010299682617188
Output for 5.6.4
time taken: 0.0013041496276855
Output for 5.6.3
time taken: 0.0012688636779785
Output for 5.6.2
time taken: 0.0012061595916748
Output for 5.6.1
time taken: 0.0010631084442139
Output for 5.6.0
time taken: 0.0012459754943848
Output for 5.5.38
time taken: 0.0020320415496826
Output for 5.5.37
time taken: 0.0011138916015625
Output for 5.5.36
time taken: 0.0010271072387695
Output for 5.5.35
time taken: 0.0012190341949463
Output for 5.5.34
time taken: 0.0011739730834961
Output for 5.5.33
time taken: 0.0016138553619385
Output for 5.5.32
time taken: 0.0012950897216797
Output for 5.5.31
time taken: 0.0012359619140625
Output for 5.5.30
time taken: 0.001366138458252
Output for 5.5.29
time taken: 0.00099706649780273
Output for 5.5.28
time taken: 0.0011179447174072
Output for 5.5.27
time taken: 0.0011870861053467
Output for 5.5.26
time taken: 0.00098180770874023
Output for 5.4.36, 5.5.25
time taken: 0.0010819435119629
Output for 5.5.24
time taken: 0.0011930465698242
Output for 5.5.23
time taken: 0.0011849403381348
Output for 5.5.0, 5.5.22
time taken: 0.0012631416320801
Output for 5.5.21
time taken: 0.0015468597412109
Output for 5.5.20
time taken: 0.002018928527832
Output for 5.5.19
time taken: 0.0012779235839844
Output for 5.5.18
time taken: 0.0011711120605469
Output for 5.5.16
time taken: 0.0011630058288574
Output for 5.5.15
time taken: 0.0010709762573242
Output for 5.5.14
time taken: 0.00124192237854
Output for 5.5.13
time taken: 0.0010058879852295
Output for 5.5.12
time taken: 0.0011110305786133
Output for 5.4.9, 5.5.11
time taken: 0.0012860298156738
Output for 5.5.10
time taken: 0.0012578964233398
Output for 5.5.9
time taken: 0.0011129379272461
Output for 5.5.8
time taken: 0.0011839866638184
Output for 5.5.7
time taken: 0.0012879371643066
Output for 5.5.6
time taken: 0.0014159679412842
Output for 5.5.5
time taken: 0.0015649795532227
Output for 5.5.4
time taken: 0.0010612010955811
Output for 5.5.3
time taken: 0.0023460388183594
Output for 5.5.2
time taken: 0.0011961460113525
Output for 5.5.1
time taken: 0.0010120868682861
Output for 5.4.45
time taken: 0.001237154006958
Output for 5.4.44
time taken: 0.0013110637664795
Output for 5.4.43
time taken: 0.0010969638824463
Output for 5.4.41
time taken: 0.0010471343994141
Output for 5.4.40
time taken: 0.0012621879577637
Output for 5.4.39
time taken: 0.0011270046234131
Output for 5.4.38
time taken: 0.0010409355163574
Output for 5.4.37
time taken: 0.001133918762207
Output for 5.4.35
time taken: 0.0011439323425293
Output for 5.4.31
time taken: 0.0012259483337402
Output for 5.4.30
time taken: 0.0013160705566406
Output for 5.4.29
time taken: 0.00091791152954102
Output for 5.4.28
time taken: 0.0012409687042236
Output for 5.4.27
time taken: 0.0011260509490967
Output for 5.4.26
time taken: 0.0010018348693848
Output for 5.4.25
time taken: 0.0012397766113281
Output for 5.4.24
time taken: 0.0011851787567139
Output for 5.4.23
time taken: 0.0013360977172852
Output for 5.4.22
time taken: 0.0010669231414795
Output for 5.4.21
time taken: 0.0012869834899902
Output for 5.4.20
time taken: 0.0011451244354248
Output for 5.4.19
time taken: 0.0012490749359131
Output for 5.4.17
time taken: 0.0011148452758789
Output for 5.4.16
time taken: 0.0010850429534912
Output for 5.4.15
time taken: 0.0012068748474121
Output for 5.4.13
time taken: 0.001121997833252
Output for 5.4.11 - 5.4.12
time taken: 0.0012960433959961
Output for 5.4.10
time taken: 0.0012280941009521
Output for 5.4.8
time taken: 0.001230001449585
Output for 5.4.7
time taken: 0.001101016998291
Output for 5.4.6
time taken: 0.0011820793151855
Output for 5.4.5
time taken: 0.0011301040649414
Output for 5.4.4
time taken: 0.0012660026550293
Output for 5.4.3
time taken: 0.0010340213775635
Output for 5.4.2
time taken: 0.0011968612670898
Output for 5.4.1
time taken: 0.0011608600616455
Output for 5.4.0
time taken: 0.0013959407806396
Output for 5.3.29
time taken: 0.0034611225128174
Output for 5.3.28
time taken: 0.0031487941741943
Output for 5.3.27
time taken: 0.0025808811187744
Output for 5.3.26
time taken: 0.003399133682251
Output for 5.3.25
time taken: 0.0031540393829346
Output for 5.3.24
time taken: 0.0035040378570557
Output for 5.3.23
time taken: 0.0030138492584229
Output for 5.3.22
time taken: 0.0032730102539062
Output for 5.3.21
time taken: 0.0035600662231445
Output for 5.3.20
time taken: 0.0035219192504883
Output for 5.3.19
time taken: 0.0033628940582275
Output for 5.3.18
time taken: 0.0037131309509277
Output for 5.3.17
time taken: 0.0032188892364502
Output for 5.3.16
time taken: 0.0035688877105713
Output for 5.3.15
time taken: 0.0029950141906738
Output for 5.3.14
time taken: 0.0036299228668213
Output for 5.3.13
time taken: 0.0031661987304688
Output for 5.3.12
time taken: 0.0026850700378418
Output for 5.3.11
time taken: 0.0029370784759521
Output for 5.3.10
time taken: 0.0027499198913574
Output for 5.3.9
time taken: 0.0029349327087402
Output for 5.3.8
time taken: 0.0030670166015625
Output for 5.3.7
time taken: 0.0032050609588623
Output for 5.3.6
time taken: 0.0032927989959717
Output for 5.3.5
time taken: 0.0029900074005127
Output for 5.3.4
time taken: 0.0031261444091797
Output for 5.3.3
time taken: 0.0035209655761719
Output for 5.3.2
time taken: 0.003180980682373
Output for 5.3.1
time taken: 0.0048658847808838
Output for 5.3.0
time taken: 0.0034310817718506
Output for 5.2.17
time taken: 0.0037858486175537
Output for 5.2.16
time taken: 0.0040321350097656
Output for 5.2.15
time taken: 0.0038270950317383
Output for 5.2.14
time taken: 0.0037598609924316
Output for 5.2.13
time taken: 0.0039961338043213
Output for 5.2.12
time taken: 0.0040500164031982
Output for 5.2.11
time taken: 0.0033760070800781
Output for 5.2.10
time taken: 0.0038559436798096
Output for 5.2.9
time taken: 0.0032219886779785
Output for 5.2.8
time taken: 0.0035381317138672
Output for 5.2.7
time taken: 0.003795862197876
Output for 5.2.6
time taken: 0.0035550594329834
Output for 5.2.5
time taken: 0.0036609172821045
Output for 5.2.4
time taken: 0.0036020278930664
Output for 5.2.3
time taken: 0.0036249160766602
Output for 5.2.2
time taken: 0.0024049282073975
Output for 5.2.1
time taken: 0.0032558441162109
Output for 5.2.0
time taken: 0.0033390522003174
Output for 5.1.6
time taken: 0.0027530193328857
Output for 5.1.5
time taken: 0.0019910335540771
Output for 5.1.4
time taken: 0.0020129680633545
Output for 5.1.3
time taken: 0.0019958019256592
Output for 5.1.2
time taken: 0.0020420551300049
Output for 5.1.1
time taken: 0.0019700527191162
Output for 5.1.0
time taken: 0.0020220279693604
Output for 5.0.5
time taken: 0.0044360160827637
Output for 5.0.4
time taken: 0.0043220520019531
Output for 5.0.3
time taken: 0.0040011405944824
Output for 5.0.2
time taken: 0.0050239562988281
Output for 5.0.1
time taken: 0.0047869682312012
Output for 5.0.0
time taken: 0.0032680034637451
Output for 4.4.9
time taken: 0.006784
Output for 4.4.8
time taken: 0.007465
Output for 4.4.7
time taken: 0.004662
Output for 4.4.6
time taken: 0.00424
Output for 4.4.5
time taken: 0.00448
Output for 4.4.4
time taken: 0.004378
Output for 4.4.3
time taken: 0.00365
Output for 4.4.2
time taken: 0.003479
Output for 4.4.1
time taken: 0.003527
Output for 4.4.0
time taken: 0.004845
Output for 4.3.11
time taken: 0.006683
Output for 4.3.10
time taken: 0.005947
Output for 4.3.9
time taken: 0.007046
Output for 4.3.8
time taken: 0.006091
Output for 4.3.7
time taken: 0.004754
Output for 4.3.6
time taken: 0.005375
Output for 4.3.5
time taken: 0.007345
Output for 4.3.4
time taken: 0.005409
Output for 4.3.3
time taken: 0.004569
Output for 4.3.2
time taken: 0.005346
Output for 4.3.1
time taken: 0.0037
Output for 4.3.0
time taken: 0.00483