3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = array( 'decimal_point' => '.', 'thousands_sep' => '', 'int_curr_symbol' => 'EUR', 'currency_symbol' => '€', 'mon_decimal_point' => ',', 'mon_thousands_sep' => '.', 'positive_sign' => '', 'negative_sign' => '-', 'int_frac_digits' => 2, 'frac_digits' => 2, 'p_cs_precedes' => 0, 'p_sep_by_space' => 1, 'p_sign_posn' => 1, 'n_sign_posn' => 1, 'grouping' => array(), 'mon_grouping' => array(0 => 3, 1 => 3) ); setlocale(LC_MONETARY, "fr_FR.UTF-8"); echo money_format('%.2n', 1234.563665) . "\n";

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.0190.00416.86
8.3.60.0070.01018.93
8.3.50.0130.00822.05
8.3.40.0070.01419.19
8.3.30.0100.00319.47
8.3.20.0050.00320.66
8.3.10.0060.00321.03
8.3.00.0050.00319.63
8.2.190.0040.01116.92
8.2.180.0110.00416.98
8.2.170.0100.01022.96
8.2.160.0070.00720.90
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00422.48
8.2.110.0060.00320.76
8.2.100.0100.00320.01
8.2.90.0000.00818.41
8.2.80.0000.00817.97
8.2.70.0060.00617.88
8.2.60.0040.00418.18
8.2.50.0000.00818.07
8.2.40.0000.00818.44
8.2.30.0000.00719.76
8.2.20.0040.00418.05
8.2.10.0050.00318.47
8.2.00.0000.00718.11
8.1.280.0130.00325.92
8.1.270.0060.00324.26
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00624.17
8.1.230.0060.00621.34
8.1.220.0060.00318.03
8.1.210.0110.00019.11
8.1.200.0030.00617.73
8.1.190.0030.00617.50
8.1.180.0060.00318.10
8.1.170.0080.00018.82
8.1.160.0040.00422.29
8.1.150.0050.00219.21
8.1.140.0050.00317.75
8.1.130.0000.00718.07
8.1.120.0040.00417.68
8.1.110.0040.00417.71
8.1.100.0040.00417.80
8.1.90.0080.00017.75
8.1.80.0040.00417.77
8.1.70.0040.00417.68
8.1.60.0030.00617.89
8.1.50.0000.00817.88
8.1.40.0000.00817.95
8.1.30.0030.00517.95
8.1.20.0080.00018.02
8.1.10.0000.00818.03
8.1.00.0000.00717.77
8.0.300.0000.00820.48
8.0.290.0040.00417.25
8.0.280.0030.00318.69
8.0.270.0040.00417.18
8.0.260.0030.00317.50
8.0.250.0040.00417.41
8.0.240.0070.00017.25
8.0.230.0030.00317.26
8.0.220.0000.00717.28
8.0.210.0040.00317.01
8.0.200.0040.00417.38
8.0.190.0030.00317.33
8.0.180.0040.00417.21
8.0.170.0030.00517.33
8.0.160.0040.00417.23
8.0.150.0040.00417.29
8.0.140.0080.00017.09
8.0.130.0000.00613.78
8.0.120.0030.00617.29
8.0.110.0090.00017.29
8.0.100.0040.00417.27
8.0.90.0000.00717.25
8.0.80.0100.00717.31
8.0.70.0040.00417.38
8.0.60.0000.00717.24
8.0.50.0030.00517.36
8.0.30.0120.00817.41
8.0.20.0140.00817.51
8.0.10.0070.00017.29
8.0.00.0100.00817.13
7.4.330.0000.00515.00
7.4.320.0040.00416.86
7.4.300.0000.00716.77
7.4.290.0000.00716.91
7.4.280.0070.00016.93
7.4.270.0000.00716.94
7.4.260.0000.00816.68
7.4.250.0040.00416.81
7.4.240.0030.00416.91
7.4.230.0030.00317.03
7.4.220.0100.00716.98
7.4.210.0100.01017.09
7.4.200.0000.00716.93
7.4.160.0030.01217.03
7.4.150.0090.01517.40
7.4.140.0130.01017.86
7.4.130.0120.00616.84
7.4.120.0080.01116.97
7.4.110.0130.00316.87
7.4.100.0100.00717.04
7.4.90.0030.01416.73
7.4.80.0000.01719.39
7.4.70.0120.00617.07
7.4.60.0120.00416.74
7.4.50.0040.00416.75
7.4.40.0100.00616.80
7.4.30.0030.01916.83
7.4.00.0070.01014.66
7.3.330.0030.00313.46
7.3.320.0030.00313.58
7.3.310.0030.00316.60
7.3.300.0070.00016.64
7.3.290.0090.00616.65
7.3.280.0060.01016.62
7.3.270.0060.01217.40
7.3.260.0120.01216.81
7.3.250.0150.00216.93
7.3.240.0060.01016.70
7.3.230.0070.01016.64
7.3.210.0120.00616.91
7.3.200.0060.01219.39
7.3.190.0090.00816.99
7.3.180.0120.00316.52
7.3.170.0170.00316.81
7.3.160.0060.00916.67
7.3.10.0100.00616.34
7.3.00.0060.00616.55
7.2.330.0040.01416.72
7.2.320.0120.00916.89
7.2.310.0100.01317.08
7.2.300.0040.01416.99
7.2.290.0070.01617.01
7.2.130.0070.00716.94
7.2.120.0040.00816.46
7.2.110.0040.00816.84
7.2.100.0060.00916.99
7.2.90.0060.00317.01
7.2.80.0070.00716.82
7.2.70.0070.01016.81
7.2.60.0020.01216.62
7.2.50.0030.00616.85
7.2.40.0090.00616.77
7.2.30.0080.00016.85
7.2.20.0000.01516.84
7.2.10.0120.00316.89
7.2.00.0000.00916.61
7.1.250.0070.00415.66
7.1.200.0000.01215.66
7.1.100.0040.00418.12
7.1.70.0000.00716.94
7.1.60.0060.01919.61
7.1.50.0170.00316.98
7.1.00.0030.07722.43
7.0.200.0090.00016.67
7.0.140.0070.06722.02
7.0.60.0000.09020.00
7.0.50.0070.04017.82
7.0.40.0070.07020.20
7.0.30.0270.08720.21
7.0.20.0170.04020.06
7.0.10.0130.06720.13
7.0.00.0030.04020.29
5.6.280.0030.07321.02
5.6.210.0130.07020.61
5.6.200.0030.04318.18
5.6.190.0100.05720.50
5.6.180.0500.07320.36
5.6.170.0300.07720.52
5.6.160.0030.07020.45
5.6.150.0130.06018.22
5.6.140.0130.06718.17
5.6.130.0070.04718.14
5.6.120.0170.07720.93
5.6.110.0170.04720.99
5.6.100.0030.08321.10
5.6.90.0100.06720.97
5.6.80.0100.07720.28
5.5.350.0070.06720.38
5.5.340.0070.07317.95
5.5.330.0070.08020.41
5.5.320.0430.07020.20
5.5.310.0170.03720.43
5.5.300.0070.04017.97
5.5.290.0000.09017.93
5.5.280.0130.04720.98
5.5.270.0070.08720.78
5.5.260.0030.08320.76
5.5.250.0030.07720.66
5.5.240.0100.08020.36
5.4.450.0530.04319.20
5.4.440.0170.05319.49
5.4.430.0370.04719.41
5.4.420.0700.04719.32
5.4.410.1370.05019.20
5.4.400.0300.04018.99
5.4.390.0230.04719.13
5.4.380.0270.05718.79
5.4.370.0400.05018.72
5.4.360.0530.05718.56
5.4.350.0300.06318.47
5.4.340.0300.06018.50
5.4.320.0050.03712.52
5.4.310.0060.03712.52
5.4.300.0040.03812.52
5.4.290.0100.03812.52
5.4.280.0050.03712.41
5.4.270.0050.03712.41
5.4.260.0070.03512.41
5.4.250.0050.03712.41
5.4.240.0050.03712.41
5.4.230.0050.04012.41
5.4.220.0070.03612.41
5.4.210.0080.03512.41
5.4.200.0070.03712.40
5.4.190.0050.03612.40
5.4.180.0070.03512.40
5.4.170.0070.03412.41
5.4.160.0030.03712.41
5.4.150.0080.03412.41
5.4.140.0060.03512.09
5.4.130.0090.03812.07
5.4.120.0070.03312.04
5.4.110.0040.03712.03
5.4.100.0050.03512.03
5.4.90.0040.03812.03
5.4.80.0030.03912.03
5.4.70.0060.03512.02
5.4.60.0060.03712.02
5.4.50.0070.03412.02
5.4.40.0080.03112.01
5.4.30.0080.03312.01
5.4.20.0100.03012.01
5.4.10.0030.03712.01
5.4.00.0050.03611.50
5.3.290.0070.03712.80
5.3.280.0120.04612.71
5.3.270.0070.05512.72
5.3.260.0100.05312.72
5.3.250.0040.03912.71
5.3.240.0050.04212.72
5.3.230.0030.04012.71
5.3.220.0040.03812.68
5.3.210.0080.04312.68
5.3.200.0050.03712.68
5.3.190.0080.03512.67
5.3.180.0040.03712.67
5.3.170.0070.03412.67
5.3.160.0010.04012.67
5.3.150.0080.03812.67
5.3.140.0090.03212.66
5.3.130.0070.03712.66
5.3.120.0070.03912.66
5.3.110.0070.03712.66
5.3.100.0050.03712.13
5.3.90.0050.03612.12
5.3.80.0080.03312.12
5.3.70.0090.03312.12
5.3.60.0060.03612.10
5.3.50.0070.03412.05
5.3.40.0050.03712.05
5.3.30.0070.03412.01
5.3.20.0060.04011.79
5.3.10.0100.03911.75
5.3.00.0100.03811.74
5.2.170.0060.0319.25
5.2.160.0070.0309.24
5.2.150.0090.0349.25
5.2.140.0060.0389.24
5.2.130.0040.0339.20
5.2.120.0030.0299.20
5.2.110.0040.0299.21
5.2.100.0040.0289.20
5.2.90.0040.0319.20
5.2.80.0030.0319.20
5.2.70.0040.0309.20
5.2.60.0090.0329.15
5.2.50.0020.0329.12
5.2.40.0070.0369.10
5.2.30.0020.0349.07
5.2.20.0070.0279.06
5.2.10.0060.0328.98
5.2.00.0060.0328.84
5.1.60.0050.0228.13
5.1.50.0070.0278.13
5.1.40.0020.0268.11
5.1.30.0020.0278.46
5.1.20.0010.0298.47
5.1.10.0030.0288.21
5.1.00.0070.0228.20
5.0.50.0050.0186.67
5.0.40.0080.0186.54
5.0.30.0030.0316.35
5.0.20.0010.0226.34
5.0.10.0070.0216.32
5.0.00.0050.0336.31
4.4.90.0030.0164.78
4.4.80.0030.0154.75
4.4.70.0000.0264.76
4.4.60.0010.0234.76
4.4.50.0060.0234.77
4.4.40.0040.0264.71
4.4.30.0060.0164.76
4.4.20.0020.0224.84
4.4.10.0040.0164.84
4.4.00.0040.0274.76
4.3.110.0070.0114.67
4.3.100.0030.0154.67
4.3.90.0060.0224.63
4.3.80.0020.0264.61
4.3.70.0020.0154.63
4.3.60.0050.0174.63
4.3.50.0010.0184.63
4.3.40.0030.0254.55
4.3.30.0020.0163.36
4.3.20.0010.0173.34
4.3.10.0020.0163.30
4.3.00.0000.02016.72

preferences:
39.03 ms | 401 KiB | 5 Q