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.0070.01118.93
8.3.50.0070.01318.10
8.3.40.0150.00618.92
8.3.30.0070.01318.99
8.3.20.0040.00420.57
8.3.10.0040.00422.20
8.3.00.0040.00421.14
8.2.180.0110.00418.66
8.2.170.0030.01222.96
8.2.160.0130.00722.20
8.2.150.0050.00324.18
8.2.140.0100.00024.66
8.2.130.0080.00020.64
8.2.120.0030.00526.35
8.2.110.0000.01020.55
8.2.100.0120.00017.97
8.2.90.0040.00418.00
8.2.80.0030.00618.14
8.2.70.0060.00317.93
8.2.60.0030.00618.28
8.2.50.0030.00518.10
8.2.40.0050.00319.45
8.2.30.0040.00419.36
8.2.20.0000.00818.24
8.2.10.0040.00418.21
8.2.00.0000.00719.60
8.1.280.0110.00425.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.30
8.1.230.0120.00421.16
8.1.220.0000.00817.91
8.1.210.0030.00518.77
8.1.200.0040.00417.60
8.1.190.0030.00517.35
8.1.180.0080.00018.10
8.1.170.0080.00018.65
8.1.160.0040.00419.02
8.1.150.0030.00619.10
8.1.140.0040.00422.34
8.1.130.0000.00820.26
8.1.120.0000.00717.51
8.1.110.0040.00417.50
8.1.100.0030.00617.68
8.1.90.0000.00717.63
8.1.80.0000.00717.63
8.1.70.0000.00717.47
8.1.60.0080.00017.81
8.1.50.0080.00017.59
8.1.40.0060.00317.55
8.1.30.0030.00617.79
8.1.20.0030.00917.84
8.1.10.0070.00417.68
8.1.00.0050.00317.79
8.0.300.0050.00220.35
8.0.290.0040.00417.00
8.0.280.0000.00718.70
8.0.270.0040.00417.52
8.0.260.0060.00018.56
8.0.250.0070.00017.12
8.0.240.0030.00317.27
8.0.230.0000.00717.05
8.0.220.0050.00217.01
8.0.210.0050.00217.11
8.0.200.0030.00317.17
8.0.190.0050.00317.22
8.0.180.0040.00417.16
8.0.170.0040.00417.04
8.0.160.0040.00416.97
8.0.150.0070.00016.93
8.0.140.0040.00417.07
8.0.130.0000.00613.58
8.0.120.0040.00417.02
8.0.110.0030.00516.87
8.0.100.0050.00316.93
8.0.90.0030.00517.16
8.0.80.0120.00517.09
8.0.70.0020.00517.21
8.0.60.0000.00717.13
8.0.50.0070.00016.86
8.0.30.0100.00817.28
8.0.20.0150.00417.40
8.0.10.0000.00717.12
8.0.00.0120.00917.17
7.4.330.0020.00216.90
7.4.320.0060.00016.70
7.4.300.0040.00416.54
7.4.290.0040.00416.64
7.4.280.0030.00516.69
7.4.270.0030.00316.69
7.4.260.0000.00716.69
7.4.250.0070.00016.70
7.4.240.0000.00716.68
7.4.230.0070.00016.84
7.4.220.0040.00416.69
7.4.210.0130.00516.66
7.4.200.0050.00216.77
7.4.160.0070.00916.61
7.4.140.0100.01317.86
7.4.130.0120.00416.84
7.4.120.0100.00916.59
7.4.110.0080.01116.58
7.4.100.0130.00316.45
7.4.90.0030.01916.69
7.4.80.0120.00619.39
7.4.70.0070.01116.59
7.4.60.0100.00616.62
7.4.50.0050.00716.65
7.4.40.0060.00916.71
7.4.00.0040.01514.77
7.3.330.0020.00213.30
7.3.320.0000.00613.45
7.3.310.0030.00316.50
7.3.300.0030.00316.41
7.3.290.0050.00216.30
7.3.280.0100.01016.46
7.3.260.0080.00916.71
7.3.240.0100.00816.65
7.3.230.0130.00316.78
7.3.210.0130.00416.76
7.3.200.0120.00616.82
7.3.190.0150.00816.67
7.3.180.0070.01116.59
7.3.170.0120.00916.49
7.3.160.0100.00716.50
7.3.120.0060.01014.78
7.3.110.0030.01214.96
7.3.100.0080.00814.96
7.3.90.0040.01114.59
7.3.80.0040.01114.61
7.3.70.0080.00014.81
7.3.60.0040.01214.71
7.3.50.0110.00414.77
7.3.40.0080.00414.54
7.3.30.0030.00914.93
7.3.20.0070.00716.55
7.3.10.0040.00716.67
7.3.00.0080.00516.60
7.2.330.0150.00416.66
7.2.320.0120.00916.85
7.2.310.0070.01116.72
7.2.300.0150.00916.86
7.2.290.0100.01016.66
7.2.240.0060.01015.13
7.2.230.0100.00714.81
7.2.220.0000.01515.15
7.2.210.0000.01814.84
7.2.200.0130.00315.06
7.2.190.0030.01315.43
7.2.180.0000.01115.25
7.2.170.0030.01415.21
7.2.160.0030.01015.02
7.2.150.0100.00717.08
7.2.140.0080.00516.73
7.2.130.0040.00917.02
7.2.120.0160.00616.21
7.2.110.0180.00716.02
7.2.100.0190.00516.26
7.2.90.0120.00816.27
7.2.80.0190.00616.11
7.2.70.0150.01116.28
7.2.60.0100.00616.29
7.2.50.0090.01016.29
7.2.40.0160.00316.32
7.2.30.0160.00816.41
7.2.20.0110.00516.34
7.2.10.0140.00916.38
7.2.00.0100.00716.38
7.1.330.0030.00915.91
7.1.320.0040.00415.77
7.1.310.0030.00615.89
7.1.300.0030.01315.89
7.1.290.0060.00915.84
7.1.280.0040.00715.82
7.1.270.0000.01015.96
7.1.260.0060.00615.81
7.1.250.0040.00515.84
7.1.240.0300.00813.88
7.1.230.0920.01314.10
7.1.220.0380.01314.05
7.1.210.0230.00413.51
7.1.200.0470.00013.79
7.1.190.0330.01813.71
7.1.180.0360.00714.07
7.1.170.0200.00913.96
7.1.160.1060.00613.86
7.1.150.0070.01113.96
7.1.140.0260.00313.99
7.1.130.0110.00713.78
7.1.120.0310.00613.93
7.1.110.0110.00014.02
7.1.100.0350.00614.00
7.1.90.0030.01013.77
7.1.80.0140.01114.02
7.1.70.0160.00013.69
7.1.60.0130.01014.10
7.1.50.0300.00313.75
7.1.40.0260.00913.76
7.1.30.0100.00713.70
7.1.20.0520.00613.93
7.1.10.0200.00014.01
7.1.00.0190.00313.89
5.6.380.0030.01314.61

preferences:
58.11 ms | 400 KiB | 5 Q