3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.1.0
0.16444993019104
Output for 7.0.14
0.205078125
Output for 7.0.10
0.076577186584473
Output for 7.0.9
0.077288866043091
Output for 7.0.8
0.081476926803589
Output for 7.0.7
0.092859983444214
Output for 7.0.6
0.071321964263916
Output for 7.0.5
0.082499980926514
Output for 7.0.4
0.10020399093628
Output for 7.0.3
0.073184967041016
Output for 7.0.2
0.075498104095459
Output for 7.0.1
0.084580898284912
Output for 7.0.0
0.074593067169189
Output for 5.6.28
0.26633501052856
Output for 5.6.25
0.172287940979
Output for 5.6.24
0.17880892753601
Output for 5.6.23
0.16045784950256
Output for 5.6.22
0.16249108314514
Output for 5.6.21
0.16514182090759
Output for 5.6.20
0.17504906654358
Output for 5.6.19
0.17197895050049
Output for 5.6.18
0.18146991729736
Output for 5.6.17
0.17887401580811
Output for 5.6.16
0.15332818031311
Output for 5.6.15
0.17912602424622
Output for 5.6.14
0.17140793800354
Output for 5.6.13
0.19552803039551
Output for 5.6.12
0.1835880279541
Output for 5.6.11
0.1709930896759
Output for 5.6.10
0.18508195877075
Output for 5.6.9
0.1948401927948
Output for 5.6.8
0.22858500480652
Output for 5.6.7
0.17957782745361
Output for 5.6.6
0.21064496040344
Output for 5.6.5
0.1813280582428
Output for 5.6.4
0.20729112625122
Output for 5.6.3
0.22486305236816
Output for 5.6.2
0.18314385414124
Output for 5.6.1
0.17589402198792
Output for 5.6.0
0.15961599349976
Output for 5.5.38
0.18066596984863
Output for 5.5.37
0.19575500488281
Output for 5.5.36
0.17497301101685
Output for 5.5.35
0.23835492134094
Output for 5.5.34
0.17305302619934
Output for 5.5.33
0.17685103416443
Output for 5.5.32
0.18828296661377
Output for 5.5.31
0.19469904899597
Output for 5.5.30
0.19123697280884
Output for 5.5.29
0.180988073349
Output for 5.5.28
0.17602586746216
Output for 5.5.27
0.18785691261292
Output for 5.5.26
0.21561980247498
Output for 5.5.25
0.18574500083923
Output for 5.5.24
0.177414894104
Output for 5.5.23
0.16391611099243
Output for 5.5.22
0.1801290512085
Output for 5.5.21
0.18321895599365
Output for 5.5.20
0.18576693534851
Output for 5.5.19
0.18365693092346
Output for 5.5.18
0.19074296951294
Output for 5.5.16
0.18420076370239
Output for 5.5.15
0.1989209651947
Output for 5.5.14
0.18078804016113
Output for 5.5.13
0.16620516777039
Output for 5.5.12
0.18241500854492
Output for 5.5.11
0.20012307167053
Output for 5.5.10
0.18965005874634
Output for 5.5.9
0.17414498329163
Output for 5.5.8
0.19956612586975
Output for 5.5.7
0.17159581184387
Output for 5.5.6
0.15656590461731
Output for 5.5.5
0.19161891937256
Output for 5.5.4
0.17738699913025
Output for 5.5.3
0.18001294136047
Output for 5.5.2
0.20662808418274
Output for 5.5.1
0.18565893173218
Output for 5.5.0
0.17619609832764
Output for 5.4.45
0.17731904983521
Output for 5.4.44
0.20005202293396
Output for 5.4.43
0.17478513717651
Output for 5.4.42
0.17754888534546
Output for 5.4.41
0.16733980178833
Output for 5.4.40
0.27746081352234
Output for 5.4.39
0.18131589889526
Output for 5.4.38
0.1744589805603
Output for 5.4.37
0.19787883758545
Output for 5.4.36
0.18394589424133
Output for 5.4.35
0.18042778968811
Output for 5.4.34
0.20288896560669
Output for 5.4.32
0.15508699417114
Output for 5.4.31
0.17555284500122
Output for 5.4.30
0.19519710540771
Output for 5.4.29
0.19761085510254
Output for 5.4.28
0.200679063797
Output for 5.4.27
0.17417693138123
Output for 5.4.26
0.19880080223083
Output for 5.4.25
0.15219807624817
Output for 5.4.24
0.17280197143555
Output for 5.4.23
0.1780002117157
Output for 5.4.22
0.18076205253601
Output for 5.4.21
0.1913959980011
Output for 5.4.20
0.16922402381897
Output for 5.4.19
0.17393517494202
Output for 5.4.18
0.18218803405762
Output for 5.4.17
0.17849898338318
Output for 5.4.16
0.1968789100647
Output for 5.4.15
0.18391990661621
Output for 5.4.14
0.18122315406799
Output for 5.4.13
0.17645406723022
Output for 5.4.12
0.17667984962463
Output for 5.4.11
0.17646813392639
Output for 5.4.10
0.1766037940979
Output for 5.4.9
0.18588089942932
Output for 5.4.8
0.26941609382629
Output for 5.4.7
0.17685413360596
Output for 5.4.6
0.17063093185425
Output for 5.4.5
0.19916605949402
Output for 5.4.4
0.2046058177948
Output for 5.4.3
0.19762802124023
Output for 5.4.2
0.18143391609192
Output for 5.4.1
0.16492295265198
Output for 5.4.0
0.14575791358948
Output for 5.3.29
0.19640707969666
Output for 5.3.28
0.23641109466553
Output for 5.3.27
0.20399284362793
Output for 5.3.26
0.2189679145813
Output for 5.3.25
0.22346210479736
Output for 5.3.24
0.23744988441467
Output for 5.3.23
0.21890187263489
Output for 5.3.22
0.25385403633118
Output for 5.3.21
0.23304319381714
Output for 5.3.20
0.25181889533997
Output for 5.3.19
0.22124004364014
Output for 5.3.18
0.21108508110046
Output for 5.3.17
0.23432397842407
Output for 5.3.16
0.21111798286438
Output for 5.3.15
0.24029016494751
Output for 5.3.14
0.21475100517273
Output for 5.3.13
0.24193620681763
Output for 5.3.12
0.24706101417542
Output for 5.3.11
0.20761799812317
Output for 5.3.10
0.20860910415649
Output for 5.3.9
0.21883392333984
Output for 5.3.8
0.19169116020203
Output for 5.3.7
0.17829608917236
Output for 5.3.6
0.19118499755859
Output for 5.3.5
0.19160580635071
Output for 5.3.4
0.20934200286865
Output for 5.3.3
0.20020413398743
Output for 5.3.2
0.21764492988586
Output for 5.3.1
0.21728801727295
Output for 5.3.0
0.23346710205078
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.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.