3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link http://stackoverflow.com/a/29864193/367456 */ $buffer = <<<XML <?xml version="1.0"?> <!-- ==================================== xhtml-lat1.ent ==================================== --> <!-- Portions (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --> <!-- Character entity set. Typical invocation: <!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> %HTMLlat1; --> <!ENTITY nbsp "&#160;"> <!-- no-break space = non-breaking space, U+00A0 ISOnum --><foo>&nbsp;</foo> XML; libxml_disable_entity_loader(false); $xml = simplexml_load_string($buffer); $xml->asXML('php://output'); $xml = simplexml_load_string($buffer, 'SimpleXMLElement', LIBXML_NOENT); $xml->asXML('php://output');

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.55
8.3.50.0180.00321.37
8.3.40.0100.00719.23
8.3.30.0170.00318.80
8.3.20.0040.00420.62
8.3.10.0080.00023.80
8.3.00.0050.00322.75
8.2.180.0120.00618.43
8.2.170.0130.00722.96
8.2.160.0100.00620.82
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.75
8.2.110.0070.00321.12
8.2.100.0040.00717.97
8.2.90.0090.00018.28
8.2.80.0000.00818.41
8.2.70.0080.00018.05
8.2.60.0040.00418.16
8.2.50.0030.00518.10
8.2.40.0000.00820.72
8.2.30.0000.00718.20
8.2.20.0040.00417.79
8.2.10.0080.00018.33
8.2.00.0000.00718.24
8.1.280.0120.00925.92
8.1.270.0040.00420.50
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0030.00622.73
8.1.230.0080.00322.75
8.1.220.0000.00817.74
8.1.210.0050.00318.84
8.1.200.0000.00817.60
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0050.00318.71
8.1.160.0050.00322.35
8.1.150.0030.00519.00
8.1.140.0000.00817.57
8.1.130.0000.00717.89
8.1.120.0020.00517.55
8.1.110.0040.00417.64
8.1.100.0050.00217.48
8.1.90.0030.00417.63
8.1.80.0000.00717.49
8.1.70.0000.00717.50
8.1.60.0000.00817.68
8.1.50.0030.00617.75
8.1.40.0040.00417.60
8.1.30.0030.00517.73
8.1.20.0090.00017.80
8.1.10.0000.00817.79
8.1.00.0060.00317.77
8.0.300.0040.00420.24
8.0.290.0080.00016.88
8.0.280.0030.00318.58
8.0.270.0050.00217.41
8.0.260.0030.00317.27
8.0.250.0030.00317.11
8.0.240.0000.00617.10
8.0.230.0000.00717.12
8.0.220.0030.00317.24
8.0.210.0030.00517.21
8.0.200.0050.00217.30
8.0.190.0000.00717.02
8.0.180.0000.00817.15
8.0.170.0050.00316.98
8.0.160.0000.00717.12
8.0.150.0030.00517.08
8.0.140.0070.00416.99
8.0.130.0030.00313.63
8.0.120.0030.00517.07
8.0.110.0040.00416.99
8.0.100.0000.00716.95
8.0.90.0000.00817.06
8.0.80.0090.00617.08
8.0.70.0040.00416.93
8.0.60.0050.00317.02
8.0.50.0040.00417.14
8.0.30.0070.01217.07
8.0.20.0100.00917.40
8.0.10.0000.00717.20
8.0.00.0090.00917.04
7.4.330.0030.00315.17
7.4.320.0060.00016.67
7.4.300.0000.00716.71
7.4.290.0000.00816.73
7.4.280.0040.00416.68
7.4.270.0030.00316.77
7.4.260.0070.00016.73
7.4.250.0040.00716.64
7.4.240.0020.00516.83
7.4.230.0040.00416.94
7.4.220.0100.01016.66
7.4.210.0080.01116.81
7.4.200.0040.00416.75
7.4.160.0110.00916.63
7.4.150.0130.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01516.79
7.4.120.0110.00916.69
7.4.110.0120.00616.68
7.4.100.0120.00616.61
7.4.90.0070.01116.82
7.4.80.0080.00819.39
7.4.70.0170.00616.48
7.4.60.0030.01316.63
7.4.50.0060.00016.78
7.4.40.0070.01116.66
7.4.30.0130.01016.69
7.4.00.0030.01315.15
7.3.330.0050.00013.30
7.3.320.0000.00513.50
7.3.310.0050.00516.49
7.3.300.0070.00016.36
7.3.290.0040.00416.39
7.3.280.0050.01316.47
7.3.270.0100.00717.40
7.3.260.0100.01016.42
7.3.250.0080.01316.66
7.3.240.0110.00616.59
7.3.230.0060.01016.43
7.3.210.0150.00916.73
7.3.200.0040.01819.39
7.3.190.0100.00716.75
7.3.180.0130.00916.67
7.3.170.0000.01816.40
7.3.160.0090.01216.52
7.3.120.0120.00415.04
7.3.110.0090.00614.75
7.3.100.0070.01014.89
7.3.90.0070.00314.89
7.3.80.0030.00614.78
7.3.70.0040.01114.86
7.3.60.0030.01114.84
7.3.50.0070.00315.14
7.3.40.0090.00614.95
7.3.30.0040.00414.61
7.3.20.0100.00316.75
7.3.10.0030.00616.72
7.3.00.0030.00816.85
7.2.330.0130.00616.81
7.2.320.0150.00616.84
7.2.310.0060.01216.80
7.2.300.0050.01116.57
7.2.290.0070.01116.88
7.2.240.0070.01114.85
7.2.230.0070.01115.16
7.2.220.0120.00314.98
7.2.210.0030.01414.79
7.2.200.0090.00615.06
7.2.190.0000.01615.16
7.2.180.0030.01015.31
7.2.170.0000.01715.12
7.2.160.0060.00315.23
7.2.150.0050.00316.80
7.2.140.0000.01116.77
7.2.130.0030.01016.85
7.2.120.0100.00716.90
7.2.110.0070.01016.96
7.2.100.0080.00016.71
7.2.90.0090.00416.63
7.2.80.0060.00616.87
7.2.70.0070.01016.80
7.2.60.0110.00517.04
7.2.50.0000.01717.01
7.2.40.0070.01016.98
7.2.30.0130.00317.05
7.2.20.0070.00416.80
7.2.10.0060.00616.95
7.2.00.0020.01217.98
7.1.330.0070.01015.88
7.1.320.0070.00715.88
7.1.310.0030.01015.77
7.1.300.0030.00515.68
7.1.290.0090.00615.99
7.1.280.0040.00715.81
7.1.270.0070.00715.70
7.1.260.0040.00815.88
7.1.250.0030.00516.17
7.1.200.0090.00015.99
7.1.100.0030.01018.13
7.1.70.0000.00916.99
7.1.60.0120.01220.03
7.1.50.0100.01316.75
7.1.00.0100.07022.51
7.0.200.0450.01014.72
7.0.60.0330.07020.15
7.0.50.0030.04717.99
7.0.40.0030.05320.28
7.0.30.0630.06020.32
7.0.20.0270.04020.38
7.0.10.0070.05020.32
7.0.00.0100.04020.31
5.6.280.0000.03320.87
5.6.210.0100.04320.54
5.6.200.0070.07018.25
5.6.190.0100.09320.49
5.6.180.0400.06320.78
5.6.170.0200.05020.55
5.6.160.0070.04020.60
5.6.150.0100.05018.32
5.6.140.0030.06018.22
5.6.130.0070.03718.21
5.6.120.0100.06721.16
5.6.110.0130.08321.03
5.6.100.0200.05321.03
5.6.90.0130.07720.95
5.6.80.0000.04320.41
5.5.350.4370.03720.42
5.5.340.0030.08017.99
5.5.330.0030.04720.36
5.5.320.0300.08320.49
5.5.310.0270.08020.35
5.5.300.0030.08018.03
5.5.290.0030.04718.01
5.5.280.0130.07720.94
5.5.270.0070.06720.96
5.5.260.0100.08320.96
5.5.250.0130.07720.54
5.5.240.0230.05320.30
5.4.450.0970.05019.51
5.4.440.0800.06319.52
5.4.430.0870.05319.50
5.4.420.0930.04719.67
5.4.410.1000.06719.25
5.4.400.0900.04719.32
5.4.390.0830.05719.34
5.4.380.0870.05019.18
5.4.370.0870.05019.32
5.4.360.0900.05319.27
5.4.350.0930.04719.32
5.4.340.0870.05719.38
5.4.320.0870.05319.31
5.4.310.0900.04719.22
5.4.300.0900.05019.34
5.4.290.0730.05319.34
5.4.280.0930.04719.35
5.4.270.0770.05319.18
5.4.260.0700.06019.30
5.4.250.0800.04719.18
5.4.240.0830.04719.27
5.4.230.0770.05019.21
5.4.220.0730.05719.21
5.4.210.0930.04319.32
5.4.200.0770.05016.84
5.4.190.0770.05019.12
5.4.180.1030.06319.06
5.4.170.1070.07019.19
5.4.160.0870.05319.39
5.4.150.1070.07019.23
5.4.140.0930.05316.43
5.4.130.0770.05716.74
5.4.120.0700.05716.63
5.4.110.0100.04716.52
5.4.100.0130.05316.68
5.4.90.0370.05716.64
5.4.80.0870.04716.60
5.4.70.0700.06316.60
5.4.60.0030.06316.50
5.4.50.0170.04016.65
5.4.40.0270.06316.63
5.4.30.0300.04016.50
5.4.20.0270.04316.67

preferences:
56.48 ms | 401 KiB | 5 Q