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($locale, "es_ES.UTF-8"); echo money_format('%=*^-14#8.2i', 1234.56) . "\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.0000.01518.43
8.3.50.0090.00922.09
8.3.40.0080.01218.75
8.3.30.0100.00319.19
8.3.20.0000.00720.38
8.3.10.0050.00320.48
8.3.00.0000.00819.50
8.2.180.0120.00616.50
8.2.170.0100.00322.96
8.2.160.0070.00718.79
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00822.18
8.2.110.0090.00019.02
8.2.100.0070.00417.72
8.2.90.0000.00817.77
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0050.00317.91
8.2.50.0000.00918.10
8.2.40.0000.00719.22
8.2.30.0000.00820.60
8.2.20.0040.00417.57
8.2.10.0050.00318.09
8.2.00.0040.00417.73
8.1.280.0100.01025.92
8.1.270.0040.00423.67
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00019.01
8.1.230.0000.01020.86
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.22
8.1.190.0080.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.73
8.1.160.0000.00718.72
8.1.150.0070.00018.82
8.1.140.0070.00017.35
8.1.130.0070.00017.39
8.1.120.0030.00317.28
8.1.110.0050.00217.41
8.1.100.0030.00317.39
8.1.90.0000.00717.31
8.1.80.0000.00717.34
8.1.70.0030.00317.31
8.1.60.0050.00317.50
8.1.50.0000.00817.40
8.1.40.0040.00417.54
8.1.30.0040.00417.54
8.1.20.0050.00217.65
8.1.10.0040.00417.47
8.1.00.0040.00417.48
8.0.300.0050.00519.91
8.0.290.0000.00916.88
8.0.280.0090.00018.29
8.0.270.0030.00317.19
8.0.260.0080.00016.92
8.0.250.0000.00716.85
8.0.240.0070.00016.97
8.0.230.0030.00316.98
8.0.220.0040.00416.88
8.0.210.0030.00316.91
8.0.200.0000.00716.85
8.0.190.0000.00716.95
8.0.180.0060.00316.82
8.0.170.0040.00416.80
8.0.160.0000.00716.94
8.0.150.0030.00416.84
8.0.140.0060.00316.90
8.0.130.0000.00513.31
8.0.120.0000.00816.89
8.0.110.0000.00716.76
8.0.100.0000.00716.94
8.0.90.0000.00716.75
8.0.80.0070.00716.89
8.0.70.0030.00516.95
8.0.60.0000.00816.71
8.0.50.0000.00816.89
8.0.30.0100.01217.06
8.0.20.0150.00617.40
8.0.10.0030.00516.97
8.0.00.0090.01016.61
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0000.00616.52
7.4.290.0000.00716.44
7.4.280.0000.00816.43
7.4.270.0000.00616.64
7.4.260.0030.00316.60
7.4.250.0040.00416.47
7.4.240.0030.00416.44
7.4.230.0030.00316.56
7.4.220.0070.01016.60
7.4.210.0040.01116.44
7.4.200.0000.00716.39
7.4.160.0100.01016.45
7.4.150.0040.01717.40
7.4.140.0060.01317.86
7.4.130.0100.00816.53
7.4.120.0070.01016.40
7.4.110.0100.00716.70
7.4.100.0130.00416.42
7.4.90.0060.01116.55
7.4.80.0070.01019.39
7.4.70.0180.00616.30
7.4.60.0100.01016.26
7.4.50.0040.00416.30
7.4.40.0120.00616.08
7.4.30.0130.00316.57
7.4.00.0080.00615.12
7.3.330.0000.00613.16
7.3.320.0030.00313.16
7.3.310.0040.00416.39
7.3.300.0040.00416.16
7.3.290.0130.00616.36
7.3.280.0070.01216.29
7.3.270.0090.00917.40
7.3.260.0100.01016.27
7.3.250.0090.00716.26
7.3.240.0080.00816.45
7.3.230.0170.00316.39
7.3.210.0110.00616.32
7.3.200.0100.00719.39
7.3.190.0090.00916.17
7.3.180.0030.01316.45
7.3.170.0030.01816.41
7.3.160.0150.00816.44
7.2.330.0100.00716.76
7.2.320.0140.01116.31
7.2.310.0080.00816.29
7.2.300.0130.00716.52
7.2.290.0130.00316.49
7.2.60.0060.00916.62
7.2.00.0090.01219.21
7.1.200.0030.01015.74
7.1.100.0040.01118.37
7.1.70.0060.00817.18
7.1.60.0120.01219.61
7.1.50.0100.01316.95
7.1.00.0030.07322.25
7.0.200.0040.00415.00
7.0.140.0000.07022.18
7.0.60.0230.07019.78
7.0.50.0030.04017.85
7.0.40.0170.08020.21
7.0.30.0470.05720.25
7.0.20.0370.05020.16
7.0.10.0100.09020.30
7.0.00.0100.08020.30
5.6.280.0130.06321.15
5.6.210.0030.09020.60
5.6.200.0070.08018.20
5.6.190.0030.04320.61
5.6.180.0400.04320.77
5.6.170.0370.07720.70
5.6.160.0030.08720.44
5.6.150.0030.07018.27
5.6.140.0030.08018.14
5.6.130.0100.07718.16
5.6.120.0070.05320.79
5.6.110.0300.06721.01
5.6.100.0130.09721.13
5.6.90.0030.08720.96
5.6.80.0170.07020.50
5.5.350.0100.03720.40
5.5.340.0170.07318.05
5.5.330.0000.04320.29
5.5.320.0570.05320.50
5.5.310.0270.08020.55
5.5.300.0030.03717.98
5.5.290.0030.06717.95
5.5.280.0100.08020.98
5.5.270.0070.04020.75
5.5.260.0100.06320.67
5.5.250.0100.04720.63
5.5.240.0170.07320.23
5.4.450.0200.03319.17
5.4.440.0270.04019.30
5.4.430.0430.04019.16
5.4.420.0430.03319.29
5.4.410.0130.05019.29
5.4.400.0270.04019.27
5.4.390.0300.04718.84
5.4.380.0430.05018.68
5.4.370.0370.04718.72
5.4.360.0430.04718.79
5.4.350.0270.05718.46
5.4.340.0330.05718.72
5.4.320.0030.03912.50
5.4.310.0050.03812.49
5.4.300.0060.03712.50
5.4.290.0040.05112.49
5.4.280.0070.03312.39
5.4.270.0070.03912.39
5.4.260.0110.03312.39
5.4.250.0090.04112.39
5.4.240.0060.03512.39
5.4.230.0080.04012.38
5.4.220.0070.03412.38
5.4.210.0110.03012.38
5.4.200.0050.04412.38
5.4.190.0050.03612.38
5.4.180.0080.03612.38
5.4.170.0070.04312.39
5.4.160.0070.04012.39
5.4.150.0060.03812.38
5.4.140.0070.04712.06
5.4.130.0050.03912.05
5.4.120.0050.03512.01
5.4.110.0060.03412.00
5.4.100.0050.04412.01
5.4.90.0080.03912.01
5.4.80.0100.04212.01
5.4.70.0090.03712.00
5.4.60.0060.03412.00
5.4.50.0040.03612.00
5.4.40.0020.03811.99
5.4.30.0050.03611.98
5.4.20.0080.03311.99
5.4.10.0090.03611.98
5.4.00.0040.05011.48
5.3.290.0060.05012.80
5.3.280.0090.04012.71
5.3.270.0060.04312.72
5.3.260.0070.03712.72
5.3.250.0050.03812.72
5.3.240.0040.04012.72
5.3.230.0060.03812.71
5.3.220.0080.04612.68
5.3.210.0060.04012.68
5.3.200.0050.03812.68
5.3.190.0090.03712.68
5.3.180.0100.03612.67
5.3.170.0030.04112.67
5.3.160.0060.04012.67
5.3.150.0090.03512.67
5.3.140.0040.03912.66
5.3.130.0090.03812.66
5.3.120.0060.04512.66
5.3.110.0060.04212.66
5.3.100.0080.03412.12
5.3.90.0080.03812.10
5.3.80.0070.03912.09
5.3.70.0070.03612.09
5.3.60.0040.03912.07
5.3.50.0070.03912.02
5.3.40.0090.03512.02
5.3.30.0070.04211.98
5.3.20.0050.03611.76
5.3.10.0050.03411.73
5.3.00.0050.03711.71
5.2.170.0040.0309.21
5.2.160.0040.0359.21
5.2.150.0030.0329.21
5.2.140.0070.0289.21
5.2.130.0050.0359.17
5.2.120.0040.0289.17
5.2.110.0050.0289.18
5.2.100.0030.0319.17
5.2.90.0070.0309.17
5.2.80.0040.0309.16
5.2.70.0020.0409.17
5.2.60.0020.0329.12
5.2.50.0050.0319.09
5.2.40.0070.0279.07
5.2.30.0080.0319.04
5.2.20.0020.0379.03
5.2.10.0070.0268.95
5.2.00.0030.0308.81
5.1.60.0040.0238.10
5.1.50.0050.0238.09
5.1.40.0030.0308.07
5.1.30.0030.0268.43
5.1.20.0030.0278.45
5.1.10.0050.0268.17
5.1.00.0050.0288.17
5.0.50.0050.0186.64
5.0.40.0040.0186.50
5.0.30.0050.0386.31
5.0.20.0030.0296.31
5.0.10.0030.0236.29
5.0.00.0020.0326.27
4.4.90.0060.0174.78
4.4.80.0040.0134.76
4.4.70.0040.0144.76
4.4.60.0010.0174.75
4.4.50.0030.0154.77
4.4.40.0040.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0164.85
4.4.10.0040.0154.85
4.4.00.0050.0234.76
4.3.110.0030.0154.67
4.3.100.0040.0204.66
4.3.90.0030.0144.63
4.3.80.0010.0264.58
4.3.70.0020.0194.63
4.3.60.0050.0154.63
4.3.50.0040.0144.63
4.3.40.0050.0284.54
4.3.30.0030.0203.33
4.3.20.0020.0163.31
4.3.10.0020.0153.26
4.3.00.0030.01716.72

preferences:
54.17 ms | 401 KiB | 5 Q