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=2000000; $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.05121111869812<br> Time: 0.050763130187988
Output for 7.0.14
Time: 0.053802967071533<br> Time: 0.054782867431641
Output for 7.0.7
Time: 0.044717073440552<br> Time: 0.046555995941162
Output for 7.0.6
Time: 0.051842927932739<br> Time: 0.051230907440186
Output for 7.0.5
Time: 0.054541826248169<br> Time: 0.051506042480469
Output for 7.0.4
Time: 0.048420190811157<br> Time: 0.049748182296753
Output for 7.0.3
Time: 0.042998075485229<br> Time: 0.046109914779663
Output for 7.0.2
Time: 0.051913976669312<br> Time: 0.048220872879028
Output for 7.0.1
Time: 0.054905891418457<br> Time: 0.049350023269653
Output for 7.0.0
Time: 0.049309015274048<br> Time: 0.043599843978882
Output for hhvm-3.12.0
Time: 0.16262984275818<br> Time: 0.13303112983704
Output for hhvm-3.10.0
Time: 0.18027496337891<br> Time: 0.14757490158081
Output for 5.6.28
Time: 0.1372811794281<br> Time: 0.03262186050415
Output for 5.6.22
Time: 0.096374988555908<br> Time: 0.084335088729858
Output for 5.6.21
Time: 0.085750818252563<br> Time: 0.086075067520142
Output for 5.6.20
Time: 0.097349166870117<br> Time: 0.089159965515137
Output for 5.6.19
Time: 0.087782144546509<br> Time: 0.08869194984436
Output for 5.6.18
Time: 0.094238996505737<br> Time: 0.087298154830933
Output for 5.6.17
Time: 0.095922946929932<br> Time: 0.085514068603516
Output for 5.6.16
Time: 0.085170984268188<br> Time: 0.087667942047119
Output for 5.6.15
Time: 0.080060005187988<br> Time: 0.085422039031982
Output for 5.6.14
Time: 0.084190130233765<br> Time: 0.086635828018188
Output for 5.6.13
Time: 0.086553812026978<br> Time: 0.086992025375366
Output for 5.6.12
Time: 0.087800025939941<br> Time: 0.087501049041748
Output for 5.6.11
Time: 0.096686124801636<br> Time: 0.087717056274414
Output for 5.6.10
Time: 0.086989164352417<br> Time: 0.085860967636108
Output for 5.6.9
Time: 0.089792966842651<br> Time: 0.087815046310425
Output for 5.6.8
Time: 0.084246158599854<br> Time: 0.087532997131348
Output for 5.6.7
Time: 0.070095062255859<br> Time: 0.071588039398193
Output for 5.6.6
Time: 0.07794713973999<br> Time: 0.073418140411377
Output for 5.6.5
Time: 0.086966991424561<br> Time: 0.091510057449341
Output for 5.6.4
Time: 0.08103609085083<br> Time: 0.093605995178223
Output for 5.6.3
Time: 0.062603950500488<br> Time: 0.071800947189331
Output for 5.6.2
Time: 0.060876846313477<br> Time: 0.070738077163696
Output for 5.6.1
Time: 0.062129020690918<br> Time: 0.072435140609741
Output for 5.6.0
Time: 0.065268993377686<br> Time: 0.073426008224487
Output for 5.5.36
Time: 0.085122108459473<br> Time: 0.086950063705444
Output for 5.5.35
Time: 0.10451912879944<br> Time: 0.089539051055908
Output for 5.5.34
Time: 0.0990149974823<br> Time: 0.087632894515991
Output for 5.5.33
Time: 0.091210126876831<br> Time: 0.085922002792358
Output for 5.5.32
Time: 0.073891878128052<br> Time: 0.085402965545654
Output for 5.5.31
Time: 0.07524299621582<br> Time: 0.087028026580811
Output for 5.5.30
Time: 0.086797952651978<br> Time: 0.085561037063599
Output for 5.5.29
Time: 0.10024094581604<br> Time: 0.087429046630859
Output for 5.5.28
Time: 0.086625814437866<br> Time: 0.085698843002319
Output for 5.5.27
Time: 0.08866286277771<br> Time: 0.087478160858154
Output for 5.5.26
Time: 0.092446088790894<br> Time: 0.087691068649292
Output for 5.5.25
Time: 0.090591907501221<br> Time: 0.087167978286743
Output for 5.5.24
Time: 0.097630023956299<br> Time: 0.087405920028687
Output for 5.5.23
Time: 0.074649095535278<br> Time: 0.083878040313721
Output for 5.5.22
Time: 0.093111991882324<br> Time: 0.086879014968872
Output for 5.5.21
Time: 0.078357934951782<br> Time: 0.089884042739868
Output for 5.5.20
Time: 0.074311971664429<br> Time: 0.076448917388916
Output for 5.5.19
Time: 0.078485012054443<br> Time: 0.074765920639038
Output for 5.5.18
Time: 0.073928117752075<br> Time: 0.078280925750732
Output for 5.5.16
Time: 0.060811996459961<br> Time: 0.071223020553589
Output for 5.5.15
Time: 0.095584154129028<br> Time: 0.10788798332214
Output for 5.5.14
Time: 0.07857084274292<br> Time: 0.073716878890991
Output for 5.5.13
Time: 0.092741012573242<br> Time: 0.10765600204468
Output for 5.5.12
Time: 0.10846018791199<br> Time: 0.08578896522522
Output for 5.5.11
Time: 0.092380046844482<br> Time: 0.087362051010132
Output for 5.5.10
Time: 0.073760032653809<br> Time: 0.085366010665894
Output for 5.5.9
Time: 0.084187984466553<br> Time: 0.08648681640625
Output for 5.5.8
Time: 0.097404956817627<br> Time: 0.090214014053345
Output for 5.5.7
Time: 0.084308862686157<br> Time: 0.08885383605957
Output for 5.5.6
Time: 0.092918157577515<br> Time: 0.091255903244019
Output for 5.5.5
Time: 0.0886070728302<br> Time: 0.087049007415771
Output for 5.5.4
Time: 0.098888874053955<br> Time: 0.087677001953125
Output for 5.5.3
Time: 0.086647033691406<br> Time: 0.085484027862549
Output for 5.5.2
Time: 0.097112894058228<br> Time: 0.086434125900269
Output for 5.5.1
Time: 0.099116086959839<br> Time: 0.087059020996094
Output for 5.5.0
Time: 0.095274925231934<br> Time: 0.086560964584351
Output for 5.4.45
Time: 0.090237855911255<br> Time: 0.085007190704346
Output for 5.4.44
Time: 0.083245992660522<br> Time: 0.084545135498047
Output for 5.4.43
Time: 0.080277919769287<br> Time: 0.085690975189209
Output for 5.4.42
Time: 0.097438097000122<br> Time: 0.086456060409546
Output for 5.4.41
Time: 0.096982955932617<br> Time: 0.086611986160278
Output for 5.4.40
Time: 0.073386907577515<br> Time: 0.088199853897095
Output for 5.4.39
Time: 0.075248956680298<br> Time: 0.079174995422363
Output for 5.4.38
Time: 0.061511039733887<br> Time: 0.07011890411377
Output for 5.4.37
Time: 0.07505989074707<br> Time: 0.084972858428955
Output for 5.4.36
Time: 0.10097908973694<br> Time: 0.12062788009644
Output for 5.4.35
Time: 0.087821006774902<br> Time: 0.095185041427612
Output for 5.4.34
Time: 0.060698986053467<br> Time: 0.069339990615845
Output for 5.4.32
Time: 0.060789108276367<br> Time: 0.069118022918701
Output for 5.4.31
Time: 0.11241292953491<br> Time: 0.10531711578369
Output for 5.4.30
Time: 0.10981392860413<br> Time: 0.12042593955994
Output for 5.4.29
Time: 0.093394994735718<br> Time: 0.074478149414062
Output for 5.4.28
Time: 0.079580068588257<br> Time: 0.084934949874878
Output for 5.4.27
Time: 0.073467016220093<br> Time: 0.083837985992432
Output for 5.4.26
Time: 0.091310024261475<br> Time: 0.083862066268921
Output for 5.4.25
Time: 0.084299087524414<br> Time: 0.084776878356934
Output for 5.4.24
Time: 0.099777936935425<br> Time: 0.088809013366699
Output for 5.4.23
Time: 0.081133127212524<br> Time: 0.086157083511353
Output for 5.4.22
Time: 0.091070175170898<br> Time: 0.085352182388306
Output for 5.4.21
Time: 0.075433015823364<br> Time: 0.085084915161133
Output for 5.4.20
Time: 0.093903064727783<br> Time: 0.090780973434448
Output for 5.4.19
Time: 0.095679998397827<br> Time: 0.085087060928345
Output for 5.4.18
Time: 0.090358972549438<br> Time: 0.090504169464111
Output for 5.4.17
Time: 0.099354982376099<br> Time: 0.085678100585938
Output for 5.4.16
Time: 0.098315954208374<br> Time: 0.085415124893188
Output for 5.4.15
Time: 0.098325967788696<br> Time: 0.087233781814575
Output for 5.4.14
Time: 0.09343409538269<br> Time: 0.084925889968872
Output for 5.4.13
Time: 0.095044851303101<br> Time: 0.085547924041748
Output for 5.4.12
Time: 0.093073844909668<br> Time: 0.086583137512207
Output for 5.4.11
Time: 0.086170196533203<br> Time: 0.085712909698486
Output for 5.4.10
Time: 0.098122119903564<br> Time: 0.085281848907471
Output for 5.4.9
Time: 0.084614038467407<br> Time: 0.092689037322998
Output for 5.4.8
Time: 0.10091781616211<br> Time: 0.086068868637085
Output for 5.4.7
Time: 0.10122513771057<br> Time: 0.086013078689575
Output for 5.4.6
Time: 0.098129987716675<br> Time: 0.085309028625488
Output for 5.4.5
Time: 0.096868991851807<br> Time: 0.085259914398193
Output for 5.4.4
Time: 0.1000988483429<br> Time: 0.08587121963501
Output for 5.4.3
Time: 0.077536106109619<br> Time: 0.087387084960938
Output for 5.4.2
Time: 0.10117602348328<br> Time: 0.08617901802063
Output for 5.4.1
Time: 0.077061891555786<br> Time: 0.083610057830811
Output for 5.4.0
Time: 0.078078985214233<br> Time: 0.084121942520142
Output for 5.3.29
Time: 0.1898410320282<br> Time: 0.1830849647522
Output for 5.3.28
Time: 0.13574910163879<br> Time: 0.1314799785614
Output for 5.3.27
Time: 0.14813995361328<br> Time: 0.1353178024292
Output for 5.3.26
Time: 0.14833211898804<br> Time: 0.13393807411194
Output for 5.3.25
Time: 0.13600420951843<br> Time: 0.13361811637878
Output for 5.3.24
Time: 0.14002299308777<br> Time: 0.13055396080017
Output for 5.3.23
Time: 0.14360690116882<br> Time: 0.13085293769836
Output for 5.3.22
Time: 0.14156699180603<br> Time: 0.14827704429626
Output for 5.3.21
Time: 0.12535381317139<br> Time: 0.13720297813416
Output for 5.3.20
Time: 0.14704513549805<br> Time: 0.13082599639893
Output for 5.3.19
Time: 0.13539886474609<br> Time: 0.13096404075623
Output for 5.3.18
Time: 0.12753582000732<br> Time: 0.13035583496094
Output for 5.3.17
Time: 0.14495706558228<br> Time: 0.13173890113831
Output for 5.3.16
Time: 0.15709209442139<br> Time: 0.15348815917969
Output for 5.3.15
Time: 0.14334988594055<br> Time: 0.13772392272949
Output for 5.3.14
Time: 0.15241289138794<br> Time: 0.12904214859009
Output for 5.3.13
Time: 0.14829707145691<br> Time: 0.1341290473938
Output for 5.3.12
Time: 0.146977186203<br> Time: 0.13100504875183
Output for 5.3.11
Time: 0.14030718803406<br> Time: 0.13191390037537
Output for 5.3.10
Time: 0.12898993492126<br> Time: 0.1315610408783
Output for 5.3.9
Time: 0.14576983451843<br> Time: 0.13193297386169
Output for 5.3.8
Time: 0.15074515342712<br> Time: 0.13431596755981
Output for 5.3.7
Time: 0.14621686935425<br> Time: 0.13057208061218
Output for 5.3.6
Time: 0.14555597305298<br> Time: 0.12956809997559
Output for 5.3.5
Time: 0.15360713005066<br> Time: 0.13391900062561
Output for 5.3.4
Time: 0.14059495925903<br> Time: 0.12911200523376
Output for 5.3.3
Time: 0.13148093223572<br> Time: 0.13457202911377
Output for 5.3.2
Time: 0.13466811180115<br> Time: 0.13095903396606
Output for 5.3.1
Time: 0.14519095420837<br> Time: 0.12885689735413
Output for 5.3.0
Time: 0.1468460559845<br> Time: 0.13021802902222
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_CONST in /in/akVEF 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/akVEF on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/akVEF on line 9
Process exited with code 255.