3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = 10 * 1000 * 1000; $start = microtime(true); while($r-- > 0) { $obj = new StdClass(); } $finish = microtime(true); echo "time taken: " . ($finish - $start) . "\n";
Output for 7.1.0
time taken: 0.030969858169556
Output for 7.0.14
time taken: 0.44443392753601
Output for 7.0.10
time taken: 0.6279308795929
Output for 7.0.9
time taken: 0.55303716659546
Output for 7.0.8
time taken: 0.56501197814941
Output for 7.0.7
time taken: 0.48649382591248
Output for 7.0.6
time taken: 0.58986401557922
Output for 7.0.5
time taken: 0.56679892539978
Output for 7.0.4
time taken: 0.58709287643433
Output for 7.0.3
time taken: 0.6349139213562
Output for 7.0.2
time taken: 0.49959397315979
Output for 7.0.1
time taken: 0.57898497581482
Output for 7.0.0
time taken: 0.57865595817566
Output for hhvm-3.12.0
time taken: 1.5388391017914
Output for hhvm-3.10.0
time taken: 1.8276607990265
Output for 5.6.28
time taken: 0.57560801506042
Output for 5.6.25
time taken: 0.87135195732117
Output for 5.6.24
time taken: 0.85271906852722
Output for 5.6.23
time taken: 0.97398710250854
Output for 5.6.22
time taken: 0.86131596565247
Output for 5.6.21
time taken: 0.88854908943176
Output for 5.6.20
time taken: 0.80692005157471
Output for 5.6.19
time taken: 0.84103417396545
Output for 5.6.18
time taken: 0.90408682823181
Output for 5.6.17
time taken: 0.90601015090942
Output for 5.6.16
time taken: 0.9235520362854
Output for 5.6.15
time taken: 0.90723299980164
Output for 5.6.14
time taken: 0.93040704727173
Output for 5.6.13
time taken: 0.8836190700531
Output for 5.6.12
time taken: 0.88606119155884
Output for 5.6.11
time taken: 0.78067493438721
Output for 5.6.10
time taken: 0.78175592422485
Output for 5.6.9
time taken: 0.90134596824646
Output for 5.6.8
time taken: 0.79236102104187
Output for 5.6.7
time taken: 0.82666993141174
Output for 5.6.6
time taken: 0.88903903961182
Output for 5.6.5
time taken: 0.86484003067017
Output for 5.6.4
time taken: 0.89847898483276
Output for 5.6.3
time taken: 0.93799090385437
Output for 5.6.2
time taken: 0.93944311141968
Output for 5.6.1
time taken: 0.83358907699585
Output for 5.6.0
time taken: 0.97949504852295
Output for 5.5.38
time taken: 0.86765384674072
Output for 5.5.37
time taken: 0.97902894020081
Output for 5.5.36
time taken: 0.89234018325806
Output for 5.5.35
time taken: 0.90644097328186
Output for 5.5.34
time taken: 0.99836993217468
Output for 5.5.33
time taken: 1.0124659538269
Output for 5.5.32
time taken: 1.0286037921906
Output for 5.5.31
time taken: 0.93276619911194
Output for 5.5.30
time taken: 0.86852097511292
Output for 5.5.29
time taken: 0.91620397567749
Output for 5.5.28
time taken: 0.96309685707092
Output for 5.5.27
time taken: 1.0230300426483
Output for 5.5.26
time taken: 0.80601596832275
Output for 5.5.25
time taken: 0.95019507408142
Output for 5.5.24
time taken: 0.99311304092407
Output for 5.5.23
time taken: 1.0094749927521
Output for 5.5.22
time taken: 0.94845700263977
Output for 5.5.21
time taken: 0.96087884902954
Output for 5.5.20
time taken: 1.0388140678406
Output for 5.5.19
time taken: 0.9302659034729
Output for 5.5.18
time taken: 1.0082030296326
Output for 5.5.16
time taken: 0.98140501976013
Output for 5.5.15
time taken: 1.000422000885
Output for 5.5.14
time taken: 0.94518709182739
Output for 5.5.13
time taken: 0.83255314826965
Output for 5.5.12
time taken: 1.0207450389862
Output for 5.5.11
time taken: 0.9551408290863
Output for 5.5.10
time taken: 0.99356317520142
Output for 5.5.9
time taken: 0.95532608032227
Output for 5.5.8
time taken: 0.95555686950684
Output for 5.5.7
time taken: 0.93949913978577
Output for 5.5.6
time taken: 0.8959379196167
Output for 5.5.5
time taken: 0.91041994094849
Output for 5.5.4
time taken: 0.97596883773804
Output for 5.5.3
time taken: 0.99211883544922
Output for 5.5.2
time taken: 0.97874903678894
Output for 5.5.1
time taken: 1.0433988571167
Output for 5.5.0
time taken: 1.0066301822662
Output for 5.4.45
time taken: 0.92101311683655
Output for 5.4.44
time taken: 1.0029311180115
Output for 5.4.43
time taken: 0.80670213699341
Output for 5.4.42
time taken: 0.81891798973083
Output for 5.4.41
time taken: 0.95063090324402
Output for 5.4.40
time taken: 0.93910789489746
Output for 5.4.39
time taken: 1.010204076767
Output for 5.4.38
time taken: 0.91860103607178
Output for 5.4.37
time taken: 0.9622790813446
Output for 5.4.36
time taken: 0.97845911979675
Output for 5.4.35
time taken: 0.92038893699646
Output for 5.4.34
time taken: 1.0024750232697
Output for 5.4.32
time taken: 0.9697380065918
Output for 5.4.31
time taken: 0.85476994514465
Output for 5.4.30
time taken: 0.98470401763916
Output for 5.4.29
time taken: 0.95906615257263
Output for 5.4.28
time taken: 0.96523189544678
Output for 5.4.27
time taken: 0.9695930480957
Output for 5.4.26
time taken: 1.0662961006165
Output for 5.4.25
time taken: 0.95237398147583
Output for 5.4.24
time taken: 0.97731304168701
Output for 5.4.23
time taken: 0.95493507385254
Output for 5.4.22
time taken: 0.80816102027893
Output for 5.4.21
time taken: 0.85049104690552
Output for 5.4.20
time taken: 1.0313911437988
Output for 5.4.19
time taken: 0.95384907722473
Output for 5.4.18
time taken: 0.94349408149719
Output for 5.4.17
time taken: 0.99995899200439
Output for 5.4.16
time taken: 1.0250787734985
Output for 5.4.15
time taken: 1.0134670734406
Output for 5.4.14
time taken: 1.0020849704742
Output for 5.4.13
time taken: 0.99011588096619
Output for 5.4.12
time taken: 0.84836006164551
Output for 5.4.11
time taken: 0.94805216789246
Output for 5.4.10
time taken: 0.94229197502136
Output for 5.4.9
time taken: 0.7752377986908
Output for 5.4.8
time taken: 0.95924115180969
Output for 5.4.7
time taken: 0.91861510276794
Output for 5.4.6
time taken: 0.93730092048645
Output for 5.4.5
time taken: 0.92860317230225
Output for 5.4.4
time taken: 0.78627705574036
Output for 5.4.3
time taken: 0.82439708709717
Output for 5.4.2
time taken: 0.83556604385376
Output for 5.4.1
time taken: 0.97653698921204
Output for 5.4.0
time taken: 0.9482741355896
Output for 5.3.29
time taken: 2.0832149982452
Output for 5.3.28
time taken: 1.9429740905762
Output for 5.3.27
time taken: 2.2243700027466
Output for 5.3.26
time taken: 2.242203950882
Output for 5.3.25
time taken: 2.1850950717926
Output for 5.3.24
time taken: 2.0252380371094
Output for 5.3.23
time taken: 2.010528087616
Output for 5.3.22
time taken: 2.0789740085602
Output for 5.3.21
time taken: 2.2405891418457
Output for 5.3.20
time taken: 2.0160820484161
Output for 5.3.19
time taken: 1.8385579586029
Output for 5.3.18
time taken: 1.8787660598755
Output for 5.3.17
time taken: 1.9969301223755
Output for 5.3.16
time taken: 1.9035069942474
Output for 5.3.15
time taken: 2.0612480640411
Output for 5.3.14
time taken: 2.0133769512177
Output for 5.3.13
time taken: 1.9399681091309
Output for 5.3.12
time taken: 1.958377122879
Output for 5.3.11
time taken: 1.9084510803223
Output for 5.3.10
time taken: 2.1526479721069
Output for 5.3.9
time taken: 2.0246860980988
Output for 5.3.8
time taken: 2.0440950393677
Output for 5.3.7
time taken: 2.0366659164429
Output for 5.3.6
time taken: 2.0281369686127
Output for 5.3.5
time taken: 2.0711708068848
Output for 5.3.4
time taken: 2.1148180961609
Output for 5.3.3
time taken: 1.9117901325226
Output for 5.3.2
time taken: 2.0738589763641
Output for 5.3.1
time taken: 2.1558248996735
Output for 5.3.0
time taken: 2.0361280441284
Output for 5.2.17
time taken: 2.1285219192505
Output for 5.2.16
time taken: 2.1933629512787
Output for 5.2.15
time taken: 2.2522070407867
Output for 5.2.14
time taken: 2.1268770694733
Output for 5.2.13
time taken: 2.362104177475
Output for 5.2.12
time taken: 2.2037320137024
Output for 5.2.11
time taken: 2.330372095108
Output for 5.2.10
time taken: 2.1183729171753
Output for 5.2.9
time taken: 2.1867260932922
Output for 5.2.8
time taken: 2.0343520641327
Output for 5.2.7
time taken: 2.1441571712494
Output for 5.2.6
time taken: 1.9701528549194
Output for 5.2.5
time taken: 2.3264541625977
Output for 5.2.4
time taken: 2.048033952713
Output for 5.2.3
time taken: 2.3191940784454
Output for 5.2.2
time taken: 2.120707988739
Output for 5.2.1
time taken: 2.1447250843048
Output for 5.2.0
time taken: 2.1009409427643
Output for 5.1.6
time taken: 2.0811278820038
Output for 5.1.5
time taken: 2.165764093399
Output for 5.1.4
time taken: 1.8354671001434
Output for 5.1.3
time taken: 2.0288071632385
Output for 5.1.2
time taken: 2.1167900562286
Output for 5.1.1
time taken: 1.9517731666565
Output for 5.1.0
time taken: 1.978698015213
Output for 4.3.7 - 4.3.8, 4.3.11, 4.4.9 - 5.0.0, 5.0.2, 5.0.5

Process exited with code 137.
Output for 5.0.4
time taken: 2.3471870422363
Output for 5.0.3
time taken: 2.4307861328125
Output for 5.0.1
time taken: 2.415452003479
Output for 4.4.8
time taken: 0.323081
Output for 4.4.7
time taken: 0.462649
Output for 4.4.6
time taken: 0.378353
Output for 4.4.5
time taken: 0.441173
Output for 4.4.4
time taken: 0.443891
Output for 4.4.3
time taken: 0.430956
Output for 4.4.2
time taken: 0.448256
Output for 4.4.1
time taken: 0.417829
Output for 4.4.0
time taken: 0.38135
Output for 4.3.10
time taken: 0.433579
Output for 4.3.9
time taken: 0.413827
Output for 4.3.6
time taken: 0.380052
Output for 4.3.5
time taken: 0.445832
Output for 4.3.4
time taken: 0.319764
Output for 4.3.3
time taken: 0.396655
Output for 4.3.2
time taken: 0.39031
Output for 4.3.1
time taken: 0.431504
Output for 4.3.0
time taken: 0.269902