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]}', [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.60.0080.01118.63
8.3.50.0310.00323.12
8.3.40.0040.01219.87
8.3.30.0150.00019.88
8.3.20.0040.00421.71
8.3.10.0000.01124.99
8.3.00.0040.00421.41
8.2.180.0160.00618.46
8.2.170.0040.01122.96
8.2.160.0120.00321.60
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0090.00021.08
8.2.120.0080.00026.35
8.2.110.0040.00721.95
8.2.100.0040.00819.43
8.2.90.0120.00020.33
8.2.80.0080.00419.38
8.2.70.0000.00819.13
8.2.60.0050.00319.66
8.2.50.0110.00319.38
8.2.40.0040.00923.47
8.2.30.0040.00422.07
8.2.20.0040.00419.43
8.2.10.0030.00519.92
8.2.00.0000.00819.87
8.1.280.0110.01125.92
8.1.270.0220.00421.51
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00624.03
8.1.230.0070.00719.54
8.1.220.0050.00319.30
8.1.210.0000.00819.10
8.1.200.0030.00619.22
8.1.190.0050.00319.45
8.1.180.0030.00619.15
8.1.170.0110.00520.31
8.1.160.0000.00822.04
8.1.150.0000.01220.21
8.1.140.0030.00621.20
8.1.130.0040.00419.38
8.1.120.0040.00419.33
8.1.110.0040.00419.22
8.1.100.0040.00419.41
8.1.90.0030.00519.38
8.1.80.0000.00819.45
8.1.70.0000.00719.38
8.1.60.0060.00319.42
8.1.50.0000.00919.28
8.1.40.0080.00019.39
8.1.30.0060.00319.61
8.1.20.0000.00919.41
8.1.10.0040.00719.45
8.1.00.0080.00019.37
8.0.300.0080.00018.85
8.0.290.0000.00818.38
8.0.280.0050.00219.68
8.0.270.0040.00418.90
8.0.260.0030.00319.00
8.0.250.0040.00418.75
8.0.240.0000.00718.76
8.0.230.0080.00018.77
8.0.220.0040.00418.63
8.0.210.0030.00618.61
8.0.200.0030.00318.73
8.0.190.0000.00918.70
8.0.180.0030.00618.72
8.0.170.0050.00318.68
8.0.160.0000.00818.52
8.0.150.0090.00018.52
8.0.140.0000.00818.58
8.0.130.0050.00313.36
8.0.120.0050.00518.72
8.0.110.0040.00418.77
8.0.100.0000.00818.88
8.0.90.0000.00818.71
8.0.80.0040.01218.84
8.0.70.0000.00818.55
8.0.60.0060.00318.87
8.0.50.0000.00818.75
8.0.30.0150.00518.86
8.0.20.0120.00918.85
8.0.10.0030.00518.93
8.0.00.0140.00818.68
7.4.330.0050.00016.84
7.4.320.0040.00418.46
7.4.300.0060.00018.34
7.4.290.0000.00718.49
7.4.280.0060.00318.46
7.4.270.0000.00818.33
7.4.260.0030.00618.49
7.4.250.0080.00018.30
7.4.240.0060.00218.45
7.4.230.0000.00718.39
7.4.220.0060.01318.46
7.4.210.0040.01218.54
7.4.200.0040.00418.40
7.4.160.0030.01318.21
7.4.150.0080.01117.87
7.4.140.0130.01018.37
7.4.130.0070.01218.34
7.4.120.0090.00918.28
7.4.110.0030.01518.52
7.4.100.0140.00418.29
7.4.90.0070.01018.39
7.4.80.0120.00619.39
7.4.70.0090.00918.46
7.4.60.0090.00918.15
7.4.50.0090.00918.31
7.4.40.0100.01018.57
7.4.30.0030.01518.36
7.4.10.0060.01216.61
7.4.00.0070.01216.80
7.3.330.0020.00213.17
7.3.320.0000.00513.00
7.3.310.0040.00417.98
7.3.300.0000.00718.20
7.3.290.0090.01118.18
7.3.280.0090.00818.06
7.3.270.0070.01018.50
7.3.260.0150.00718.18
7.3.250.0070.01118.28
7.3.240.0100.01018.15
7.3.230.0120.00918.27
7.3.210.0060.01218.11
7.3.200.0200.00418.16
7.3.190.0070.01018.05
7.3.180.0140.00418.06
7.3.170.0140.00318.02
7.3.160.0080.00818.12
7.3.130.0100.00716.78
7.3.120.0070.01016.50
7.3.110.0080.01116.82
7.3.100.0000.01416.62
7.3.90.0030.01216.75
7.3.80.0060.00616.67
7.3.70.0090.00616.78
7.3.60.0110.00416.85
7.3.50.0100.00616.73
7.3.40.0060.00616.82
7.3.30.0030.01316.74
7.3.20.0030.01418.37
7.3.10.0100.00618.16
7.3.00.0090.00818.11
7.2.330.0100.00718.31
7.2.320.0060.02018.27
7.2.310.0100.01018.72
7.2.300.0060.01218.62
7.2.290.0070.01018.34
7.2.260.0090.00916.62
7.2.250.0090.00916.66
7.2.240.0070.00716.66
7.2.230.0080.00816.62
7.2.220.0100.00016.52
7.2.210.0060.01016.47
7.2.200.0000.01316.85
7.2.190.0060.00616.58
7.2.180.0100.00616.93
7.2.170.0030.01016.65
7.2.160.0100.00716.55
7.2.150.0000.01018.53
7.2.140.0070.00318.48
7.2.130.0080.00918.02
7.2.120.0130.00718.22
7.2.110.0070.01018.13
7.2.100.0180.00818.44
7.2.90.0120.00418.42
7.2.80.0100.00918.29
7.2.70.0210.00718.33
7.2.60.0070.00718.43
7.2.50.0080.00918.42
7.2.40.0140.00618.28
7.2.30.0070.01018.25
7.2.20.0090.00918.32
7.2.10.0070.01018.33
7.2.00.0090.00719.27
7.1.330.0040.01217.52
7.1.320.0110.00417.58
7.1.310.0030.01017.59
7.1.300.0070.00717.56
7.1.290.0100.00017.40
7.1.280.0070.00717.37
7.1.270.0030.01317.50
7.1.260.0030.00617.77
7.1.250.0140.00917.44
7.1.240.0060.00617.67
7.1.230.0030.01217.43
7.1.220.0030.01317.67
7.1.210.0030.00717.76
7.1.200.0130.00317.65
7.1.190.0130.00017.71
7.1.180.0040.01117.44
7.1.170.0030.01017.30
7.1.160.0040.01117.53
7.1.150.0060.00617.71
7.1.140.0090.00617.64
7.1.130.0040.01117.67
7.1.120.0090.00617.41
7.1.110.0070.00717.82
7.1.100.0080.00319.07
7.1.90.0040.00917.70
7.1.80.0030.01017.44
7.1.70.0050.00918.41
7.1.60.0150.00618.30
7.1.50.0080.01118.33
7.1.40.0100.00717.38
7.1.30.0030.01317.52
7.1.20.0040.00817.70
7.1.10.0030.00617.55
7.1.00.0080.03821.11
7.0.330.0030.00617.45
7.0.320.0040.00817.32
7.0.310.0110.00417.24
7.0.300.0060.00617.40
7.0.290.0080.00317.38
7.0.280.0030.00717.32
7.0.270.0000.00817.27
7.0.260.0070.00717.08
7.0.250.0040.00917.05
7.0.240.0030.01017.11
7.0.230.0040.01117.27
7.0.220.0000.01217.02
7.0.210.0040.01117.17
7.0.200.0100.00518.07
7.0.190.0030.01017.42
7.0.180.0130.00017.58
7.0.170.0000.00817.52
7.0.160.0000.01517.46
7.0.150.0070.00717.29
7.0.140.0080.00417.48
7.0.130.0100.00317.02
7.0.120.0070.00717.08
7.0.110.0030.01017.10
7.0.100.0000.01217.03
7.0.90.0030.01017.28
7.0.80.0080.00617.18
7.0.70.0070.01017.26
7.0.60.0070.04519.57
7.0.50.0030.04717.52
7.0.40.0090.02218.61
7.0.30.0160.04518.43
7.0.20.0140.04518.49
7.0.10.0020.02518.63
7.0.00.0080.02018.38
5.6.400.0070.00316.13
5.6.390.0060.00516.14
5.6.380.0100.01016.21
5.6.370.0030.00616.03
5.6.360.0000.01216.24
5.6.350.0000.01516.11
5.6.340.0100.00716.33
5.6.330.0090.00316.04
5.6.320.0060.00316.23
5.6.310.0090.00316.01
5.6.300.0070.01015.89
5.6.290.0060.00316.42
5.6.280.0090.00316.01
5.6.270.0070.00716.24
5.6.260.0030.00916.30
5.6.250.0110.00715.84
5.6.240.0100.00316.33
5.6.230.0060.00616.21
5.6.220.0060.00815.88
5.6.210.0050.03219.32
5.6.200.0070.02117.18
5.6.190.0030.03319.08
5.6.180.0150.03319.05
5.6.170.0190.04219.35
5.6.160.0040.03319.01
5.6.150.0070.04517.12
5.6.140.0060.03417.08
5.6.130.0030.04217.17
5.6.120.0050.03819.43
5.6.110.0110.04419.49
5.6.100.0070.03019.47
5.6.90.0070.04419.43
5.6.80.0100.03819.18
5.6.70.0030.01015.85
5.6.60.0000.01215.89
5.6.50.0000.01415.88
5.6.40.0030.01015.93
5.6.30.0060.00616.10
5.6.20.0070.00716.00
5.6.10.0030.01116.07
5.6.00.0080.00416.07
5.5.380.0030.00716.00
5.5.370.0060.00616.20
5.5.360.0080.00316.08
5.5.350.0130.03919.19
5.5.340.0100.04216.91
5.5.330.0030.02919.04
5.5.320.0320.04019.03
5.5.310.0130.02119.09
5.5.300.0050.04417.00
5.5.290.0000.03917.02
5.5.280.0060.04619.32
5.5.270.0070.02919.46
5.5.260.0030.04719.46
5.5.250.0080.04519.04
5.5.240.0120.04219.15
5.5.230.0070.00716.02
5.5.220.0040.01115.89
5.5.210.0060.00916.12
5.5.200.0060.00615.80
5.5.190.0060.00615.86
5.5.180.0000.01615.81
5.5.170.0100.00715.98
5.5.160.0090.00016.10
5.5.150.0060.00315.86
5.5.140.0150.00016.25
5.5.130.0040.01116.14
5.5.120.0070.00716.21
5.5.110.0030.00716.11
5.5.100.0060.00916.12
5.5.90.0100.00316.09
5.5.80.0120.00615.99
5.5.70.0170.00015.80
5.5.60.0110.00716.09
5.5.50.0030.01415.76
5.5.40.0030.01316.08
5.5.30.0140.00316.17
5.5.20.0030.01316.13
5.5.10.0070.00716.07
5.5.00.0060.00916.10

preferences:
52.04 ms | 401 KiB | 5 Q