3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument('1.0', 'utf-8'); $rss = $doc->appendChild($doc->createElement('rss')); $channel = $rss->appendChild($doc->createElement('channel')); $channel->setAttribute('xmlns:g', 'http://foo.com/foo/bar/baz'); $item = $channel->appendChild($doc->createElement('item')); $foo = $item->appendChild($doc->createElement('g:foo')); $foo->appendChild($doc->createTextNode('bar')); echo $doc->saveXML() . "\n"; $xpath = new DOMXPath($doc); echo $xpath->find('/channel')->item(0)->tagName;

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.70.0120.00918.68
8.3.60.0120.00618.93
8.3.50.0150.00322.17
8.3.40.0070.00719.04
8.3.30.0100.00319.34
8.3.20.0000.00720.59
8.3.10.0000.00723.72
8.3.00.0040.00421.11
8.2.180.0030.01318.71
8.2.170.0030.01222.96
8.2.160.0100.00320.78
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.61
8.2.110.0040.00422.58
8.2.100.0130.00020.68
8.2.90.0030.00619.59
8.2.80.0050.00317.98
8.2.70.0030.00617.88
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0080.00018.59
8.2.30.0060.00318.44
8.2.20.0050.00317.95
8.2.10.0040.00418.27
8.2.00.0030.00619.71
8.1.280.0120.00325.92
8.1.270.0100.01024.21
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01022.30
8.1.230.0060.00619.33
8.1.220.0040.00418.04
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0050.00517.63
8.1.180.0050.00318.10
8.1.170.0030.00618.86
8.1.160.0040.00422.36
8.1.150.0040.00418.96
8.1.140.0040.00417.76
8.1.130.0000.00718.09
8.1.120.0000.00717.86
8.1.110.0000.00717.80
8.1.100.0020.00517.77
8.1.90.0000.00817.63
8.1.80.0040.00417.66
8.1.70.0040.00417.71
8.1.60.0030.01017.93
8.1.50.0030.00517.84
8.1.40.0030.00617.91
8.1.30.0030.00617.96
8.1.20.0040.00417.98
8.1.10.0080.00017.77
8.1.00.0050.00317.64
8.0.300.0070.00018.77
8.0.290.0040.00417.13
8.0.280.0030.00318.77
8.0.270.0030.00317.56
8.0.260.0000.00717.61
8.0.250.0040.00417.43
8.0.240.0040.00417.23
8.0.230.0030.00317.43
8.0.220.0000.00817.30
8.0.210.0030.00317.34
8.0.200.0000.00617.40
8.0.190.0070.00017.41
8.0.180.0040.00417.18
8.0.170.0030.00617.29
8.0.160.0000.00817.25
8.0.150.0000.00717.19
8.0.140.0070.00017.30
8.0.130.0060.00013.64
8.0.120.0000.00817.33
8.0.110.0040.00417.37
8.0.100.0040.00417.30
8.0.90.0000.00717.19
8.0.80.0090.01017.25
8.0.70.0070.00017.33
8.0.60.0040.00417.19
8.0.50.0000.00717.23
8.0.30.0100.00917.39
8.0.20.0090.00917.46
8.0.10.0020.00517.18
8.0.00.0110.00616.89
7.4.330.0050.00015.36
7.4.320.0000.00616.92
7.4.300.0030.00316.84
7.4.290.0000.00816.63
7.4.280.0030.00516.82
7.4.270.0040.00316.78
7.4.260.0070.00016.98
7.4.250.0070.00016.91
7.4.240.0040.00416.70
7.4.230.0000.00716.98
7.4.220.0150.00316.95
7.4.210.0060.00916.82
7.4.200.0030.00516.89
7.4.160.0100.00716.70
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0100.01116.85
7.4.120.0150.00216.90
7.4.110.0100.00616.80
7.4.100.0070.01016.82
7.4.90.0160.00416.66
7.4.80.0130.01019.39
7.4.70.0060.00916.85
7.4.60.0040.01416.94
7.4.50.0040.00416.67
7.4.40.0100.00716.93
7.4.30.0080.00916.76
7.4.00.0060.00915.24
7.3.330.0030.00313.26
7.3.320.0050.00013.48
7.3.310.0020.00516.47
7.3.300.0030.00316.64
7.3.290.0070.00716.50
7.3.280.0060.01416.54
7.3.270.0130.01017.40
7.3.260.0120.00616.77
7.3.250.0100.01116.72
7.3.240.0170.00016.66
7.3.230.0090.00916.64
7.3.210.0080.01116.68
7.3.200.0130.00719.39
7.3.190.0090.00916.69
7.3.180.0100.00716.69
7.3.170.0060.00916.56
7.3.160.0160.00616.55
7.3.120.0070.00714.89
7.2.330.0140.01117.14
7.2.320.0030.01316.92
7.2.310.0060.01716.66
7.2.300.0090.00616.62
7.2.290.0060.01517.20
7.2.60.0030.01016.96
7.2.00.0000.01219.59
7.1.200.0130.00315.81
7.1.100.0030.01018.14
7.1.70.0000.00817.02
7.1.60.0160.00919.70
7.1.50.0040.01817.14
7.1.00.0070.07022.42
7.0.200.0000.00817.01
7.0.140.0030.07322.11
7.0.100.0200.05020.11
7.0.90.0070.04020.18
7.0.80.0130.08720.13
7.0.70.0030.07320.04
7.0.60.0130.05720.04
7.0.50.0200.07020.37
7.0.40.0130.06320.18
7.0.30.0000.04720.15
7.0.20.0100.06720.27
7.0.10.0100.06320.19
7.0.00.0070.04020.24
5.6.280.0100.06721.03
5.6.250.0030.04320.64
5.6.240.0030.06320.86
5.6.230.0070.04720.67
5.6.220.0070.05320.78
5.6.210.0030.06020.74
5.6.200.0000.09321.19
5.6.190.0100.06021.11
5.6.180.0100.05021.19
5.6.170.0070.04021.13
5.6.160.0030.05021.25
5.6.150.0130.05021.23
5.6.140.0070.04021.17
5.6.130.0070.04721.15
5.6.120.0070.05021.18
5.6.110.0030.04321.18
5.6.100.0130.04321.12
5.6.90.0170.07021.20
5.6.80.0100.05020.57
5.6.70.0070.04720.60
5.6.60.0070.07020.62
5.6.50.0070.04020.50
5.6.40.0170.05320.53
5.6.30.0030.04320.52
5.6.20.0000.04720.54
5.6.10.0030.04020.49
5.6.00.0100.06020.45
5.5.380.0070.03720.56
5.5.370.0100.04020.46
5.5.360.0070.05020.47
5.5.350.0170.03020.60
5.5.340.0100.06720.91
5.5.330.0030.05021.00
5.5.320.0070.05321.03
5.5.310.0000.07720.96
5.5.300.0100.05021.00
5.5.290.0100.07320.98
5.5.280.0030.07720.91
5.5.270.0070.05721.00
5.5.260.0070.04720.99
5.5.250.0130.06720.79
5.5.240.0030.05320.39
5.5.230.0130.04320.36
5.5.220.0000.06020.35
5.5.210.0070.04020.31
5.5.200.0070.04320.40
5.5.190.0070.07720.23
5.5.180.0070.04720.38
5.5.160.0030.05020.24
5.5.150.0000.05020.30
5.5.140.0030.05020.39
5.5.130.0100.05720.39
5.5.120.0030.04320.35
5.5.110.0070.05320.22
5.5.100.0030.06020.25
5.5.90.0000.04320.18
5.5.80.0100.04320.21
5.5.70.0000.04320.16
5.5.60.0030.04020.14
5.5.50.0030.07320.19
5.5.40.0070.05020.27
5.5.30.0100.05020.11
5.5.20.0070.06320.13
5.5.10.0070.05020.17
5.5.00.0200.04020.21
5.4.450.0030.04319.50
5.4.440.0100.06019.52
5.4.430.0100.07019.50
5.4.420.0170.06019.57
5.4.410.0130.04319.45
5.4.400.0000.05319.16
5.4.390.0070.04319.25
5.4.380.0100.04019.18
5.4.370.0130.06018.98
5.4.360.0000.04319.00
5.4.350.0000.06019.39
5.4.340.0130.04019.18
5.4.320.0030.04019.02
5.4.310.0000.04319.18
5.4.300.0070.03718.98
5.4.290.0030.05319.16
5.4.280.0170.03719.17
5.4.270.0000.04319.30
5.4.260.0170.04018.98
5.4.250.0100.03319.17
5.4.240.0030.04319.16
5.4.230.0070.03718.98
5.4.220.0000.05719.34
5.4.210.0000.05019.18
5.4.200.0000.04319.08
5.4.190.0070.03719.19
5.4.180.0100.03319.15
5.4.170.0030.04319.20
5.4.160.0070.05719.16
5.4.150.0070.04319.23
5.4.140.0000.05316.54
5.4.130.0130.03316.57
5.4.120.0030.03716.52
5.4.110.0170.05716.57
5.4.100.0170.03016.49
5.4.90.0030.03716.63
5.4.80.0070.04016.59
5.4.70.0070.04716.59
5.4.60.0130.06716.52
5.4.50.0100.03016.54
5.4.40.0130.03716.48
5.4.30.0030.04716.49
5.4.20.0030.07316.41
5.4.10.0030.04016.41
5.4.00.0070.05015.98
5.3.290.0030.05714.83
5.3.280.0070.03714.67
5.3.270.0100.03714.71
5.3.260.0070.06014.74
5.3.250.0030.04714.66
5.3.240.0130.05314.75
5.3.230.0070.03714.63
5.3.220.0100.04714.72
5.3.210.0000.06714.71
5.3.200.0030.04014.69
5.3.190.0100.04314.70
5.3.180.0230.02314.69
5.3.170.0000.04314.66
5.3.160.0000.04714.71
5.3.150.0030.04314.70
5.3.140.0070.03314.68
5.3.130.0030.04314.68
5.3.120.0030.04014.65
5.3.110.0070.04714.59
5.3.100.0030.04314.18
5.3.90.0000.04714.08
5.3.80.0100.04714.07
5.3.70.0100.04714.15
5.3.60.0070.04313.96
5.3.50.0030.06014.07
5.3.40.0130.04314.07
5.3.30.0070.03313.88
5.3.20.0070.04313.82
5.3.10.0070.06013.79
5.3.00.0000.05313.79
5.2.170.0070.04011.20
5.2.160.0030.04011.32
5.2.150.0070.02711.21
5.2.140.0000.03311.18
5.2.130.0000.05011.20
5.2.120.0070.03311.23
5.2.110.0030.04011.16
5.2.100.0030.03711.23
5.2.90.0030.03711.29
5.2.80.0100.04711.16
5.2.70.0030.04011.15
5.2.60.0100.05011.21
5.2.50.0070.04711.20
5.2.40.0100.03011.04
5.2.30.0070.04711.10
5.2.20.0030.04711.02
5.2.10.0000.03311.05
5.2.00.0000.03310.91
5.1.60.0030.05710.65
5.1.50.0030.05710.65
5.1.40.0000.03010.65
5.1.30.0030.06010.65
5.1.20.0030.04310.65
5.1.10.0000.05710.65
5.1.00.0100.05010.65
5.0.50.0030.04710.65
5.0.40.0170.02710.65
5.0.30.0070.06710.65
5.0.20.0000.03310.65
5.0.10.0030.02310.65
5.0.00.0030.05310.65
4.4.90.0000.02310.65
4.4.80.0070.02710.65
4.4.70.0000.03010.65
4.4.60.0100.01710.65
4.4.50.0030.03010.65
4.4.40.0070.05010.65
4.4.30.0000.02310.65
4.4.20.0000.02310.65
4.4.10.0100.02010.65
4.4.00.0070.05310.65
4.3.110.0000.01710.65
4.3.100.0070.02010.65
4.3.90.0030.01710.65
4.3.80.0070.02310.65
4.3.70.0000.02010.65
4.3.60.0000.02010.65
4.3.50.0030.01710.65
4.3.40.0000.03010.65
4.3.30.0030.01310.65
4.3.20.0000.01710.65
4.3.10.0000.01710.65
4.3.00.0000.01710.65

preferences:
46.39 ms | 401 KiB | 5 Q