3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // casting vs. converting $a="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="12345678909873409871082374081203848768767896777556666689170289347019827034978"; const runs=100000; $start=microtime(1); for ($i=1;$i<runs;$i++) if ($start+0); print 'Time: '.(microtime(1)-$start)."<br>\n"; $start=microtime(1); for ($i=1;$i<runs;$i++) if ((int)$start); print 'Time: '.(microtime(1)-$start);
Output for 7.1.0
Time: 0.001633882522583<br> Time: 0.0021228790283203
Output for 7.0.14
Time: 0.0028488636016846<br> Time: 0.0035340785980225
Output for 7.0.7
Time: 0.0030930042266846<br> Time: 0.0038161277770996
Output for 7.0.6
Time: 0.0029439926147461<br> Time: 0.0030620098114014
Output for 7.0.5
Time: 0.0031259059906006<br> Time: 0.0037288665771484
Output for 7.0.4
Time: 0.0031511783599854<br> Time: 0.0037989616394043
Output for 7.0.3
Time: 0.0024290084838867<br> Time: 0.0030241012573242
Output for 7.0.2
Time: 0.0030241012573242<br> Time: 0.0035519599914551
Output for 7.0.1
Time: 0.0030949115753174<br> Time: 0.0035009384155273
Output for 7.0.0
Time: 0.0018548965454102<br> Time: 0.0022308826446533
Output for hhvm-3.12.0
Time: 0.0086510181427002<br> Time: 0.0070888996124268
Output for hhvm-3.10.0
Time: 0.0091040134429932<br> Time: 0.0073978900909424
Output for 5.6.28
Time: 0.0083699226379395<br> Time: 0.0067958831787109
Output for 5.6.22
Time: 0.0043399333953857<br> Time: 0.0049002170562744
Output for 5.6.21
Time: 0.0041730403900146<br> Time: 0.004828929901123
Output for 5.6.20
Time: 0.0039968490600586<br> Time: 0.0048069953918457
Output for 5.6.19
Time: 0.0045349597930908<br> Time: 0.0052490234375
Output for 5.6.18
Time: 0.0063869953155518<br> Time: 0.0070540904998779
Output for 5.6.17
Time: 0.0048079490661621<br> Time: 0.0046570301055908
Output for 5.6.16
Time: 0.0036947727203369<br> Time: 0.004284143447876
Output for 5.6.15
Time: 0.0036890506744385<br> Time: 0.0042741298675537
Output for 5.6.14
Time: 0.0038931369781494<br> Time: 0.0045208930969238
Output for 5.6.13
Time: 0.0039069652557373<br> Time: 0.0044090747833252
Output for 5.6.12
Time: 0.00370192527771<br> Time: 0.0044858455657959
Output for 5.6.11
Time: 0.005446195602417<br> Time: 0.0057609081268311
Output for 5.6.10
Time: 0.0064280033111572<br> Time: 0.0062699317932129
Output for 5.6.9
Time: 0.0060908794403076<br> Time: 0.0066249370574951
Output for 5.6.8
Time: 0.0058879852294922<br> Time: 0.0067160129547119
Output for 5.6.7
Time: 0.0036900043487549<br> Time: 0.0042941570281982
Output for 5.6.6
Time: 0.004673957824707<br> Time: 0.0052289962768555
Output for 5.6.5
Time: 0.0045161247253418<br> Time: 0.0055098533630371
Output for 5.6.4
Time: 0.0039279460906982<br> Time: 0.0046730041503906
Output for 5.6.3
Time: 0.0043962001800537<br> Time: 0.0053489208221436
Output for 5.6.2
Time: 0.0037078857421875<br> Time: 0.0042731761932373
Output for 5.6.1
Time: 0.0048770904541016<br> Time: 0.0055770874023438
Output for 5.6.0
Time: 0.0039398670196533<br> Time: 0.004453182220459
Output for 5.5.36
Time: 0.0052230358123779<br> Time: 0.00547194480896
Output for 5.5.35
Time: 0.0064318180084229<br> Time: 0.0071349143981934
Output for 5.5.34
Time: 0.0059859752655029<br> Time: 0.0066418647766113
Output for 5.5.33
Time: 0.0061211585998535<br> Time: 0.0061390399932861
Output for 5.5.32
Time: 0.0059881210327148<br> Time: 0.0068120956420898
Output for 5.5.31
Time: 0.0058190822601318<br> Time: 0.0064129829406738
Output for 5.5.30
Time: 0.0039269924163818<br> Time: 0.0045540332794189
Output for 5.5.24, 5.5.29
Time: 0.0036909580230713<br> Time: 0.0042829513549805
Output for 5.5.28
Time: 0.0039808750152588<br> Time: 0.0042788982391357
Output for 5.5.27
Time: 0.003695011138916<br> Time: 0.0043339729309082
Output for 5.5.26
Time: 0.0036869049072266<br> Time: 0.0043051242828369
Output for 5.5.25
Time: 0.0038609504699707<br> Time: 0.0042870044708252
Output for 5.5.23
Time: 0.0036888122558594<br> Time: 0.0043671131134033
Output for 5.5.22
Time: 0.0037131309509277<br> Time: 0.0045700073242188
Output for 5.5.21
Time: 0.0041801929473877<br> Time: 0.0048038959503174
Output for 5.5.20
Time: 0.0035679340362549<br> Time: 0.0041439533233643
Output for 5.5.19
Time: 0.0038540363311768<br> Time: 0.0044219493865967
Output for 5.5.18
Time: 0.0055620670318604<br> Time: 0.004986047744751
Output for 5.5.16
Time: 0.0036909580230713<br> Time: 0.0043060779571533
Output for 5.5.15
Time: 0.0037078857421875<br> Time: 0.0044319629669189
Output for 5.5.14
Time: 0.0037069320678711<br> Time: 0.0042879581451416
Output for 5.5.13
Time: 0.0036890506744385<br> Time: 0.0045981407165527
Output for 5.5.12
Time: 0.0043990612030029<br> Time: 0.0049369335174561
Output for 5.5.11
Time: 0.0064630508422852<br> Time: 0.0072441101074219
Output for 5.5.10
Time: 0.0062921047210693<br> Time: 0.007188081741333
Output for 5.5.9
Time: 0.0066430568695068<br> Time: 0.007145881652832
Output for 5.5.8
Time: 0.0063009262084961<br> Time: 0.0070240497589111
Output for 5.5.7
Time: 0.0064349174499512<br> Time: 0.0071220397949219
Output for 5.5.6
Time: 0.0053009986877441<br> Time: 0.0062320232391357
Output for 5.5.5
Time: 0.0062189102172852<br> Time: 0.0054759979248047
Output for 5.5.4
Time: 0.0058140754699707<br> Time: 0.0065748691558838
Output for 5.5.3
Time: 0.0062460899353027<br> Time: 0.0070760250091553
Output for 5.5.2
Time: 0.005565881729126<br> Time: 0.0067539215087891
Output for 5.5.1
Time: 0.0063619613647461<br> Time: 0.0075130462646484
Output for 5.5.0
Time: 0.0049278736114502<br> Time: 0.0058889389038086
Output for 5.4.45
Time: 0.0039780139923096<br> Time: 0.0044751167297363
Output for 5.4.44
Time: 0.0037062168121338<br> Time: 0.0041871070861816
Output for 5.4.43
Time: 0.0044009685516357<br> Time: 0.0044009685516357
Output for 5.4.42
Time: 0.0036890506744385<br> Time: 0.0042209625244141
Output for 5.4.41
Time: 0.0039310455322266<br> Time: 0.0042829513549805
Output for 5.4.40
Time: 0.004054069519043<br> Time: 0.0043880939483643
Output for 5.4.39
Time: 0.0036749839782715<br> Time: 0.0041899681091309
Output for 5.4.38
Time: 0.0038390159606934<br> Time: 0.004249095916748
Output for 5.4.37
Time: 0.0036778450012207<br> Time: 0.0041770935058594
Output for 5.4.36
Time: 0.0037579536437988<br> Time: 0.0043430328369141
Output for 5.4.35
Time: 0.0037219524383545<br> Time: 0.0041861534118652
Output for 5.4.34
Time: 0.0036830902099609<br> Time: 0.0041821002960205
Output for 5.4.32
Time: 0.0036849975585938<br> Time: 0.0041849613189697
Output for 5.4.31
Time: 0.0030980110168457<br> Time: 0.003896951675415
Output for 5.4.30
Time: 0.0038509368896484<br> Time: 0.0043518543243408
Output for 5.4.29
Time: 0.0061419010162354<br> Time: 0.0069258213043213
Output for 5.4.28
Time: 0.0053799152374268<br> Time: 0.0060009956359863
Output for 5.4.27
Time: 0.0061700344085693<br> Time: 0.0066759586334229
Output for 5.4.26
Time: 0.0062730312347412<br> Time: 0.0072641372680664
Output for 5.4.25
Time: 0.0061769485473633<br> Time: 0.0066089630126953
Output for 5.4.24
Time: 0.0056929588317871<br> Time: 0.0062720775604248
Output for 5.4.23
Time: 0.0054581165313721<br> Time: 0.0062379837036133
Output for 5.4.22
Time: 0.0064070224761963<br> Time: 0.0072710514068604
Output for 5.4.21
Time: 0.0063509941101074<br> Time: 0.0070300102233887
Output for 5.4.20
Time: 0.003903865814209<br> Time: 0.0044240951538086
Output for 5.4.19
Time: 0.0063588619232178<br> Time: 0.0069930553436279
Output for 5.4.18
Time: 0.0041739940643311<br> Time: 0.0052030086517334
Output for 5.4.17
Time: 0.005450963973999<br> Time: 0.0061547756195068
Output for 5.4.16
Time: 0.0052809715270996<br> Time: 0.006026029586792
Output for 5.4.15
Time: 0.0064849853515625<br> Time: 0.0067248344421387
Output for 5.4.14
Time: 0.005824089050293<br> Time: 0.0054540634155273
Output for 5.4.13
Time: 0.0066189765930176<br> Time: 0.0069370269775391
Output for 5.4.12
Time: 0.0043199062347412<br> Time: 0.0044798851013184
Output for 5.4.11
Time: 0.0050590038299561<br> Time: 0.0058121681213379
Output for 5.4.10
Time: 0.0063471794128418<br> Time: 0.0075061321258545
Output for 5.4.9
Time: 0.0046498775482178<br> Time: 0.0053350925445557
Output for 5.4.8
Time: 0.0059759616851807<br> Time: 0.0067589282989502
Output for 5.4.7
Time: 0.0066699981689453<br> Time: 0.0073740482330322
Output for 5.4.6
Time: 0.0067911148071289<br> Time: 0.0073888301849365
Output for 5.4.5
Time: 0.0050430297851562<br> Time: 0.0056560039520264
Output for 5.4.4
Time: 0.0056431293487549<br> Time: 0.0064849853515625
Output for 5.4.3
Time: 0.0061428546905518<br> Time: 0.0072817802429199
Output for 5.4.2
Time: 0.0059449672698975<br> Time: 0.006648063659668
Output for 5.4.1
Time: 0.0064589977264404<br> Time: 0.0072770118713379
Output for 5.4.0
Time: 0.0050070285797119<br> Time: 0.006044864654541
Output for 5.3.29
Time: 0.0064520835876465<br> Time: 0.0067999362945557
Output for 5.3.28
Time: 0.0104820728302<br> Time: 0.010792016983032
Output for 5.3.27
Time: 0.009850025177002<br> Time: 0.010033130645752
Output for 5.3.26
Time: 0.0063610076904297<br> Time: 0.0067939758300781
Output for 5.3.25
Time: 0.010261058807373<br> Time: 0.010316848754883
Output for 5.3.24
Time: 0.010708093643188<br> Time: 0.011380195617676
Output for 5.3.23
Time: 0.0071280002593994<br> Time: 0.0077691078186035
Output for 5.3.22
Time: 0.010600090026855<br> Time: 0.010522842407227
Output for 5.3.21
Time: 0.0086441040039062<br> Time: 0.0092849731445312
Output for 5.3.20
Time: 0.0089390277862549<br> Time: 0.0091018676757812
Output for 5.3.19
Time: 0.0084128379821777<br> Time: 0.0085840225219727
Output for 5.3.18
Time: 0.010349035263062<br> Time: 0.010680913925171
Output for 5.3.17
Time: 0.012288093566895<br> Time: 0.0118408203125
Output for 5.3.16
Time: 0.011118173599243<br> Time: 0.010961055755615
Output for 5.3.15
Time: 0.011008977890015<br> Time: 0.011198997497559
Output for 5.3.14
Time: 0.011070966720581<br> Time: 0.011240005493164
Output for 5.3.13
Time: 0.0097739696502686<br> Time: 0.010545015335083
Output for 5.3.12
Time: 0.010256052017212<br> Time: 0.010277986526489
Output for 5.3.11
Time: 0.0073089599609375<br> Time: 0.0089170932769775
Output for 5.3.10
Time: 0.0098938941955566<br> Time: 0.0098328590393066
Output for 5.3.9
Time: 0.010499000549316<br> Time: 0.010337114334106
Output for 5.3.8
Time: 0.011337041854858<br> Time: 0.010791063308716
Output for 5.3.7
Time: 0.0090949535369873<br> Time: 0.0093770027160645
Output for 5.3.6
Time: 0.0094060897827148<br> Time: 0.0094368457794189
Output for 5.3.5
Time: 0.010712862014771<br> Time: 0.010809898376465
Output for 5.3.4
Time: 0.010339975357056<br> Time: 0.010117053985596
Output for 5.3.3
Time: 0.011122941970825<br> Time: 0.010907173156738
Output for 5.3.2
Time: 0.0103759765625<br> Time: 0.010290145874023
Output for 5.3.1
Time: 0.010143041610718<br> Time: 0.010194063186646
Output for 5.3.0
Time: 0.0062980651855469<br> Time: 0.0068061351776123
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_CONST in /in/cRMVP on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_CONST in /in/cRMVP on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/cRMVP on line 9
Process exited with code 255.