3v4l.org

run code in 300+ PHP versions simultaneously
<?php function currency($number) { $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo $formatter->formatCurrency($number, 'USD'); } currency(232323223);

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.0070.02119.38
8.3.50.0100.01719.07
8.3.40.0090.00620.12
8.3.30.0060.01020.25
8.3.20.0030.00621.71
8.3.10.0110.00024.98
8.3.00.0040.00423.56
8.2.180.0200.02019.13
8.2.170.0070.01122.96
8.2.160.0000.01520.59
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00423.06
8.2.110.0060.00323.73
8.2.100.0040.00819.91
8.2.90.0090.00020.72
8.2.80.0030.00619.78
8.2.70.0000.00919.38
8.2.60.0030.00520.04
8.2.50.0040.00419.91
8.2.40.0030.00621.97
8.2.30.0060.00322.62
8.2.20.0040.00419.98
8.2.10.0040.00419.95
8.2.00.0040.00420.03
8.1.280.0150.01825.92
8.1.270.0040.00423.52
8.1.260.0060.01326.35
8.1.250.0000.00828.09
8.1.240.0030.00723.11
8.1.230.0090.00321.05
8.1.220.0060.00319.66
8.1.210.0060.00319.23
8.1.200.0030.00619.22
8.1.190.0040.00419.23
8.1.180.0060.00319.18
8.1.170.0040.00420.59
8.1.160.0000.00820.55
8.1.150.0000.00822.20
8.1.140.0000.00821.39
8.1.130.0040.00420.32
8.1.120.0070.00019.64
8.1.110.0040.00419.32
8.1.100.0050.00319.59
8.1.90.0040.00419.54
8.1.80.0040.00419.59
8.1.70.0000.00719.55
8.1.60.0040.00419.74
8.1.50.0060.00319.62
8.1.40.0000.00819.59
8.1.30.0030.00520.01
8.1.20.0040.00419.98
8.1.10.0030.00619.66
8.1.00.0040.00419.58
8.0.300.0040.00421.71
8.0.290.0050.00318.63
8.0.280.0040.00419.93
8.0.270.0060.00319.22
8.0.260.0030.00318.71
8.0.250.0040.00419.02
8.0.240.0000.00718.96
8.0.230.0000.00818.92
8.0.220.0040.00418.88
8.0.210.0040.00418.77
8.0.200.0040.00418.90
8.0.190.0000.00918.71
8.0.180.0040.00418.91
8.0.170.0020.00519.00
8.0.160.0000.00818.87
8.0.150.0000.00718.59
8.0.140.0000.00718.89
8.0.130.0000.00613.24
8.0.120.0040.00418.93
8.0.110.0000.00818.96
8.0.100.0040.00419.25
8.0.90.0000.00819.21
8.0.80.0180.00019.17
8.0.70.0030.00519.03
8.0.60.0030.00619.08
8.0.50.0050.00318.63
8.0.30.0070.01019.31
8.0.20.0110.00919.29
8.0.10.0040.00419.36
8.0.00.0090.00918.80
7.4.330.0050.00015.55
7.4.320.0000.00718.57
7.4.300.0000.00718.60
7.4.290.0050.00218.69
7.4.280.0000.00918.71
7.4.270.0000.00718.68
7.4.260.0000.00718.57
7.4.250.0060.00318.57
7.4.240.0070.00018.71
7.4.230.0070.00018.48
7.4.220.0030.01518.56
7.4.210.0090.00618.71
7.4.200.0050.00318.71
7.4.160.0090.00818.58
7.4.150.0040.01418.33
7.4.140.0130.00918.68
7.4.130.0090.00918.86
7.4.120.0100.00918.55
7.4.110.0040.01518.54
7.4.100.0170.00018.53
7.4.90.0090.00918.62
7.4.80.0130.01019.39
7.4.70.0140.00418.70
7.4.60.0070.01018.32
7.4.50.0140.00318.32
7.4.40.0120.00918.40
7.4.30.0060.01218.38
7.4.00.0030.01316.80
7.3.330.0030.00313.29
7.3.320.0030.00313.25
7.3.310.0040.00418.32
7.3.300.0040.00418.41
7.3.290.0060.01018.56
7.3.280.0100.00718.54
7.3.270.0090.01218.53
7.3.260.0130.01018.64
7.3.250.0090.00918.53
7.3.240.0120.00718.52
7.3.230.0070.01018.49
7.3.210.0110.00818.55
7.3.200.0130.00718.59
7.3.190.0070.01018.59
7.3.180.0160.00618.64
7.3.170.0060.00918.36
7.3.160.0120.00618.80
7.3.120.0080.00817.10
7.3.110.0090.00916.46
7.3.100.0100.00616.84
7.3.90.0070.01016.65
7.3.80.0040.00816.82
7.3.70.0100.00716.99
7.3.60.0060.00617.09
7.3.50.0110.00316.77
7.3.40.0030.00717.05
7.3.30.0080.00317.04
7.3.20.0070.00718.38
7.3.10.0080.00318.64
7.3.00.0100.00318.52
7.2.330.0090.00918.64
7.2.320.0060.01718.66
7.2.310.0090.00918.46
7.2.300.0150.00318.85
7.2.290.0090.00918.80
7.2.250.0040.01417.07
7.2.240.0070.01017.27
7.2.230.0040.00816.94
7.2.220.0090.00616.94
7.2.210.0050.00517.07
7.2.200.0000.01017.08
7.2.190.0070.00717.23
7.2.180.0000.01416.95
7.2.170.0030.01216.99
7.2.160.0130.00316.98
7.2.150.0060.00618.72
7.2.140.0030.01018.73
7.2.130.0070.00718.81
7.2.120.0100.00318.79
7.2.110.0100.00318.29
7.2.100.0130.00018.43
7.2.90.0560.01017.97
7.2.80.0540.01117.69
7.2.70.0080.00717.85
7.2.60.0140.00918.02
7.2.50.0090.01018.02
7.2.40.0120.00717.84
7.2.30.0460.01017.85
7.2.20.0100.00817.93
7.2.10.0400.00817.93
7.2.00.0420.00518.01
7.1.330.0120.00317.55
7.1.320.0000.00917.86
7.1.310.0100.00317.61
7.1.300.0000.01617.79
7.1.290.0070.00717.53
7.1.280.0060.00917.59
7.1.270.0070.00717.43
7.1.260.0070.00317.84
7.1.250.0090.00617.77
7.1.210.0100.01015.59
7.1.200.1140.00715.68
7.1.190.0240.00415.98
7.1.180.0120.01215.79
7.1.170.0560.00715.81
7.1.160.0490.01216.03
7.1.150.0750.00915.96
7.1.140.0420.01015.87
7.1.130.0560.01315.69
7.1.120.0000.01415.95
7.1.110.0130.00816.07
7.1.100.0170.00616.11
7.1.90.1090.01015.86
7.1.80.0450.00716.02
7.1.70.1470.00915.89
7.1.60.1650.00731.41
7.1.50.0970.01331.75
7.1.40.1230.01331.85
7.1.30.1190.00031.81
7.1.20.0890.01731.82
7.1.10.0790.01015.80
7.1.00.0960.01015.88
7.0.310.1030.00715.62
7.0.300.1070.01015.51
7.0.290.1100.00315.56
7.0.280.0120.00615.64
7.0.270.0760.00315.34
7.0.260.0140.00815.31
7.0.250.0750.00015.44
7.0.240.0910.00315.45
7.0.230.1030.01015.44
7.0.220.0610.00915.05
7.0.210.1460.01015.47
7.0.200.0390.00315.42
7.0.190.1040.00015.62
7.0.180.0870.00315.55
7.0.170.0080.01015.73
7.0.160.0150.00015.64
7.0.150.0850.00615.72
7.0.140.1070.00615.76
7.0.130.0560.00015.64
7.0.120.0220.00715.60
7.0.110.0910.00615.35
7.0.100.0730.00315.40
7.0.90.0000.01115.61
7.0.80.0150.00015.51
7.0.70.0100.00715.37
7.0.60.0410.00315.51
7.0.50.0370.00015.40
7.0.40.0000.01515.50
7.0.30.0200.00415.55
7.0.20.0780.01415.52
7.0.10.0790.00615.21
7.0.00.0680.00715.55

preferences:
63.44 ms | 401 KiB | 5 Q