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, "es_ES.UTF-8"); echo money_format('%=14#8.2i', 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.60.0170.00318.93
8.3.50.0090.01022.18
8.3.40.0040.01119.17
8.3.30.0070.00719.35
8.3.20.0080.00020.54
8.3.10.0030.00620.95
8.3.00.0080.00019.74
8.2.180.0160.00317.25
8.2.170.0200.00022.96
8.2.160.0070.00720.77
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00322.60
8.2.110.0080.00321.37
8.2.100.0250.00418.20
8.2.90.0040.00419.59
8.2.80.0080.00317.97
8.2.70.0070.00317.88
8.2.60.0040.00418.18
8.2.50.0030.00518.10
8.2.40.0040.00418.48
8.2.30.0030.00519.79
8.2.20.0000.00817.92
8.2.10.0040.00418.34
8.2.00.0000.00718.17
8.1.280.0100.00725.92
8.1.270.0080.00024.38
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.01022.48
8.1.230.0060.00618.08
8.1.220.0000.00818.13
8.1.210.0090.00018.77
8.1.200.0060.00317.73
8.1.190.0030.00517.61
8.1.180.0030.00518.10
8.1.170.0040.00418.94
8.1.160.0000.00722.39
8.1.150.0000.00719.20
8.1.140.0000.00717.67
8.1.130.0000.00818.18
8.1.120.0000.00717.66
8.1.110.0070.00017.80
8.1.100.0000.00717.66
8.1.90.0040.00417.65
8.1.80.0050.00317.79
8.1.70.0000.00717.72
8.1.60.0050.00317.93
8.1.50.0000.00817.94
8.1.40.0000.00717.78
8.1.30.0000.00717.98
8.1.20.0000.00918.00
8.1.10.0070.00018.01
8.1.00.0000.00817.72
8.0.300.0060.00318.77
8.0.290.0050.00317.13
8.0.280.0000.00818.67
8.0.270.0070.00017.56
8.0.260.0000.00617.63
8.0.250.0070.00017.45
8.0.240.0000.00817.30
8.0.230.0000.00717.36
8.0.220.0000.00817.32
8.0.210.0040.00417.13
8.0.200.0000.00617.46
8.0.190.0000.00717.45
8.0.180.0040.00417.38
8.0.170.0050.00317.33
8.0.160.0000.00717.30
8.0.150.0030.00317.29
8.0.140.0040.00417.31
8.0.130.0050.00013.82
8.0.120.0040.00417.10
8.0.110.0000.00817.25
8.0.100.0050.00317.39
8.0.90.0040.00416.98
8.0.80.0030.01317.38
8.0.70.0040.00417.31
8.0.60.0000.00817.06
8.0.50.0000.00717.11
8.0.30.0110.00817.48
8.0.20.0150.00517.41
8.0.10.0000.00717.38
8.0.00.0110.00717.23
7.4.330.0000.00515.40
7.4.320.0060.00016.73
7.4.300.0040.00416.94
7.4.290.0060.00316.72
7.4.280.0040.00416.82
7.4.270.0030.00516.96
7.4.260.0040.00317.05
7.4.250.0000.00716.80
7.4.240.0040.00316.90
7.4.230.0000.00717.05
7.4.220.0030.01516.93
7.4.210.0070.00716.95
7.4.200.0030.00316.85
7.4.160.0110.00816.82
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0090.00916.82
7.4.120.0120.00716.93
7.4.110.0100.00716.80
7.4.100.0000.01716.73
7.4.90.0130.00317.10
7.4.80.0060.01419.39
7.4.70.0160.00317.00
7.4.60.0060.01016.90
7.4.50.0060.00316.88
7.4.40.0090.00616.89
7.4.30.0030.01317.00
7.4.00.0060.00814.84
7.3.330.0030.00313.63
7.3.320.0000.00613.60
7.3.310.0060.00016.55
7.3.300.0000.00816.58
7.3.290.0090.00416.58
7.3.280.0070.01016.67
7.3.270.0100.00817.40
7.3.260.0090.01016.69
7.3.250.0080.01316.79
7.3.240.0030.01316.83
7.3.230.0160.00016.55
7.3.210.0080.01216.57
7.3.200.0270.01519.39
7.3.190.0070.01117.01
7.3.180.0040.01116.85
7.3.170.0100.01016.66
7.3.160.0130.01016.79
7.2.330.0140.00417.01
7.2.320.0170.00016.98
7.2.310.0120.00616.68
7.2.300.0060.00916.64
7.2.290.0150.00617.05
7.2.60.0060.00616.79
7.1.200.0030.01015.78
7.1.100.0000.01318.13
7.1.70.0070.00717.16
7.1.60.0070.01819.61
7.1.50.0170.00716.96
7.1.00.0030.07722.48
7.0.200.0030.00616.64
7.0.140.0000.07722.08
7.0.60.0070.03720.04
7.0.50.0030.05017.80
7.0.40.0200.07320.05
7.0.30.0330.06020.17
7.0.20.0370.04720.07
7.0.10.0100.08020.30
7.0.00.0000.08720.30
5.6.280.0000.07720.82
5.6.210.0200.07020.64
5.6.200.0130.07318.23
5.6.190.0000.05720.41
5.6.180.0270.07720.66
5.6.170.0300.07720.56
5.6.160.0030.04320.52
5.6.150.0070.06318.19
5.6.140.0070.03718.17
5.6.130.0070.06718.17
5.6.120.0070.08020.99
5.6.110.0070.07720.98
5.6.100.0070.07721.10
5.6.90.0130.08021.00
5.6.80.0130.07020.48
5.6.70.3830.03320.27
5.5.350.0200.04020.52
5.5.340.0030.08717.98
5.5.330.0130.05020.19
5.5.320.0300.06320.35
5.5.310.0270.04020.35
5.5.300.0070.07717.98
5.5.290.0130.07318.02
5.5.280.0170.06020.89
5.5.270.0030.06320.95
5.5.260.0130.06020.67
5.5.250.0070.07320.61
5.5.240.0300.07020.26
5.4.450.1230.03719.57
5.4.440.0230.05019.46
5.4.430.0200.05319.54
5.4.420.0430.05319.32
5.4.410.0270.04019.36
5.4.400.0470.04318.98
5.4.390.0400.04319.26
5.4.380.0400.08018.61
5.4.370.0300.05718.63
5.4.360.0370.05318.53
5.4.350.0500.05018.84
5.4.340.0300.05718.84
5.4.320.0080.03612.52
5.4.310.0020.04412.52
5.4.300.0050.03912.52
5.4.290.0060.03912.52
5.4.280.0060.03412.41
5.4.270.0050.03812.42
5.4.260.0070.03512.42
5.4.250.0080.03612.42
5.4.240.0080.04012.41
5.4.230.0070.03512.41
5.4.220.0040.03712.41
5.4.210.0040.03612.41
5.4.200.0060.03812.41
5.4.190.0080.03312.41
5.4.180.0050.04312.40
5.4.170.0090.05112.42
5.4.160.0080.03512.41
5.4.150.0070.03412.41
5.4.140.0100.03212.09
5.4.130.0030.03812.08
5.4.120.0060.03412.04
5.4.110.0090.03612.04
5.4.100.0090.03312.04
5.4.90.0050.04512.04
5.4.80.0070.04312.03
5.4.70.0060.03412.04
5.4.60.0060.03512.03
5.4.50.0070.03612.03
5.4.40.0020.03812.01
5.4.30.0080.03712.01
5.4.20.0030.04112.02
5.4.10.0060.03412.02
5.4.00.0080.03311.51
5.3.290.0050.04012.80
5.3.280.0070.03612.71
5.3.270.0050.04012.72
5.3.260.0050.03912.72
5.3.250.0070.04112.72
5.3.240.0080.03412.72
5.3.230.0070.04112.71
5.3.220.0040.03812.68
5.3.210.0100.03512.68
5.3.200.0050.03712.68
5.3.190.0080.04212.68
5.3.180.0080.03712.68
5.3.170.0050.03712.67
5.3.160.0030.03912.68
5.3.150.0080.03612.67
5.3.140.0050.03712.66
5.3.130.0050.04012.65
5.3.120.0070.03812.66
5.3.110.0090.03612.65
5.3.100.0110.03812.13
5.3.90.0080.03412.12
5.3.80.0070.04012.12
5.3.70.0050.03612.12
5.3.60.0050.03612.10
5.3.50.0070.03812.05
5.3.40.0080.03812.05
5.3.30.0090.03012.01
5.3.20.0090.03711.79
5.3.10.0070.03911.75
5.3.00.0050.04211.74
5.2.170.0070.0319.25
5.2.160.0070.0289.24
5.2.150.0100.0359.24
5.2.140.0030.0329.24
5.2.130.0050.0299.20
5.2.120.0070.0269.20
5.2.110.0040.0379.21
5.2.100.0110.0359.20
5.2.90.0060.0279.20
5.2.80.0020.0339.20
5.2.70.0060.0309.20
5.2.60.0040.0319.15
5.2.50.0060.0279.11
5.2.40.0060.0269.09
5.2.30.0070.0309.07
5.2.20.0060.0349.06
5.2.10.0030.0288.98
5.2.00.0060.0318.84
5.1.60.0030.0248.13
5.1.50.0030.0308.13
5.1.40.0060.0278.10
5.1.30.0000.0308.46
5.1.20.0070.0258.47
5.1.10.0040.0268.20
5.1.00.0050.0248.21
5.0.50.0050.0196.68
5.0.40.0040.0196.54
5.0.30.0030.0316.35
5.0.20.0020.0206.34
5.0.10.0040.0186.32
5.0.00.0040.0316.31
4.4.90.0030.0154.78
4.4.80.0030.0144.75
4.4.70.0040.0144.76
4.4.60.0020.0154.75
4.4.50.0040.0134.77
4.4.40.0030.0244.70
4.4.30.0040.0164.76
4.4.20.0020.0164.85
4.4.10.0010.0214.85
4.4.00.0030.0334.76
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0020.0154.64
4.3.80.0010.0264.61
4.3.70.0040.0134.63
4.3.60.0070.0104.63
4.3.50.0050.0134.63
4.3.40.0060.0204.56
4.3.30.0020.0153.36
4.3.20.0030.0153.34
4.3.10.0020.0163.30
4.3.00.0030.02016.72

preferences:
44.19 ms | 401 KiB | 5 Q