3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( msgfmt_format_message('en_GB', 'Peter has {0, plural, =0{no cat} =1{a cat} other{# cats}}', [0]), msgfmt_format_message('en_GB', 'Peter has {0, plural, =0{no cat} =1{a cat} other{# cats #}}', [1, 2]), msgfmt_format_message('en_GB', 'Peter has {0, plural, =0{no cat} =1{a cat} other{# cats}}', [2]) );

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0060.00920.43
8.3.60.0090.01218.61
8.3.50.0130.00623.04
8.3.40.0080.00819.95
8.3.30.0150.00019.92
8.3.20.0080.00021.50
8.3.10.0040.00424.77
8.3.00.0050.00321.54
8.2.190.0100.01318.75
8.2.180.0130.00918.38
8.2.170.0090.00622.96
8.2.160.0120.00321.93
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0090.00021.32
8.2.120.0040.00426.35
8.2.110.0070.00321.20
8.2.100.0080.00319.59
8.2.90.0060.00319.97
8.2.80.0060.00319.78
8.2.70.0000.00819.79
8.2.60.0030.01019.66
8.2.50.0080.00019.25
8.2.40.0080.00021.88
8.2.30.0000.00822.13
8.2.20.0040.00419.35
8.2.10.0040.00419.86
8.2.00.0040.00419.79
8.1.280.0120.00925.92
8.1.270.0130.00621.76
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.01223.72
8.1.230.0040.00722.74
8.1.220.0080.00019.41
8.1.210.0060.00320.48
8.1.200.0030.00519.00
8.1.190.0140.00518.63
8.1.180.0040.00418.98
8.1.170.0000.00820.54
8.1.160.0050.00323.58
8.1.150.0040.00820.11
8.1.140.0060.00321.33
8.1.130.0060.00319.50
8.1.120.0040.00419.38
8.1.110.0000.00819.39
8.1.100.0040.00419.34
8.1.90.0070.00019.16
8.1.80.0000.00819.47
8.1.70.0040.00419.44
8.1.60.0080.00019.48
8.1.50.0000.00919.39
8.1.40.0030.00519.21
8.1.30.0060.00319.60
8.1.20.0050.00319.62
8.1.10.0030.00719.36
8.1.00.0080.00019.09
8.0.300.0000.00821.19
8.0.290.0030.00618.50
8.0.280.0040.00419.77
8.0.270.0000.00718.85
8.0.260.0000.00719.76
8.0.250.0000.00718.70
8.0.240.0080.00018.72
8.0.230.0040.00418.66
8.0.220.0070.00018.64
8.0.210.0000.00718.80
8.0.200.0030.00318.60
8.0.190.0050.00318.61
8.0.180.0070.00318.73
8.0.170.0090.00018.74
8.0.160.0040.00418.57
8.0.150.0180.00418.55
8.0.140.0040.00418.64
8.0.130.0000.00713.35
8.0.120.0040.00718.79
8.0.110.0040.00418.70
8.0.100.0040.00418.75
8.0.90.0080.00018.75
8.0.80.0130.00318.90
8.0.70.0040.00418.81
8.0.60.0000.00818.70
8.0.50.0000.00818.87
8.0.30.0070.01219.01
8.0.20.0110.00819.21
8.0.10.0000.00818.80
8.0.00.0120.00618.63
7.4.330.0000.00516.81
7.4.320.0000.00818.38
7.4.300.0040.00418.40
7.4.290.0000.00718.40
7.4.280.0000.01018.44
7.4.270.0000.00818.36
7.4.260.0060.00218.33
7.4.250.0030.00518.34
7.4.240.0050.00318.52
7.4.230.0000.00718.57
7.4.220.0120.00918.50
7.4.210.0070.00718.54
7.4.200.0040.00418.32
7.4.160.0140.00918.40
7.4.150.0070.01118.09
7.4.140.0130.00818.33
7.4.130.0060.01318.25
7.4.120.0140.00318.29
7.4.110.0120.01018.18
7.4.100.0090.01518.29
7.4.90.0130.00618.16
7.4.80.0120.01219.39
7.4.70.0140.00318.18
7.4.60.0070.01018.30
7.4.50.0100.00318.46
7.4.40.0190.00318.54
7.4.30.0200.00818.32
7.4.00.0070.01016.86
7.3.330.0050.00013.00
7.3.320.0050.00013.00
7.3.310.0000.00818.31
7.3.300.0040.00418.07
7.3.290.0080.01018.15
7.3.280.0070.01218.14
7.3.270.0140.01018.37
7.3.260.0110.01118.46
7.3.250.0150.00518.27
7.3.240.0120.00618.38
7.3.230.0060.01218.28
7.3.210.0110.00718.18
7.3.200.0060.01218.28
7.3.190.0100.01318.27
7.3.180.0100.00718.14
7.3.170.0070.01018.22
7.3.160.0070.01118.41
7.3.10.0000.01418.02
7.3.00.0180.00418.02
7.2.330.0060.01218.52
7.2.320.0060.01318.52
7.2.310.0180.00018.67
7.2.300.0070.01018.38
7.2.290.0060.01318.36
7.2.130.0000.01218.09
7.2.120.0060.00618.23
7.2.110.0000.01018.23
7.2.100.0030.01318.45
7.2.90.0120.00618.15
7.2.80.0000.01218.18
7.2.70.0030.01018.58
7.2.60.0030.01018.31
7.2.50.0060.00617.94
7.2.40.0030.01018.36
7.2.30.0000.01318.20
7.2.20.0120.00418.50
7.2.10.0070.00718.57
7.2.00.0160.00819.86
7.1.250.0140.00817.49
7.1.100.0080.00820.20
7.1.70.0060.00619.20
7.1.60.0220.00419.13
7.1.50.0090.01619.23
7.1.00.0030.07324.43
7.0.200.0070.00418.71
7.0.100.0100.05021.86
7.0.90.0130.08321.87
7.0.80.0370.08021.95
7.0.70.0300.04321.89
7.0.60.0170.08021.92
7.0.50.0030.06322.19
7.0.40.0070.05021.85
7.0.30.0030.05322.08
7.0.20.0070.05022.04
7.0.10.0030.04722.03
7.0.00.0070.05321.81
5.6.280.0000.03723.02
5.6.250.0100.07022.59
5.6.240.0030.08722.36
5.6.230.0070.08022.50
5.6.220.0130.05322.61
5.6.210.0030.05022.64
5.6.200.0170.04322.89
5.6.190.0070.08322.99
5.6.180.0070.06023.09
5.6.170.0100.05723.07
5.6.160.0030.07022.76
5.6.150.0100.03722.98
5.6.140.0030.07023.09
5.6.130.0030.04722.76
5.6.120.0170.05322.97
5.6.110.0000.05022.74
5.6.100.0130.04023.05
5.6.90.0100.08322.96
5.6.80.0070.06722.15
5.6.70.0100.07022.49
5.6.60.0100.08322.31
5.6.50.0030.07722.36
5.6.40.0030.06722.34
5.6.30.0100.07022.13
5.6.20.0000.06022.11
5.6.10.0130.07722.33
5.6.00.0100.04322.07
5.5.380.0030.05722.26
5.5.370.0030.07022.25
5.5.360.0100.07722.27
5.5.350.0030.07022.38
5.5.340.0100.05322.39
5.5.330.0070.04322.81
5.5.320.0030.04322.82
5.5.310.0100.08022.55
5.5.300.0070.05022.82
5.5.290.0000.06322.55
5.5.280.0100.06322.63
5.5.270.0030.04722.66
5.5.260.0070.08722.68
5.5.250.0130.06322.72
5.5.240.0070.07022.14
5.5.230.0130.08022.13
5.5.220.0100.04021.93
5.5.210.0070.07722.21
5.5.200.0100.03322.17
5.5.190.0100.05722.26
5.5.180.0030.07022.03
5.5.160.0070.07322.06
5.5.150.0030.04022.09
5.5.140.0170.08021.98
5.5.130.0200.04321.87
5.5.120.0100.06722.16
5.5.110.0200.05022.16
5.5.100.0070.04022.04
5.5.90.0030.08321.63
5.5.80.0130.06322.12
5.5.70.0070.04721.61
5.5.60.0070.07721.94
5.5.50.0100.07022.11
5.5.40.0070.05322.11
5.5.30.0100.07322.11
5.5.20.0100.05722.07
5.5.10.0070.04721.85
5.5.00.0100.06022.08

preferences:
41.42 ms | 401 KiB | 5 Q