3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 5000000; $foo = 0; $start = microtime(true); for ($i = 0; $i < $count; $i++) { try { $foo++; } catch (\Exception $e) { } } echo microtime(true) - $start;
Output for 7.4.1
0.086765050888062
Output for 7.4.0
0.14751601219177
Output for 7.3.13
0.12215304374695
Output for 7.3.12
0.14142298698425
Output for 7.3.11
0.11285090446472
Output for 7.3.10
0.12230396270752
Output for 7.3.9
0.12261581420898
Output for 7.3.8
0.11410689353943
Output for 7.3.7
0.13953304290771
Output for 7.3.6
0.13394594192505
Output for 7.3.5
0.12040495872498
Output for 7.3.4
0.12902402877808
Output for 7.3.3
0.11341404914856
Output for 7.3.2
0.10816597938538
Output for 7.3.1
0.11628317832947
Output for 7.3.0
0.11256885528564
Output for 7.2.26
0.11484098434448
Output for 7.2.25
0.16663503646851
Output for 7.2.24
0.12454605102539
Output for 7.2.23
0.16315913200378
Output for 7.2.22
0.13550305366516
Output for 7.2.21
0.1183180809021
Output for 7.2.20
0.13414311408997
Output for 7.2.19
0.13763284683228
Output for 7.2.18
0.1549129486084
Output for 7.2.17
0.13449811935425
Output for 7.2.16
0.14054107666016
Output for 7.2.15
0.13633584976196
Output for 7.2.14
0.12136697769165
Output for 7.2.13
0.14603686332703
Output for 7.2.12
0.16571593284607
Output for 7.2.11
0.13905191421509
Output for 7.2.10
0.14064693450928
Output for 7.2.9
0.14215087890625
Output for 7.2.8
0.11022996902466
Output for 7.2.7
0.14644718170166
Output for 7.2.6
0.1199688911438
Output for 7.2.5
0.10805296897888
Output for 7.2.4
0.14948892593384
Output for 7.2.3
0.11919093132019
Output for 7.2.2
0.13943386077881
Output for 7.2.1
0.10776019096375
Output for 7.2.0
0.1550350189209
Output for 7.1.33
0.26669383049011
Output for 7.1.32
0.28970789909363
Output for 7.1.31
0.26939916610718
Output for 7.1.30
0.27771306037903
Output for 7.1.29
0.27629399299622
Output for 7.1.28
0.2960159778595
Output for 7.1.27
0.31338691711426
Output for 7.1.26
0.28112316131592
Output for 7.1.25
0.27157211303711
Output for 7.1.24
0.27726602554321
Output for 7.1.23
0.26347088813782
Output for 7.1.22
0.29293918609619
Output for 7.1.21
0.27825212478638
Output for 7.1.20
0.31879591941833
Output for 7.1.19
0.30047011375427
Output for 7.1.18
0.27840805053711
Output for 7.1.17
0.32472586631775
Output for 7.1.16
0.2874219417572
Output for 7.1.15
0.25062608718872
Output for 7.1.14
0.3039710521698
Output for 7.1.13
0.24387907981873
Output for 7.1.12
0.26321911811829
Output for 7.1.11
0.25584602355957
Output for 7.1.10
0.26734685897827
Output for 7.1.9
0.27029585838318
Output for 7.1.8
0.28720593452454
Output for 7.1.7
0.26967215538025
Output for 7.1.6
0.25893211364746
Output for 7.1.5
0.31276321411133
Output for 7.1.4
0.27595615386963
Output for 7.1.3
0.25356388092041
Output for 7.1.2
0.27529811859131
Output for 7.1.1
0.28771901130676
Output for 7.1.0
0.27944397926331
Output for 7.0.33
0.24564599990845
Output for 7.0.32
0.28843712806702
Output for 7.0.31
0.24214887619019
Output for 7.0.30
0.27736592292786
Output for 7.0.29
0.25889110565186
Output for 7.0.28
0.27675199508667
Output for 7.0.27
0.27544593811035
Output for 7.0.26
0.23886108398438
Output for 7.0.25
0.29416084289551
Output for 7.0.24
0.2656729221344
Output for 7.0.23
0.24827790260315
Output for 7.0.22
0.25869703292847
Output for 7.0.21
0.27211093902588
Output for 7.0.20
0.26243305206299
Output for 7.0.19
0.25336885452271
Output for 7.0.18
0.26195311546326
Output for 7.0.17
0.26675915718079
Output for 7.0.16
0.25330996513367
Output for 7.0.15
0.26416492462158
Output for 7.0.14
0.27029514312744
Output for 7.0.13
0.30791592597961
Output for 7.0.12
0.25988698005676
Output for 7.0.11
0.29007792472839
Output for 7.0.10
0.26415705680847
Output for 7.0.9
0.24713921546936
Output for 7.0.8
0.30034399032593
Output for 7.0.7
0.24206113815308
Output for 7.0.6
0.28004193305969
Output for 7.0.5
0.26486301422119
Output for 7.0.4
0.27657198905945
Output for 7.0.3
0.28312301635742
Output for 7.0.2
0.25631093978882
Output for 7.0.1
0.3150200843811
Output for 7.0.0
0.25820589065552
Output for 5.6.40
0.58644580841064
Output for 5.6.39
0.57972311973572
Output for 5.6.38
0.55112814903259
Output for 5.6.37
0.62169504165649
Output for 5.6.36
0.56133389472961
Output for 5.6.35
0.56483101844788
Output for 5.6.34
0.60712385177612
Output for 5.6.33
0.57765316963196
Output for 5.6.32
0.59879493713379
Output for 5.6.31
0.58553385734558
Output for 5.6.30
0.58668208122253
Output for 5.6.29
0.58171701431274
Output for 5.6.28
0.52916693687439
Output for 5.6.27
0.59468078613281
Output for 5.6.26
0.57950806617737
Output for 5.6.25
0.56870603561401
Output for 5.6.24
0.57254695892334
Output for 5.6.23
0.63074398040771
Output for 5.6.22
0.65146684646606
Output for 5.6.21
0.57945990562439
Output for 5.6.20
0.60969996452332
Output for 5.6.19
0.62533807754517
Output for 5.6.18
0.54540419578552
Output for 5.6.17
0.56255292892456
Output for 5.6.16
0.64767980575562
Output for 5.6.15
0.64448094367981
Output for 5.6.14
0.55912399291992
Output for 5.6.13
0.56753301620483
Output for 5.6.12
0.5828230381012
Output for 5.6.11
0.55607604980469
Output for 5.6.10
0.5663058757782
Output for 5.6.9
0.58858609199524
Output for 5.6.8
0.60010600090027
Output for 5.6.7
0.58494806289673
Output for 5.6.6
0.57521796226501
Output for 5.6.5
0.61312103271484
Output for 5.6.4
0.64351010322571
Output for 5.6.3
0.64257884025574
Output for 5.6.2
0.55062913894653
Output for 5.6.1
0.56187105178833
Output for 5.6.0
0.63497519493103
Output for 5.5.38
0.62224793434143
Output for 5.5.37
0.57170104980469
Output for 5.5.36
0.65104198455811
Output for 5.5.35
0.56098318099976
Output for 5.5.34
0.54061794281006
Output for 5.5.33
0.55989599227905
Output for 5.5.32
0.56136393547058
Output for 5.5.31
0.61542201042175
Output for 5.5.30
0.65240478515625
Output for 5.5.29
0.64571094512939
Output for 5.5.28
0.58213496208191
Output for 5.5.27
0.62882494926453
Output for 5.5.26
0.62899303436279
Output for 5.5.25
0.56100106239319
Output for 5.5.24
0.61546778678894
Output for 5.5.23
0.64306902885437
Output for 5.5.22
0.63352298736572
Output for 5.5.21
0.63176298141479
Output for 5.5.20
0.64040088653564
Output for 5.5.19
0.62535905838013
Output for 5.5.18
0.63369083404541
Output for 5.5.17
0.55536103248596
Output for 5.5.16
0.5656681060791
Output for 5.5.15
0.65375804901123
Output for 5.5.14
0.62741708755493
Output for 5.5.13
0.58128809928894
Output for 5.5.12
0.64989995956421
Output for 5.5.11
0.64792490005493
Output for 5.5.10
0.59622001647949
Output for 5.5.9
0.57102203369141
Output for 5.5.8
0.60825395584106
Output for 5.5.7
0.59549307823181
Output for 5.5.6
0.64595913887024
Output for 5.5.5
0.55754613876343
Output for 5.5.4
0.61965394020081
Output for 5.5.3
0.58370995521545
Output for 5.5.2
0.6369788646698
Output for 5.5.1
0.58976697921753
Output for 5.5.0
0.63251304626465
Output for 5.4.45
0.57901310920715
Output for 5.4.44
0.51472592353821
Output for 5.4.43
0.61516809463501
Output for 5.4.42
0.62519407272339
Output for 5.4.41
0.53542995452881
Output for 5.4.40
0.57068490982056
Output for 5.4.39
0.63787388801575
Output for 5.4.38
0.62720608711243
Output for 5.4.37
0.58631491661072
Output for 5.4.36
0.55204296112061
Output for 5.4.35
0.63791489601135
Output for 5.4.34
0.55185294151306
Output for 5.4.33
0.64152193069458
Output for 5.4.32
0.5570809841156
Output for 5.4.31
0.6124701499939
Output for 5.4.30
0.57147407531738
Output for 5.4.29
0.55257606506348
Output for 5.4.28
0.54542708396912
Output for 5.4.27
0.54674816131592
Output for 5.4.26
0.57133889198303
Output for 5.4.25
0.5516209602356
Output for 5.4.24
0.58228397369385
Output for 5.4.23
0.61667704582214
Output for 5.4.22
0.64971303939819
Output for 5.4.21
0.59281206130981
Output for 5.4.20
0.54859614372253
Output for 5.4.19
0.58071303367615
Output for 5.4.18
0.56562900543213
Output for 5.4.17
0.53245091438293
Output for 5.4.16
0.65157604217529
Output for 5.4.15
0.55382895469666
Output for 5.4.14
0.57023215293884
Output for 5.4.13
0.54815602302551
Output for 5.4.12
0.62634682655334
Output for 5.4.11
0.55216503143311
Output for 5.4.10
0.62520003318787
Output for 5.4.9
0.63461995124817
Output for 5.4.8
0.58516693115234
Output for 5.4.7
0.59808015823364
Output for 5.4.6
0.65142202377319
Output for 5.4.5
0.72203612327576
Output for 5.4.4
0.60384702682495
Output for 5.4.3
0.65040016174316
Output for 5.4.2
0.63815689086914
Output for 5.4.1
0.56690311431885
Output for 5.4.0
0.56694388389587
Output for 5.3.29
0.71639013290405
Output for 5.3.28
0.71794700622559
Output for 5.3.27
0.72015905380249
Output for 5.3.26
0.60083818435669
Output for 5.3.25
0.60933613777161
Output for 5.3.24
0.60445308685303
Output for 5.3.23
0.66204404830933
Output for 5.3.22
0.65651607513428
Output for 5.3.21
0.69608521461487
Output for 5.3.20
0.65587115287781
Output for 5.3.19
0.7420871257782
Output for 5.3.18
0.71737408638
Output for 5.3.17
0.64775919914246
Output for 5.3.16
0.65048098564148
Output for 5.3.15
0.58060216903687
Output for 5.3.14
0.68603301048279
Output for 5.3.13
0.58889222145081
Output for 5.3.12
0.59679698944092
Output for 5.3.11
0.72233414649963
Output for 5.3.10
0.57377505302429
Output for 5.3.9
0.6802351474762
Output for 5.3.8
0.70251321792603
Output for 5.3.7
0.66082811355591
Output for 5.3.6
0.7023491859436
Output for 5.3.5
0.72371220588684
Output for 5.3.4
0.59278702735901
Output for 5.3.3
0.60050511360168
Output for 5.3.2
0.71677708625793
Output for 5.3.1
0.59817004203796
Output for 5.3.0
0.61671614646912
Output for 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.28889608383179
Output for 5.2.16
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.2907509803772
Output for 5.2.15
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.28026008605957
Output for 5.2.14
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.27006006240845
Output for 5.2.13
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.23077893257141
Output for 5.2.12
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.27221894264221
Output for 5.2.11
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.32052612304688
Output for 5.2.10
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.28822803497314
Output for 5.2.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.30342507362366
Output for 5.2.8
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.29405498504639
Output for 5.2.7
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.3084659576416
Output for 5.2.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.30083394050598
Output for 5.2.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.28249883651733
Output for 5.2.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.2747859954834
Output for 5.2.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.29600286483765
Output for 5.2.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.29571795463562
Output for 5.2.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.29137802124023
Output for 5.2.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.46533703804016
Output for 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.46400690078735
Output for 5.1.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.45134305953979
Output for 5.1.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.46063184738159
Output for 5.1.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.49095582962036
Output for 5.1.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.50430297851562
Output for 5.1.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.4708468914032
Output for 5.1.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.46737813949585
Output for 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.88006091117859
Output for 5.0.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.94351482391357
Output for 5.0.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.85738110542297
Output for 5.0.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.84136199951172
Output for 5.0.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.81241202354431
Output for 5.0.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CE24d on line 10 0.85788893699646
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/CE24d on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected '{' in /in/CE24d on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/CE24d on line 8
Process exited with code 255.

preferences:
188.61 ms | 401 KiB | 325 Q