3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nf = new \NumberFormatter("en_US", \NumberFormatter::CURRENCY); $formatted_price = $nf->formatCurrency(23.3233, "PKR"); print $formatted_price;

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.01921.05
8.3.50.0090.01919.04
8.3.40.0060.01620.59
8.3.30.0090.00620.32
8.3.20.0050.00321.88
8.3.10.0000.00823.66
8.3.00.0080.00023.06
8.2.180.0100.02921.29
8.2.170.0110.00722.96
8.2.160.0120.00323.88
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00023.71
8.2.120.0090.00026.35
8.2.110.0030.00622.20
8.2.100.0080.00419.86
8.2.90.0060.00320.58
8.2.80.0040.00419.93
8.2.70.0030.00619.63
8.2.60.0040.00419.79
8.2.50.0060.00319.80
8.2.40.0030.00623.99
8.2.30.0100.00020.67
8.2.20.0000.00920.09
8.2.10.0030.00520.11
8.2.00.0040.00420.08
8.1.280.0260.02025.92
8.1.270.0040.00425.45
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00024.79
8.1.230.0180.00720.98
8.1.220.0030.00519.66
8.1.210.0040.00419.25
8.1.200.0060.00319.23
8.1.190.0030.00619.22
8.1.180.0000.00919.40
8.1.170.0040.00420.69
8.1.160.0040.00420.44
8.1.150.0040.00420.37
8.1.140.0070.00321.56
8.1.130.0040.00420.50
8.1.120.0030.00519.56
8.1.110.0040.00419.66
8.1.100.0060.00319.60
8.1.90.0000.00919.71
8.1.80.0000.00819.63
8.1.70.0040.00419.41
8.1.60.0000.00819.81
8.1.50.0000.00819.76
8.1.40.0040.00419.45
8.1.30.0000.00820.04
8.1.20.0000.00819.99
8.1.10.0040.00419.84
8.1.00.0060.00319.67
8.0.300.0080.00019.73
8.0.290.0000.00818.75
8.0.280.0030.00420.00
8.0.270.0070.00019.45
8.0.260.0040.00418.85
8.0.250.0030.00318.98
8.0.240.0060.00518.95
8.0.230.0000.00719.03
8.0.220.0040.00418.84
8.0.210.0040.00418.87
8.0.200.0000.00818.88
8.0.190.0040.00419.03
8.0.180.0030.00518.91
8.0.170.0070.00019.02
8.0.160.0020.00518.84
8.0.150.0000.00718.79
8.0.140.0030.00619.01
8.0.130.0050.00413.24
8.0.120.0080.00019.02
8.0.110.0040.00419.19
8.0.100.0040.00419.08
8.0.90.0040.00419.34
8.0.80.0090.00919.16
8.0.70.0000.00819.27
8.0.60.0000.00818.76
8.0.50.0000.00819.39
8.0.30.0090.00819.51
8.0.20.0140.01919.41
8.0.10.0040.00419.28
8.0.00.0070.01118.93
7.4.330.0050.00015.55
7.4.320.0000.00718.80
7.4.300.0070.00018.71
7.4.290.0040.00418.68
7.4.280.0050.00318.84
7.4.270.0000.00718.80
7.4.260.0030.00313.15
7.4.250.0040.00418.67
7.4.240.0000.00718.78
7.4.230.0070.00018.74
7.4.220.0100.00718.72
7.4.210.0100.00518.74
7.4.200.0040.00418.77
7.4.160.0060.01018.63
7.4.150.0060.01318.40
7.4.140.0170.00418.58
7.4.130.0140.00718.72
7.4.120.0130.00618.61
7.4.110.0070.01018.46
7.4.100.0120.00618.49
7.4.90.0090.00918.79
7.4.80.0110.00619.39
7.4.70.0100.00718.84
7.4.60.0040.01218.56
7.4.50.0080.01118.63
7.4.40.0040.01518.54
7.4.30.0080.01118.54
7.4.00.0100.00616.93
7.3.330.0000.00613.07
7.3.320.0030.00213.19
7.3.310.0000.00818.70
7.3.300.0040.00418.58
7.3.290.0040.00418.58
7.3.280.0120.00918.55
7.3.270.0060.01118.93
7.3.260.0090.01418.88
7.3.250.0110.01118.60
7.3.240.0110.00718.76
7.3.230.0040.01818.62
7.3.210.0070.01118.84
7.3.200.0130.01018.59
7.3.190.0060.01318.74
7.3.180.0130.00319.00
7.3.170.0080.01118.65
7.3.160.0060.01218.84
7.3.10.0030.00718.57
7.3.00.0090.00618.29
7.2.330.0040.01518.61
7.2.320.0070.01318.84
7.2.310.0070.01018.76
7.2.300.0110.00918.59
7.2.290.0030.01418.97
7.2.130.0060.00618.94
7.2.120.0000.01318.79
7.2.110.0000.01318.93
7.2.100.0030.01018.80
7.2.90.0070.01018.86
7.2.80.0060.00619.10
7.2.70.0030.00918.97
7.2.60.0040.00718.84
7.2.50.0030.00818.82
7.2.40.0080.00319.00
7.2.30.0110.00419.11
7.2.20.0030.01018.84
7.2.10.0000.01118.78
7.2.00.0000.01418.78
7.1.250.0030.00817.83
7.1.70.0070.00319.36
7.1.60.0100.01737.48
7.1.50.0100.01737.03
7.1.40.0200.01336.69
7.1.30.0270.00336.87
7.1.20.0200.00736.99
7.1.10.0000.01318.63
7.1.00.0030.01018.88
7.0.200.0030.01018.91
7.0.190.0000.01319.13
7.0.180.0070.01018.57
7.0.170.0000.01318.46
7.0.160.0100.00318.38
7.0.150.0000.01318.33
7.0.140.0100.00318.75
7.0.130.0100.00318.44
7.0.120.0030.01018.37
7.0.110.0030.01018.57
7.0.100.0070.00718.20
7.0.90.0070.00718.16
7.0.80.0000.01318.30
7.0.70.0030.01018.27
7.0.60.0000.01318.11
7.0.50.0030.01018.19
7.0.40.0030.01018.39
7.0.30.0030.01018.21
7.0.20.0030.01018.05
7.0.10.0100.00318.43
7.0.00.0070.01018.44

preferences:
57.54 ms | 400 KiB | 5 Q