3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <html> <head><title></title></head> <body> <content type="text">the content</content> </body> </html> XML; $xe = new SimpleXMLElement($xml); echo $xe->content[0]; echo $xe->asXML();

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.0150.00018.55
8.3.50.0110.01122.16
8.3.40.0120.00319.27
8.3.30.0040.01219.20
8.3.20.0040.00420.58
8.3.10.0080.00022.34
8.3.00.0070.00022.76
8.2.180.0040.01516.73
8.2.170.0070.00722.96
8.2.160.0090.00921.19
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.20
8.2.110.0060.00319.40
8.2.100.0060.00918.09
8.2.90.0060.00319.55
8.2.80.0030.00518.30
8.2.70.0050.00318.00
8.2.60.0040.00418.15
8.2.50.0000.00818.07
8.2.40.0070.00318.59
8.2.30.0070.00018.30
8.2.20.0040.00417.96
8.2.10.0030.00617.90
8.2.00.0040.00417.98
8.1.280.0100.01025.92
8.1.270.0040.00424.09
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0030.00624.16
8.1.230.0090.00321.10
8.1.220.0080.00018.77
8.1.210.0080.00021.19
8.1.200.0030.00717.35
8.1.190.0000.00817.68
8.1.180.0000.00818.10
8.1.170.0030.00618.88
8.1.160.0030.00622.13
8.1.150.0040.00418.85
8.1.140.0000.00717.61
8.1.130.0000.00718.01
8.1.120.0040.00417.71
8.1.110.0030.00617.68
8.1.100.0000.00717.53
8.1.90.0040.00417.57
8.1.80.0000.00717.52
8.1.70.0040.00417.64
8.1.60.0040.00417.64
8.1.50.0080.00017.59
8.1.40.0040.00417.62
8.1.30.0030.00517.85
8.1.20.0040.00417.92
8.1.10.0000.00917.88
8.1.00.0060.00317.79
8.0.300.0000.00720.28
8.0.290.0040.00417.43
8.0.280.0040.00418.68
8.0.270.0030.00317.53
8.0.260.0030.00517.16
8.0.250.0030.00317.31
8.0.240.0050.00217.14
8.0.230.0000.00717.03
8.0.220.0040.00417.00
8.0.210.0000.00717.14
8.0.200.0030.00317.17
8.0.190.0000.00717.20
8.0.180.0030.00317.13
8.0.170.0000.00817.05
8.0.160.0080.00017.25
8.0.150.0040.00717.02
8.0.140.0030.00516.97
8.0.130.0080.00013.51
8.0.120.0060.00317.17
8.0.110.0040.00417.08
8.0.100.0050.00217.02
8.0.90.0040.00417.02
8.0.80.0090.00617.19
8.0.70.0050.00317.23
8.0.60.0040.00417.01
8.0.50.0040.00417.07
8.0.30.0090.01317.24
8.0.20.0090.01117.59
8.0.10.0040.00417.10
8.0.00.0040.01517.07
7.4.330.0000.00515.27
7.4.320.0000.00616.74
7.4.300.0040.00416.71
7.4.290.0040.00416.66
7.4.280.0030.00316.63
7.4.270.0030.00316.77
7.4.260.0030.00316.85
7.4.250.0040.00416.77
7.4.240.0020.00516.74
7.4.230.0030.00316.50
7.4.220.0130.01016.61
7.4.210.0060.00816.71
7.4.200.0030.00316.84
7.4.190.0000.00716.87
7.4.160.0040.01316.68
7.4.150.0120.01017.40
7.4.140.0070.01017.86
7.4.130.0080.00916.78
7.4.120.0110.00516.81
7.4.110.0130.00616.85
7.4.100.0140.00316.81
7.4.90.0150.00616.80
7.4.80.0070.01416.84
7.4.70.0070.01016.86
7.4.60.0090.01316.78
7.4.50.0000.00816.81
7.4.40.0150.00322.77
7.4.30.0070.01416.52
7.4.00.0070.01014.88
7.3.330.0000.00513.40
7.3.320.0020.00213.44
7.3.310.0070.00016.43
7.3.300.0030.00316.50
7.3.290.0090.00916.59
7.3.280.0080.00816.48
7.3.270.0100.00717.40
7.3.260.0120.00616.61
7.3.250.0110.00816.69
7.3.240.0000.02116.84
7.3.230.0040.01216.52
7.3.210.0070.01116.61
7.3.200.0090.01219.39
7.3.190.0090.01216.74
7.3.180.0090.01216.47
7.3.170.0140.00316.57
7.3.160.0100.00716.87
7.3.120.0100.00715.14
7.3.110.0030.01014.75
7.3.100.0090.00614.68
7.3.90.0080.00415.11
7.3.80.0030.00614.98
7.3.70.0080.00314.84
7.3.60.0030.01015.14
7.3.50.0070.00714.80
7.3.40.0070.00414.84
7.3.30.0070.00714.98
7.3.20.0060.00916.63
7.3.10.0000.01116.79
7.3.00.0030.01316.82
7.2.330.0220.00316.98
7.2.320.0060.01217.04
7.2.310.0070.01016.62
7.2.300.0110.00616.77
7.2.290.0070.01516.95
7.2.240.0030.00615.44
7.2.230.0030.01014.91
7.2.220.0060.00614.96
7.2.210.0060.00614.86
7.2.200.0050.00515.18
7.2.190.0030.01015.04
7.2.180.0070.00715.33
7.2.170.0000.01415.24
7.2.160.0090.00915.23
7.2.150.0120.00317.09
7.2.140.0070.01016.96
7.2.130.0070.00717.04
7.2.120.0060.00616.71
7.2.110.0060.01016.95
7.2.100.0040.01116.98
7.2.90.0090.00617.14
7.2.80.0030.01016.99
7.2.70.0030.01316.89
7.2.60.0060.00916.68
7.2.50.0030.00917.08
7.2.40.0030.01217.02
7.2.30.0060.01017.00
7.2.20.0070.01116.90
7.2.10.0080.00816.88
7.2.00.0040.01117.98
7.1.330.0070.00715.89
7.1.320.0070.00715.80
7.1.310.0040.00815.79
7.1.300.0000.00915.70
7.1.290.0070.00715.89
7.1.280.0060.00916.06
7.1.270.0080.00415.61
7.1.260.0060.01015.75
7.1.250.0060.00915.65
7.1.100.0070.00318.25
7.1.70.0000.01016.96
7.1.60.0070.01819.82
7.1.50.0000.01117.00
7.1.00.0100.07022.50
7.0.200.0120.00616.84
7.0.140.0100.06722.12
7.0.100.0100.07021.79
7.0.90.0030.05321.87
7.0.80.0100.08021.77
7.0.70.0100.08021.76
7.0.60.0130.05321.86
7.0.50.0070.07722.16
7.0.40.0130.07720.07
7.0.30.0000.05720.15
7.0.20.0070.07320.27
7.0.10.0230.07020.26
7.0.00.0070.08320.19
5.6.280.0070.07021.17
5.6.250.0030.08720.53
5.6.240.0170.07320.54
5.6.230.0100.08320.64
5.6.220.0030.07320.75
5.6.210.0070.06320.85
5.6.200.0130.08021.12
5.6.190.0100.08021.06
5.6.180.0030.09021.08
5.6.170.0130.07721.09
5.6.160.0030.08021.28
5.6.150.0130.07721.14
5.6.140.0000.05321.01
5.6.130.0070.08321.18
5.6.120.0200.06721.14
5.6.110.0000.08021.13
5.6.100.0130.07721.07
5.6.90.0030.08721.23
5.6.80.0000.06720.48
5.6.70.0070.08020.66
5.6.60.0000.06720.52
5.6.50.0130.07020.52
5.6.40.0100.07320.36
5.6.30.0300.03320.48
5.6.20.0170.07320.46
5.6.10.0070.07320.49
5.6.00.0170.07020.47
5.5.380.0070.08020.41
5.5.370.0070.04320.45
5.5.360.0070.07320.55
5.5.350.0100.08020.46
5.5.340.0000.08720.88
5.5.330.0170.07720.93
5.5.320.0070.08320.96
5.5.310.0100.07720.90
5.5.300.0070.08720.96
5.5.290.0030.06021.00
5.5.280.0030.08720.86
5.5.270.0070.06020.83
5.5.260.0100.07020.85
5.5.250.0100.06020.73
5.5.240.0030.08720.38
5.5.230.0030.08320.34
5.5.220.0070.07720.33
5.5.210.0130.06720.38
5.5.200.0130.07020.39
5.5.190.0030.08320.39
5.5.180.0070.06720.31
5.5.160.0030.04320.34
5.5.150.0030.08020.29
5.5.140.0070.07320.16
5.5.130.0030.08320.23
5.5.120.0030.07720.35
5.5.110.0030.08320.19
5.5.100.0070.08020.24
5.5.90.0070.07020.09
5.5.80.0100.07020.18
5.5.70.0130.07320.21
5.5.60.0100.07320.00
5.5.50.0100.07320.25
5.5.40.0130.05720.09
5.5.30.0200.06320.00
5.5.20.0200.06320.26
5.5.10.0170.06720.06
5.5.00.0030.08320.23
5.4.450.0130.07319.49
5.4.440.0100.07719.44
5.4.430.0030.07319.50
5.4.420.0030.08319.51
5.4.410.0070.04319.36
5.4.400.0000.08019.21
5.4.390.0070.04319.21
5.4.380.0130.06719.16
5.4.370.0030.06018.95
5.4.360.0170.06019.19
5.4.350.0030.07019.32
5.4.340.0030.06719.19
5.4.320.0030.08018.86
5.4.310.0070.07718.89
5.4.300.0070.07719.20
5.4.290.0100.07019.10
5.4.280.0030.05719.21
5.4.270.0200.06019.19
5.4.260.0000.08319.18
5.4.250.0100.05318.85
5.4.240.0100.05719.36
5.4.230.0100.05019.15
5.4.220.0070.06319.11
5.4.210.0130.04719.16
5.4.200.0030.07719.10
5.4.190.0030.05719.18
5.4.180.0030.04719.18
5.4.170.0200.07019.16
5.4.160.0030.08019.14
5.4.150.0200.05319.17
5.4.140.0070.07316.52
5.4.130.0070.06716.41
5.4.120.0070.06716.52
5.4.110.0070.07716.44
5.4.100.0070.07016.63
5.4.90.0100.06716.52
5.4.80.0070.07016.37
5.4.70.0070.07016.37
5.4.60.0070.07016.54
5.4.50.0100.05016.40
5.4.40.0100.06716.52
5.4.30.0000.08016.36
5.4.20.0030.07016.54
5.4.10.0000.07316.50
5.4.00.0000.04716.02
5.3.290.0100.06014.80
5.3.280.0130.07014.65
5.3.270.0000.08014.54
5.3.260.0030.08314.74
5.3.250.0070.07714.73
5.3.240.0100.03314.53
5.3.230.0000.08014.65
5.3.220.0030.06314.68
5.3.210.0130.07014.59
5.3.200.0030.08014.62
5.3.190.0100.07014.63
5.3.180.0070.06714.59
5.3.170.0070.08014.61
5.3.160.0100.07314.47
5.3.150.0070.05714.61
5.3.140.0200.05014.44
5.3.130.0200.06314.45
5.3.120.0070.07714.60
5.3.110.0000.07714.45
5.3.100.0030.07314.09
5.3.90.0100.06714.16
5.3.80.0130.06714.13
5.3.70.0100.07713.84
5.3.60.0100.04014.04
5.3.50.0100.07314.09
5.3.40.0030.06714.09
5.3.30.0070.07014.05
5.3.20.0030.07313.75
5.3.10.0030.07313.79
5.3.00.0070.07313.69
5.2.170.0130.03012.20
5.2.160.0000.03712.20
5.2.150.0030.06012.20
5.2.140.0100.05712.20
5.2.130.0030.06312.20
5.2.120.0070.04712.20
5.2.110.0070.03712.20
5.2.100.0030.05312.20
5.2.90.0070.05712.20
5.2.80.0100.05312.20
5.2.70.0000.06712.20
5.2.60.0030.04712.20
5.2.50.0030.06012.20
5.2.40.0070.05712.20
5.2.30.0070.06012.20
5.2.20.0070.05712.20
5.2.10.0130.04312.20
5.2.00.0070.05712.20
5.1.60.0000.05712.20
5.1.50.0100.05012.20
5.1.40.0030.05312.20
5.1.30.0030.05712.20
5.1.20.0100.05312.20
5.1.10.0070.05312.20
5.1.00.0030.06012.20
5.0.50.0070.04012.20
5.0.40.0030.04312.20
5.0.30.0000.06012.20
5.0.20.0030.03012.20
5.0.10.0000.04712.20
5.0.00.0030.06312.20
4.4.90.0000.03712.20
4.4.80.0030.02312.20
4.4.70.0030.03012.20
4.4.60.0000.03312.20
4.4.50.0000.03712.20
4.4.40.0000.05012.20
4.4.30.0070.02712.20
4.4.20.0030.03712.20
4.4.10.0000.03712.20
4.4.00.0030.05712.20
4.3.110.0030.03712.20
4.3.100.0000.03712.20
4.3.90.0000.03712.20
4.3.80.0030.05012.20
4.3.70.0000.02312.20
4.3.60.0000.03712.20
4.3.50.0000.02312.20
4.3.40.0030.04712.20
4.3.30.0000.03312.20
4.3.20.0000.03312.20
4.3.10.0030.03312.20
4.3.00.0030.03312.20

preferences:
46.2 ms | 401 KiB | 5 Q