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.023998975753784
Output for 7.0.14
0.052016973495483
Output for 7.0.10
0.013826131820679
Output for 7.0.9
0.014605045318604
Output for 7.0.8
0.020400047302246
Output for 7.0.7
0.012920141220093
Output for 7.0.6
0.014314889907837
Output for 7.0.5
0.020041942596436
Output for 7.0.4
0.014343023300171
Output for 7.0.3
0.014046907424927
Output for 7.0.2
0.016493082046509
Output for 7.0.1
0.013395071029663
Output for 7.0.0
0.013849020004272
Output for hhvm-3.12.0
0.10457992553711
Output for hhvm-3.10.0
0.14986991882324
Output for 5.6.28
0.068394184112549
Output for 5.6.25
0.044475078582764
Output for 5.6.24
0.034095048904419
Output for 5.6.23
0.035798072814941
Output for 5.6.22
0.041929006576538
Output for 5.6.21
0.04615592956543
Output for 5.6.20
0.033570051193237
Output for 5.6.19
0.035110950469971
Output for 5.6.18
0.035691022872925
Output for 5.6.17
0.032734155654907
Output for 5.6.16
0.033525943756104
Output for 5.6.15
0.030668020248413
Output for 5.6.14
0.032676935195923
Output for 5.6.13
0.036306142807007
Output for 5.6.12
0.02692985534668
Output for 5.6.11
0.028345108032227
Output for 5.6.10
0.03264594078064
Output for 5.6.9
0.032668828964233
Output for 5.6.8
0.038860082626343
Output for 5.6.7
0.030510187149048
Output for 5.6.6
0.050117015838623
Output for 5.6.5
0.045138835906982
Output for 5.6.4
0.037315845489502
Output for 5.6.3
0.037285089492798
Output for 5.6.2
0.036036968231201
Output for 5.6.1
0.044210910797119
Output for 5.6.0
0.032686948776245
Output for 5.5.38
0.049865961074829
Output for 5.5.37
0.034763813018799
Output for 5.5.36
0.040861129760742
Output for 5.5.35
0.047551870346069
Output for 5.5.34
0.037083864212036
Output for 5.5.33
0.032646179199219
Output for 5.5.32
0.034835815429688
Output for 5.5.31
0.042040109634399
Output for 5.5.30
0.039427042007446
Output for 5.5.29
0.033041954040527
Output for 5.5.28
0.035461902618408
Output for 5.5.27
0.033002138137817
Output for 5.5.26
0.033501863479614
Output for 5.5.25
0.032747030258179
Output for 5.5.24
0.03325891494751
Output for 5.5.23
0.043977975845337
Output for 5.5.22
0.051068067550659
Output for 5.5.21
0.03559398651123
Output for 5.5.20
0.036894083023071
Output for 5.5.19
0.041146993637085
Output for 5.5.18
0.052242994308472
Output for 5.5.16
0.044858932495117
Output for 5.5.15
0.035247087478638
Output for 5.5.14
0.0384840965271
Output for 5.5.13
0.033750057220459
Output for 5.5.12
0.047432899475098
Output for 5.5.11
0.042428016662598
Output for 5.5.10
0.050034046173096
Output for 5.5.9
0.043945074081421
Output for 5.5.8
0.051220178604126
Output for 5.5.7
0.032725811004639
Output for 5.5.6
0.045337915420532
Output for 5.5.5
0.052629947662354
Output for 5.5.4
0.037997961044312
Output for 5.5.3
0.04823112487793
Output for 5.5.2
0.033966064453125
Output for 5.5.1
0.033554077148438
Output for 5.5.0
0.035102128982544
Output for 5.4.45
0.032182931900024
Output for 5.4.44
0.047956943511963
Output for 5.4.43
0.031061172485352
Output for 5.4.42
0.033888816833496
Output for 5.4.41
0.028574228286743
Output for 5.4.40
0.052565097808838
Output for 5.4.39
0.05050802230835
Output for 5.4.38
0.041996002197266
Output for 5.4.37
0.040556907653809
Output for 5.4.36
0.042754888534546
Output for 5.4.35
0.039937019348145
Output for 5.4.34
0.04353404045105
Output for 5.4.32
0.049584865570068
Output for 5.4.31
0.032154083251953
Output for 5.4.30
0.031938076019287
Output for 5.4.29
0.04046893119812
Output for 5.4.28
0.032668113708496
Output for 5.4.27
0.046629190444946
Output for 5.4.26
0.032325983047485
Output for 5.4.25
0.04115104675293
Output for 5.4.24
0.035542011260986
Output for 5.4.23
0.043414115905762
Output for 5.4.22
0.043596982955933
Output for 5.4.21
0.032665967941284
Output for 5.4.20
0.043302774429321
Output for 5.4.19
0.038512945175171
Output for 5.4.18
0.034693002700806
Output for 5.4.17
0.034276962280273
Output for 5.4.16
0.037020921707153
Output for 5.4.15
0.043260097503662
Output for 5.4.14
0.035429000854492
Output for 5.4.13
0.049988031387329
Output for 5.4.12
0.034504890441895
Output for 5.4.11
0.040380001068115
Output for 5.4.10
0.034769058227539
Output for 5.4.9
0.047539949417114
Output for 5.4.8
0.034036159515381
Output for 5.4.7
0.032883167266846
Output for 5.4.6
0.056754112243652
Output for 5.4.5
0.03731894493103
Output for 5.4.4
0.03736686706543
Output for 5.4.3
0.049602031707764
Output for 5.4.2
0.039047956466675
Output for 5.4.1
0.032397031784058
Output for 5.4.0
0.05082106590271
Output for 5.3.29
0.046512842178345
Output for 5.3.28
0.047915935516357
Output for 5.3.27
0.040684938430786
Output for 5.3.26
0.050827980041504
Output for 5.3.25
0.055579900741577
Output for 5.3.24
0.062720060348511
Output for 5.3.23
0.062023878097534
Output for 5.3.22
0.050405025482178
Output for 5.3.21
0.044881105422974
Output for 5.3.20
0.057919979095459
Output for 5.3.19
0.043334007263184
Output for 5.3.18
0.057299852371216
Output for 5.3.17
0.092252969741821
Output for 5.3.16
0.049328088760376
Output for 5.3.15
0.064198017120361
Output for 5.3.14
0.068664073944092
Output for 5.3.13
0.041178941726685
Output for 5.3.12
0.052255153656006
Output for 5.3.11
0.048464059829712
Output for 5.3.10
0.057965040206909
Output for 5.3.9
0.057367086410522
Output for 5.3.8
0.05345606803894
Output for 5.3.7
0.050668954849243
Output for 5.3.6
0.058505058288574
Output for 5.3.5
0.047658205032349
Output for 5.3.4
0.054273128509521
Output for 5.3.3
0.085179090499878
Output for 5.3.2
0.055037975311279
Output for 5.3.1
0.067677974700928
Output for 5.3.0
0.053749084472656
Output for 5.2.17
0.072955131530762
Output for 5.2.16
0.069523096084595
Output for 5.2.15
0.057744979858398
Output for 5.2.14
0.055568933486938
Output for 5.2.13
0.055611133575439
Output for 5.2.12
0.065155982971191
Output for 5.2.11
0.069499969482422
Output for 5.2.10
0.076210975646973
Output for 5.2.9
0.084403991699219
Output for 5.2.8
0.055055856704712
Output for 5.2.7
0.055197954177856
Output for 5.2.6
0.069048881530762
Output for 5.2.5
0.06487512588501
Output for 5.2.4
0.069769144058228
Output for 5.2.3
0.075462102890015
Output for 5.2.2
0.072573184967041
Output for 5.2.1
0.063377857208252
Output for 5.2.0
0.09063982963562
Output for 5.1.6
0.10076189041138
Output for 5.1.5
0.10411882400513
Output for 5.1.4
0.14179992675781
Output for 5.1.3
0.11541318893433
Output for 5.1.2
0.09895396232605
Output for 5.1.1
0.10617303848267
Output for 5.1.0
0.11632609367371
Output for 5.0.5
0.19580793380737
Output for 5.0.4
0.2006721496582
Output for 5.0.3
0.18569016456604
Output for 5.0.2
0.23722505569458
Output for 5.0.1
0.18937802314758
Output for 5.0.0
0.24846482276917
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/X3CGr 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/X3CGr on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/X3CGr on line 8
Process exited with code 255.