3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = simplexml_load_string('<example><a>0.50</a><b>30.0</b></example>'); echo "Plain echo\n"; echo $x->a, "\n", $x->b, "\n"; echo "Money format\n"; echo money_format("%.2n", (float) $x->a), "\n", money_format("%.2n", (float) $x->b), "\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.0120.00316.88
8.3.50.0110.00517.63
8.3.40.0100.00718.72
8.3.30.0070.00718.85
8.3.20.0060.00318.66
8.3.10.0090.00019.07
8.3.00.0080.00019.28
8.2.180.0070.00717.00
8.2.170.0100.01019.25
8.2.160.0060.00922.96
8.2.150.0160.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00321.07
8.2.110.0060.00321.35
8.2.100.0040.00718.03
8.2.90.0000.00819.48
8.2.80.0000.00719.40
8.2.70.0040.00417.75
8.2.60.0040.00418.16
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0050.00318.24
8.2.20.0060.00317.71
8.2.10.0000.00817.78
8.2.00.0000.00717.75
8.1.280.0000.01525.92
8.1.270.0090.00020.61
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00023.90
8.1.230.0090.00321.02
8.1.220.0030.00618.77
8.1.210.0070.00019.29
8.1.200.0000.00917.48
8.1.190.0000.00717.66
8.1.180.0040.00418.10
8.1.170.0030.00618.95
8.1.160.0000.00718.96
8.1.150.0070.00018.62
8.1.140.0080.00017.55
8.1.130.0040.00417.58
8.1.120.0080.00017.66
8.1.110.0080.00017.63
8.1.100.0040.00417.55
8.1.90.0000.00717.45
8.1.80.0040.00417.61
8.1.70.0070.00017.62
8.1.60.0040.00417.55
8.1.50.0000.00817.58
8.1.40.0000.00817.66
8.1.30.0000.00917.80
8.1.20.0050.00317.75
8.1.10.0000.00817.74
8.1.00.0040.00417.79
8.0.300.0040.00420.17
8.0.290.0070.00016.88
8.0.280.0000.00718.60
8.0.270.0000.00817.32
8.0.260.0000.00716.91
8.0.250.0040.00417.17
8.0.240.0050.00217.14
8.0.230.0020.00517.05
8.0.220.0030.00317.04
8.0.210.0000.00717.13
8.0.200.0030.00317.17
8.0.190.0060.00317.08
8.0.180.0050.00316.99
8.0.170.0080.00317.02
8.0.160.0000.00717.04
8.0.150.0030.00616.87
8.0.140.0000.00816.98
8.0.130.0000.00613.54
8.0.120.0030.00616.91
8.0.110.0000.00717.04
8.0.100.0000.00816.93
8.0.90.0030.00516.98
8.0.80.0090.00617.07
8.0.70.0070.00017.08
8.0.60.0040.00416.94
8.0.50.0000.00716.90
8.0.30.0090.01217.41
8.0.20.0060.01317.17
8.0.10.0040.00417.22
8.0.00.0110.01316.74
7.4.330.0020.00213.27
7.4.320.0000.00716.72
7.4.300.0000.00716.66
7.4.290.0040.00416.65
7.4.280.0030.00516.83
7.4.270.0070.00016.73
7.4.260.0030.00616.65
7.4.250.0080.00016.59
7.4.240.0040.00416.89
7.4.230.0030.00316.64
7.4.220.0110.00716.81
7.4.210.0060.01316.77
7.4.200.0040.00416.87
7.4.190.0090.00016.48
7.4.160.0140.00716.75
7.4.150.0060.01216.75
7.4.140.0140.00316.89
7.4.130.0030.01516.80
7.4.120.0090.00916.74
7.4.110.0100.00716.58
7.4.100.0100.00816.77
7.4.90.0140.00416.74
7.4.80.0070.01519.39
7.4.70.0040.01216.82
7.4.60.0100.00716.82
7.4.50.0000.00516.68
7.4.40.0070.01016.89
7.4.30.0030.01416.90
7.4.00.0110.00715.03
7.3.330.0060.00013.30
7.3.320.0000.00713.20
7.3.310.0040.00316.40
7.3.300.0030.00316.40
7.3.290.0120.00416.40
7.3.280.0130.00316.42
7.3.270.0030.01416.85
7.3.260.0150.00316.54
7.3.250.0100.01016.51
7.3.240.0090.00816.81
7.3.230.0120.00616.42
7.3.210.0090.01416.68
7.3.200.0040.01416.44
7.3.190.0090.00616.71
7.3.180.0060.01216.50
7.3.170.0030.01316.59
7.3.160.0090.00916.82
7.3.120.0080.00814.86
7.3.110.0100.00714.75
7.3.100.0070.00714.70
7.3.90.0000.01314.92
7.3.80.0070.00714.97
7.3.70.0060.00915.04
7.3.60.0060.00914.87
7.3.50.0000.01114.96
7.3.40.0000.01414.82
7.3.30.0070.00714.85
7.3.20.0060.00616.81
7.3.10.0080.00816.63
7.3.00.0100.00216.74
7.2.330.0100.01316.83
7.2.320.0130.00416.91
7.2.310.0140.00716.92
7.2.300.0130.00316.92
7.2.290.0120.00616.95
7.2.250.0100.00714.91
7.2.240.0060.00915.41
7.2.230.0030.00615.12
7.2.220.0070.00715.20
7.2.210.0000.01415.04
7.2.200.0100.00315.11
7.2.190.0030.00915.11
7.2.180.0030.01315.02
7.2.170.0090.00615.28
7.2.130.0000.01616.80
7.2.120.0070.00316.84
7.2.110.0030.01316.75
7.2.100.0070.01017.02
7.2.90.0080.00416.87
7.2.80.0160.00716.92
7.2.70.0040.01117.23
7.2.60.0080.00616.71
7.2.50.0090.00616.81
7.2.40.0060.00316.53
7.2.30.0000.01416.93
7.2.20.0080.00817.08
7.2.10.0030.00716.76
7.2.00.0040.00716.93
7.1.330.0060.00916.02
7.1.320.0040.00815.88
7.1.310.0030.00715.96
7.1.300.0030.00715.86
7.1.290.0000.01315.84
7.1.280.0090.00616.07
7.1.270.0000.01315.73
7.1.260.0060.00615.77
7.1.250.0090.00616.07
7.1.240.0040.01115.92
7.1.230.0040.00715.94
7.1.220.0030.00715.73
7.1.210.0030.01415.84
7.1.200.0030.01015.96
7.1.190.0030.01015.98
7.1.180.0030.00515.95
7.1.170.0090.00316.09
7.1.160.0070.00715.68
7.1.150.0000.00815.87
7.1.140.0090.00616.02
7.1.130.0040.00715.77
7.1.120.0000.01015.90
7.1.110.0040.01115.74
7.1.100.0050.00717.08
7.1.90.0030.00615.80
7.1.80.0030.00615.85
7.1.70.0070.00816.54
7.1.60.0050.01417.45
7.1.50.0040.00816.30
7.1.40.0040.01115.89
7.1.30.0040.00915.91
7.1.20.0120.00015.70
7.1.10.0100.00615.69
7.1.00.0030.03819.16
7.0.330.0040.01115.46
7.0.320.0030.00715.55
7.0.310.0100.00315.68
7.0.300.0030.00615.63
7.0.290.0060.00615.62
7.0.280.0070.00715.50
7.0.270.0060.00615.21
7.0.260.0030.00615.33
7.0.250.0040.00815.37
7.0.240.0040.01115.60
7.0.230.0030.00815.56
7.0.220.0040.01115.39
7.0.210.0000.01315.63
7.0.200.0080.00716.01
7.0.190.0040.00415.46
7.0.180.0090.00315.52
7.0.170.0030.00715.38
7.0.160.0030.00615.47
7.0.150.0000.01315.15
7.0.140.0060.03718.81
7.0.130.0040.00415.47
7.0.120.0080.03518.89
7.0.110.0220.03717.75
7.0.100.0230.03717.81
7.0.90.0150.02317.71
7.0.80.0230.02117.75
7.0.70.0290.03817.65
7.0.60.0210.03617.89
7.0.50.0260.01817.72
7.0.40.0020.02516.58
7.0.30.0050.04216.63
7.0.20.0050.03016.76
7.0.10.0060.01616.53
7.0.00.0080.04316.79
5.6.380.0030.00914.56
5.6.370.0030.00614.48
5.6.360.0100.00714.54
5.6.350.0070.00014.48
5.6.340.0030.00614.37
5.6.330.0070.00714.30
5.6.320.0030.00614.54
5.6.310.0070.00714.51
5.6.300.0030.00714.21
5.6.290.0050.00314.66
5.6.280.0030.04317.64
5.6.270.0140.00014.36
5.6.260.0090.03417.57
5.6.250.0050.03017.61
5.6.240.0030.02117.65
5.6.230.0030.02817.44
5.6.220.0100.03717.46
5.6.210.0020.04217.45
5.6.200.0050.02217.49
5.6.190.0030.03017.55
5.6.180.0070.04017.43
5.6.170.0080.02217.56
5.6.160.0050.03717.49
5.6.150.0070.02217.47
5.6.140.0030.03917.40
5.6.130.0090.03217.43
5.6.120.0060.04517.43
5.6.110.0080.02017.47
5.6.100.0070.02517.36
5.6.90.0100.03817.52
5.6.80.0070.03817.15
5.6.70.0050.01817.12
5.6.60.0070.04017.21
5.6.50.0040.03817.22
5.6.40.0030.02017.14
5.6.30.0080.03517.09
5.6.20.0080.01817.36
5.6.10.0070.03517.13
5.6.00.0050.03517.10
5.5.380.0020.02814.44
5.5.370.0050.03414.38
5.5.360.0040.03914.21
5.5.350.0060.03814.32
5.5.340.0050.03114.53
5.5.330.0030.04214.56
5.5.320.0050.02114.84
5.5.310.0040.02414.53
5.5.300.0030.04314.46
5.5.290.0060.04014.57
5.5.280.0030.04614.51
5.5.270.0040.02414.63
5.5.260.0060.03814.71
5.5.250.0080.04214.58
5.5.240.0050.03114.18
5.5.230.0060.02014.40
5.5.220.0050.04314.13
5.5.210.0060.04314.47
5.5.200.0030.02814.30
5.5.190.0040.02814.32
5.5.180.0030.03814.19
5.5.170.0060.00611.29
5.5.160.0030.02014.51
5.5.150.0070.04014.20
5.5.140.0060.01613.99
5.5.130.0020.04614.37
5.5.120.0090.03014.34
5.5.110.0080.03014.45
5.5.100.0060.02314.37
5.5.90.0030.04314.29
5.5.80.0060.02614.16
5.5.70.0030.02314.22
5.5.60.0080.02514.19
5.5.50.0050.02314.27
5.5.40.0050.03714.35
5.5.30.0050.02713.97
5.5.20.0020.02914.06
5.5.10.0090.02914.10
5.5.00.0080.02214.34
5.4.450.0030.02815.45
5.4.440.0040.04215.18
5.4.430.0060.03415.29
5.4.420.0040.03015.21
5.4.410.0080.04015.16
5.4.400.0030.04015.05
5.4.390.0040.02515.15
5.4.380.0070.02815.08
5.4.370.0050.02815.12
5.4.360.0130.03515.26
5.4.350.0070.01915.31
5.4.340.0080.03215.17
5.4.330.0060.00611.11
5.4.320.0050.04415.25
5.4.310.0080.04115.22
5.4.300.0050.04115.09
5.4.290.0020.02615.13
5.4.280.0070.04015.05
5.4.270.0040.03915.09
5.4.260.0090.03415.22
5.4.250.0020.03314.99
5.4.240.0030.02515.19
5.4.230.0050.03114.90
5.4.220.0110.03815.18
5.4.210.0030.03415.00
5.4.200.0050.03815.32
5.4.190.0070.04215.18
5.4.180.0050.03014.91
5.4.170.0070.03514.99
5.4.160.0030.02315.02
5.4.150.0030.02315.23
5.4.140.0010.02113.98
5.4.130.0080.01913.83
5.4.120.0030.02813.63
5.4.110.0070.03713.79
5.4.100.0040.02513.85
5.4.90.0050.02113.91
5.4.80.0060.02013.62
5.4.70.0060.01813.77
5.4.60.0060.03613.85
5.4.50.0070.03513.90
5.4.40.0020.02113.87
5.4.30.0090.03513.72
5.4.20.0070.04213.87
5.4.10.0030.02213.78
5.4.00.0060.03513.68
5.3.290.0020.03512.59
5.3.280.0080.02812.54
5.3.270.0020.04312.65
5.3.260.0040.03012.71
5.3.250.0020.02512.62
5.3.240.0100.02812.58
5.3.230.0030.02112.67
5.3.220.0050.02312.63
5.3.210.0020.03512.59
5.3.200.0030.02112.49
5.3.190.0070.02212.48
5.3.180.0000.02512.63
5.3.170.0100.02112.72
5.3.160.0040.03512.80
5.3.150.0120.02212.65
5.3.140.0000.02312.60
5.3.130.0020.02212.65
5.3.120.0150.02712.62
5.3.110.0080.04712.57
5.3.100.0050.02812.34
5.3.90.0040.02112.39
5.3.80.0100.01812.40
5.3.70.0020.02212.36
5.3.60.0010.02612.39
5.3.50.0080.01512.16
5.3.40.0030.02012.29
5.3.30.0020.02512.20
5.3.20.0020.02312.21
5.3.10.0030.02012.13
5.3.00.0060.03312.10
5.2.170.0050.01710.84
5.2.160.0040.01510.78
5.2.150.0060.01210.81
5.2.140.0080.01710.76
5.2.130.0060.01610.64
5.2.120.0000.02310.67
5.2.110.0020.03410.67
5.2.100.0030.02310.75
5.2.90.0030.01510.70
5.2.80.0030.02010.66
5.2.70.0030.02710.65
5.2.60.0070.01810.69
5.2.50.0060.01210.74
5.2.40.0020.02410.73
5.2.30.0060.02410.59
5.2.20.0050.01510.68
5.2.10.0020.01610.71
5.2.00.0080.02010.54
5.1.60.0050.01010.27
5.1.50.0060.02110.26
5.1.40.0070.02310.29
5.1.30.0000.02810.27
5.1.20.0030.02610.33
5.1.10.0040.03210.35
5.1.00.0040.02910.24
5.0.50.0000.02010.18
5.0.40.0030.02310.18
5.0.30.0040.01510.18
5.0.20.0000.02210.18
5.0.10.0030.01810.18
5.0.00.0020.03210.18
4.4.90.0030.01210.18
4.4.80.0020.01010.18
4.4.70.0000.00810.18
4.4.60.0000.01110.18
4.4.50.0000.01110.18
4.4.40.0020.02910.18
4.4.30.0020.02010.18
4.4.20.0030.01310.18
4.4.10.0000.01710.18
4.4.00.0020.01510.18
4.3.110.0030.01410.18
4.3.100.0020.01210.18
4.3.90.0050.01710.18
4.3.80.0020.01510.18
4.3.70.0020.01710.18
4.3.60.0000.02110.18
4.3.50.0000.02010.18
4.3.40.0000.02110.18
4.3.30.0000.02010.18
4.3.20.0020.02010.18
4.3.10.0020.01110.18
4.3.00.0010.01410.18

preferences:
44.41 ms | 401 KiB | 5 Q