3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument("1.0", "UTF-8"); $doc->formatOutput = true; $rss = $doc->createElement("rss"); $rss->setAttribute("version", "2.0"); $doc->appendChild($rss); $channel = $doc->createElement("channel"); $channel->appendChild($doc->createElement("title", "Mah<>titlë")); $channel->appendChild($doc->createElement("description", "Blah")); $channel->appendChild($doc->createElement("link", "Blah")); $rss->appendChild($channel); $item = $doc->createElement("item"); $item->appendChild($doc->createElement("title", "foo")); $item->appendChild($doc->createElement("link", "example.com")); $channel->appendChild($item); echo $doc->saveXML();

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.0160.00316.63
8.3.50.0110.01118.04
8.3.40.0120.00619.10
8.3.30.0030.01318.96
8.3.20.0040.00420.45
8.3.10.0080.00021.88
8.3.00.0050.00320.77
8.2.180.0150.00018.80
8.2.170.0040.01122.96
8.2.160.0120.00322.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.19
8.2.110.0090.00021.22
8.2.100.0090.00318.16
8.2.90.0030.00517.88
8.2.80.0030.00617.97
8.2.70.0050.00318.16
8.2.60.0060.00318.22
8.2.50.0050.00318.10
8.2.40.0000.00819.47
8.2.30.0040.00419.45
8.2.20.0040.00418.25
8.2.10.0050.00218.18
8.2.00.0050.00319.66
8.1.280.0040.01125.92
8.1.270.0090.00022.31
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00319.32
8.1.230.0040.00719.11
8.1.220.0000.00817.88
8.1.210.0040.00418.77
8.1.200.0000.01017.48
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0030.00618.77
8.1.160.0060.00318.95
8.1.150.0070.00018.95
8.1.140.0070.00022.21
8.1.130.0000.00720.23
8.1.120.0040.00417.58
8.1.110.0070.00317.49
8.1.100.0040.00417.65
8.1.90.0040.00417.51
8.1.80.0000.00717.50
8.1.70.0000.00717.58
8.1.60.0040.00417.74
8.1.50.0030.00517.55
8.1.40.0000.00817.64
8.1.30.0040.00417.63
8.1.20.0000.00717.64
8.1.10.0030.00617.77
8.1.00.0000.00717.69
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.68
8.0.270.0000.00717.44
8.0.260.0030.00318.56
8.0.250.0030.00317.17
8.0.240.0030.00317.21
8.0.230.0000.00717.11
8.0.220.0040.00417.03
8.0.210.0030.00316.94
8.0.200.0030.00317.10
8.0.190.0000.00717.01
8.0.180.0000.00817.05
8.0.170.0000.00917.05
8.0.160.0000.00717.15
8.0.150.0000.00816.89
8.0.140.0000.00717.01
8.0.130.0000.00513.37
8.0.120.0000.00817.04
8.0.110.0000.00717.06
8.0.100.0040.00416.90
8.0.90.0000.00717.11
8.0.80.0070.01017.06
8.0.70.0070.00017.01
8.0.60.0030.00516.95
8.0.50.0070.00017.09
8.0.30.0140.00717.26
8.0.20.0090.00917.40
8.0.10.0000.00717.15
8.0.00.0110.01017.06
7.4.330.0000.00516.89
7.4.320.0060.00016.55
7.4.300.0000.00616.57
7.4.290.0110.00016.60
7.4.280.0080.00016.68
7.4.270.0120.00016.75
7.4.260.0050.00316.60
7.4.250.0070.00016.70
7.4.240.0070.00016.59
7.4.230.0000.00716.82
7.4.220.0040.00416.57
7.4.210.0040.01016.75
7.4.200.0070.00016.42
7.4.160.0100.00916.66
7.4.140.0120.00817.86
7.4.130.0160.00416.57
7.4.120.0100.01116.63
7.4.110.0290.00916.77
7.4.100.0130.00916.71
7.4.90.0150.00616.67
7.4.80.0130.00319.39
7.4.70.0100.01416.55
7.4.60.0040.01216.58
7.4.50.0030.01216.64
7.4.40.0060.01016.52
7.4.00.0050.00914.95
7.3.330.0020.00213.28
7.3.320.0000.00513.13
7.3.310.0020.00516.44
7.3.300.0000.00716.25
7.3.290.0030.00316.41
7.3.280.0050.01016.35
7.3.260.0100.00916.55
7.3.240.0100.00816.50
7.3.230.0080.00816.36
7.3.210.0130.00316.58
7.3.200.0100.00716.30
7.3.190.0070.01416.45
7.3.180.0110.00916.39
7.3.170.0090.01316.48
7.3.160.0090.00916.64
7.3.120.0130.00614.90
7.3.110.0070.01014.60
7.3.100.0040.00814.50
7.3.90.0000.01214.57
7.3.80.0030.00814.65
7.3.70.0040.01414.57
7.3.60.0000.01614.61
7.3.50.0060.00914.91
7.3.40.0100.00614.78
7.3.30.0000.01114.85
7.3.20.0030.01016.66
7.3.10.0060.00816.51
7.3.00.0060.00616.57
7.2.330.0160.01116.93
7.2.320.0080.01216.95
7.2.310.0160.00616.88
7.2.300.0110.00616.72
7.2.290.0100.00716.72
7.2.250.0090.00914.89
7.2.240.0070.01314.97
7.2.230.0040.01115.01
7.2.220.0030.01015.13
7.2.210.0000.01314.96
7.2.200.0100.00314.73
7.2.190.0090.00315.10
7.2.180.0070.01014.91
7.2.170.0030.01314.68
7.2.130.0060.01016.87
7.2.120.0370.00915.60
7.2.110.0770.00515.84
7.2.100.0600.00815.92
7.2.90.0700.00515.88
7.2.80.0510.00515.89
7.2.70.0540.00816.12
7.2.60.0570.00316.15
7.2.50.0360.00916.15
7.2.40.0900.01016.11
7.2.30.0570.01016.11
7.2.20.0510.00316.03
7.2.10.0560.00915.83
7.2.00.0450.00815.94
7.1.330.0030.01015.87
7.1.320.0130.00015.67
7.1.310.0000.00915.89
7.1.300.0080.00415.64
7.1.290.0090.00315.89
7.1.280.0080.00815.64
7.1.270.0060.00315.85
7.1.260.0030.00915.59
7.1.250.0030.00615.63
7.1.240.1190.00413.67
7.1.230.1170.00713.87
7.1.220.0800.00313.89
7.1.210.1720.00614.02
7.1.200.0810.00413.80
7.1.190.1650.01313.88
7.1.180.0750.00713.93
7.1.170.1440.00714.03
7.1.160.1290.01313.67
7.1.150.0660.00313.98
7.1.140.1700.00713.91
7.1.130.1600.00713.91
7.1.120.1990.00013.77
7.1.110.1210.00313.92
7.1.100.1850.01013.73
7.1.90.1610.00713.84
7.1.80.0990.00713.68
7.1.70.0950.01313.75
7.1.60.1990.00913.82
7.1.50.1000.00613.92
7.1.40.1240.00713.80
7.1.30.1570.00713.35
7.1.20.1270.00313.65
7.1.10.1180.00713.72
7.1.00.1810.01013.98
5.6.380.0100.01014.19

preferences:
64.28 ms | 400 KiB | 5 Q