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.0120.00418.74
8.3.50.0060.01020.41
8.3.40.0040.01119.91
8.3.30.0150.00019.92
8.3.20.0000.00821.54
8.3.10.0030.00625.03
8.3.00.0080.00021.60
8.2.180.0160.00718.88
8.2.170.0120.00622.96
8.2.160.0070.01022.02
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00321.03
8.2.120.0060.00326.35
8.2.110.0030.00721.13
8.2.100.0040.00819.53
8.2.90.0000.00919.84
8.2.80.0050.00319.66
8.2.70.0040.00419.55
8.2.60.0140.00319.53
8.2.50.0090.00019.25
8.2.40.0080.00021.92
8.2.30.0040.00421.94
8.2.20.0090.00319.43
8.2.10.0000.00819.80
8.2.00.0030.00519.92
8.1.280.0280.00725.92
8.1.270.0130.00721.75
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00723.90
8.1.230.0070.00422.85
8.1.220.0030.00619.64
8.1.210.0050.00320.57
8.1.200.0000.00818.97
8.1.190.0060.00619.23
8.1.180.0050.00319.10
8.1.170.0080.00020.31
8.1.160.0080.00023.58
8.1.150.0000.01020.11
8.1.140.0130.00321.38
8.1.130.0100.00019.46
8.1.120.0040.00419.35
8.1.110.0030.00919.36
8.1.100.0040.00419.41
8.1.90.0000.00819.43
8.1.80.0070.00719.00
8.1.70.0000.00719.42
8.1.60.0140.00319.54
8.1.50.0040.00419.47
8.1.40.0140.00319.25
8.1.30.0030.00819.46
8.1.20.0030.00619.65
8.1.10.0070.00319.46
8.1.00.0000.00819.37
8.0.300.0080.00021.29
8.0.290.0030.00618.23
8.0.280.0040.00419.63
8.0.270.0060.00619.00
8.0.260.0030.00319.01
8.0.250.0000.00718.89
8.0.240.0030.00318.73
8.0.230.0000.00918.73
8.0.220.0070.00018.64
8.0.210.0040.00418.84
8.0.200.0030.00318.60
8.0.190.0000.00918.72
8.0.180.0090.00318.77
8.0.170.0040.00418.74
8.0.160.0030.00518.57
8.0.150.0040.00418.64
8.0.140.0180.00018.64
8.0.130.0080.00013.29
8.0.120.0040.00718.86
8.0.110.0030.00618.88
8.0.100.0000.00818.85
8.0.90.0080.00018.71
8.0.80.0110.00618.62
8.0.70.0040.00418.75
8.0.60.0080.00018.74
8.0.50.0000.00818.91
8.0.30.0120.01119.08
8.0.20.0100.01019.01
8.0.10.0030.00518.91
8.0.00.0130.01118.66
7.4.330.0000.00516.66
7.4.320.0000.00818.42
7.4.300.0030.00318.55
7.4.290.0030.00318.51
7.4.280.0090.01318.44
7.4.270.0050.00518.32
7.4.260.0040.00418.36
7.4.250.0030.00518.39
7.4.240.0000.00718.41
7.4.230.0000.00718.48
7.4.220.0280.00418.57
7.4.210.0080.00818.55
7.4.200.0030.00518.51
7.4.160.0120.00818.20
7.4.150.0110.00718.40
7.4.140.0100.01318.38
7.4.130.0130.01218.39
7.4.120.0120.00618.13
7.4.110.0070.01318.28
7.4.100.0090.01518.55
7.4.90.0090.01018.34
7.4.80.0290.00419.39
7.4.70.0070.01118.23
7.4.60.0030.01318.10
7.4.50.0100.00418.13
7.4.40.0040.01918.31
7.4.30.0200.00918.41
7.4.00.0070.01016.75
7.3.330.0000.00513.17
7.3.320.0000.00513.13
7.3.310.0080.00017.93
7.3.300.0030.00318.07
7.3.290.0080.00818.23
7.3.280.0090.00918.15
7.3.270.0300.00018.23
7.3.260.0190.00618.32
7.3.250.0090.01018.20
7.3.240.0110.01118.27
7.3.230.0000.01918.11
7.3.210.0110.00918.20
7.3.200.0140.00618.29
7.3.190.0090.01218.40
7.3.180.0140.01118.16
7.3.170.0100.00718.20
7.3.160.0110.00518.46
7.2.330.0090.01418.38
7.2.320.0130.01018.34
7.2.310.0170.00018.36
7.2.300.0120.00818.00
7.2.290.0090.00918.27
7.2.80.0070.01118.30
7.2.60.0160.00618.57
7.2.00.0130.00621.29
7.1.200.0110.00417.66
7.1.100.0110.00720.25
7.1.70.0080.00419.14
7.1.60.0150.00919.46
7.1.50.0070.01719.11
7.1.00.0070.06324.60
7.0.200.0070.00418.82
7.0.60.0000.04321.71
7.0.50.0270.06717.91
7.0.40.0070.08721.93
7.0.30.0230.04321.91
7.0.20.0270.05321.92
7.0.10.0030.04321.73
7.0.00.0100.05721.92
5.6.280.0070.03723.04
5.6.210.0100.06022.54
5.6.200.0100.03318.23
5.6.190.0200.06722.30
5.6.180.0200.04022.29
5.6.170.0230.07322.30
5.6.160.0100.03722.28
5.6.150.0070.04318.11
5.6.140.0070.08018.17
5.6.130.0200.06318.18
5.6.120.0070.08022.70
5.6.110.0130.05722.69
5.6.100.0070.03722.75
5.6.90.0130.07322.77
5.6.80.0100.07022.35
5.5.350.0130.07722.42
5.5.340.0200.06717.98
5.5.330.0000.05322.09
5.5.320.0570.07022.14
5.5.310.0230.07722.17
5.5.300.0000.04018.01
5.5.290.0030.07017.95
5.5.280.0100.04322.65
5.5.270.0100.07022.64
5.5.260.0170.08022.82
5.5.250.0100.06022.23
5.5.240.0270.05322.12

preferences:
56.8 ms | 401 KiB | 5 Q