3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 1000000; $foo = 0; $start = microtime(true); for ($i = 0; $i < $count; $i++) { try { $foo++; } catch (\Exception $e) { } } echo microtime(true) - $start;
Output for 7.1.0
0.04190993309021
Output for 7.0.14
0.052551031112671
Output for 7.0.8
0.017186880111694
Output for 7.0.7
0.015205144882202
Output for 7.0.6
0.015405893325806
Output for 7.0.5
0.021637201309204
Output for 7.0.4
0.021522045135498
Output for 7.0.3
0.017744064331055
Output for 7.0.2
0.018505811691284
Output for 7.0.1
0.01964807510376
Output for 7.0.0
0.017886877059937
Output for hhvm-3.12.0
0.050692081451416
Output for hhvm-3.10.0
0.057667016983032
Output for 5.6.28
0.070598125457764
Output for 5.6.23
0.040077924728394
Output for 5.6.22
0.045618057250977
Output for 5.6.21
0.048910856246948
Output for 5.6.20
0.04904317855835
Output for 5.6.19
0.049300909042358
Output for 5.6.18
0.043645143508911
Output for 5.6.17
0.040446043014526
Output for 5.6.16
0.04688286781311
Output for 5.6.15
0.04963207244873
Output for 5.6.14
0.040759086608887
Output for 5.6.13
0.050027132034302
Output for 5.6.12
0.041994094848633
Output for 5.6.11
0.047255039215088
Output for 5.6.10
0.047749042510986
Output for 5.6.9
0.046353101730347
Output for 5.6.8
0.045521020889282
Output for 5.6.7
0.041740894317627
Output for 5.6.6
0.043160915374756
Output for 5.6.5
0.041102170944214
Output for 5.6.4
0.036000967025757
Output for 5.6.3
0.04156494140625
Output for 5.6.2
0.050157070159912
Output for 5.6.1
0.047885179519653
Output for 5.6.0
0.046351909637451
Output for 5.5.37
0.039864063262939
Output for 5.5.36
0.045943021774292
Output for 5.5.35
0.047035932540894
Output for 5.5.34
0.043164968490601
Output for 5.5.33
0.044472932815552
Output for 5.5.32
0.040442943572998
Output for 5.5.31
0.046414136886597
Output for 5.5.30
0.044890880584717
Output for 5.5.29
0.046017169952393
Output for 5.5.28
0.041172027587891
Output for 5.5.27
0.042109966278076
Output for 5.5.26
0.043801069259644
Output for 5.5.25
0.032702922821045
Output for 5.5.24
0.043259143829346
Output for 5.5.23
0.050309181213379
Output for 5.5.22
0.044496059417725
Output for 5.5.21
0.045873880386353
Output for 5.5.20
0.047443866729736
Output for 5.5.19
0.045881032943726
Output for 5.5.18
0.034186840057373
Output for 5.5.16
0.044578075408936
Output for 5.5.15
0.044066190719604
Output for 5.5.14
0.038758993148804
Output for 5.5.13
0.050029039382935
Output for 5.5.12
0.034738063812256
Output for 5.5.11
0.050075054168701
Output for 5.5.10
0.047267913818359
Output for 5.5.9
0.040990114212036
Output for 5.5.8
0.038683176040649
Output for 5.5.7
0.037724018096924
Output for 5.5.6
0.048415899276733
Output for 5.5.5
0.038689136505127
Output for 5.5.4
0.052124977111816
Output for 5.5.0, 5.5.3
0.042371034622192
Output for 5.5.2
0.043785810470581
Output for 5.5.1
0.032885074615479
Output for 5.4.45
0.044466972351074
Output for 5.4.44
0.041123867034912
Output for 5.4.43
0.050749063491821
Output for 5.4.42
0.04921293258667
Output for 5.4.41
0.051086902618408
Output for 5.4.40
0.050465106964111
Output for 5.4.39
0.044310092926025
Output for 5.4.38
0.040112972259521
Output for 5.4.37
0.033801078796387
Output for 5.4.36
0.047772884368896
Output for 5.4.35
0.032712936401367
Output for 5.4.34
0.047682046890259
Output for 5.4.32
0.032181024551392
Output for 5.4.31
0.048441886901855
Output for 5.4.30
0.048582077026367
Output for 5.4.29
0.045625925064087
Output for 5.4.28
0.03864598274231
Output for 5.4.27
0.049215078353882
Output for 5.4.26
0.03849196434021
Output for 5.4.25
0.033509969711304
Output for 5.4.24
0.039591073989868
Output for 5.4.23
0.045583963394165
Output for 5.4.22
0.040811061859131
Output for 5.4.21
0.039523124694824
Output for 5.4.20
0.041302919387817
Output for 5.4.19
0.046025037765503
Output for 5.4.18
0.045077085494995
Output for 5.4.17
0.046667098999023
Output for 5.4.16
0.052345037460327
Output for 5.4.15
0.032396793365479
Output for 5.4.14
0.043089151382446
Output for 5.4.13
0.039130926132202
Output for 5.4.12
0.04404091835022
Output for 5.4.11
0.047981023788452
Output for 5.4.10
0.037126779556274
Output for 5.4.9
0.047338008880615
Output for 5.4.8
0.040211915969849
Output for 5.4.7
0.043983936309814
Output for 5.4.6
0.048807859420776
Output for 5.4.5
0.040897130966187
Output for 5.4.4
0.047173023223877
Output for 5.4.3
0.041818857192993
Output for 5.4.2
0.051383018493652
Output for 5.4.1
0.048789024353027
Output for 5.4.0
0.041692972183228
Output for 5.3.29
0.060175895690918
Output for 5.3.28
0.050127983093262
Output for 5.3.27
0.05811595916748
Output for 5.3.26
0.061841011047363
Output for 5.3.25
0.058403968811035
Output for 5.3.24
0.046694993972778
Output for 5.3.23
0.044904947280884
Output for 5.3.22
0.060199975967407
Output for 5.3.21
0.06374192237854
Output for 5.3.20
0.041674852371216
Output for 5.3.19
0.042348146438599
Output for 5.3.18
0.047206878662109
Output for 5.3.17
0.048731088638306
Output for 5.3.16
0.061118841171265
Output for 5.3.15
0.062675952911377
Output for 5.3.14
0.055752992630005
Output for 5.3.13
0.041224002838135
Output for 5.3.12
0.05693507194519
Output for 5.3.11
0.057575941085815
Output for 5.3.10
0.062716007232666
Output for 5.3.9
0.044980049133301
Output for 5.3.8
0.058871984481812
Output for 5.3.7
0.058211088180542
Output for 5.3.6
0.049923896789551
Output for 5.3.5
0.046756029129028
Output for 5.3.4
0.060977935791016
Output for 5.3.3
0.058342933654785
Output for 5.3.2
0.058907985687256
Output for 5.3.1
0.054586887359619
Output for 5.3.0
0.060750961303711
Output for 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.073671102523804
Output for 5.2.16
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.086607933044434
Output for 5.2.15
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.068882942199707
Output for 5.2.14
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.077628135681152
Output for 5.2.13
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.078390121459961
Output for 5.2.12
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.058856010437012
Output for 5.2.11
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.0558021068573
Output for 5.2.10
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.079320192337036
Output for 5.2.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.06999683380127
Output for 5.2.8
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.057676076889038
Output for 5.2.7
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.076227903366089
Output for 5.2.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.07281494140625
Output for 5.2.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.06836199760437
Output for 5.2.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.062391996383667
Output for 5.2.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.054833173751831
Output for 5.2.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.087749004364014
Output for 5.2.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.053057909011841
Output for 5.2.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.12032008171082
Output for 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.091864109039307
Output for 5.1.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.095478773117065
Output for 5.1.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.093240976333618
Output for 5.1.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.11122798919678
Output for 5.1.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.11794090270996
Output for 5.1.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.098728895187378
Output for 5.1.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.12528491020203
Output for 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.20757699012756
Output for 5.0.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.2162299156189
Output for 5.0.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.20617699623108
Output for 5.0.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.18062806129456
Output for 5.0.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.19844698905945
Output for 5.0.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/u97p9 on line 10 0.1912260055542
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/u97p9 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/u97p9 on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/u97p9 on line 8
Process exited with code 255.