3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link http://stackoverflow.com/a/29864193/367456 */ $buffer = <<<XML <?xml version="1.0"?><!DOCTYPE xml <!-- ==================================== 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.01418.70
8.3.50.0070.01016.16
8.3.40.0080.00819.00
8.3.30.0140.00019.03
8.3.20.0050.00320.63
8.3.10.0020.00523.91
8.3.00.0040.00422.70
8.2.180.0040.01418.54
8.2.170.0070.00722.96
8.2.160.0100.00320.78
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0030.00617.62
8.2.110.0000.01120.69
8.2.100.0080.00418.03
8.2.90.0040.00419.48
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0000.00817.92
8.2.50.0030.00619.35
8.2.40.0000.00921.18
8.2.30.0070.00018.15
8.2.20.0040.00418.04
8.2.10.0040.00418.23
8.2.00.0000.00718.46
8.1.280.0150.00625.92
8.1.270.0030.00620.62
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00624.02
8.1.230.0070.00321.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.61
8.1.190.0040.00417.25
8.1.180.0100.00018.10
8.1.170.0040.00418.83
8.1.160.0000.00722.07
8.1.150.0040.00418.97
8.1.140.0030.00517.56
8.1.130.0030.00317.88
8.1.120.0040.00417.56
8.1.110.0070.00017.47
8.1.100.0040.00417.59
8.1.90.0050.00317.60
8.1.80.0040.00417.62
8.1.70.0030.00317.61
8.1.60.0030.00517.85
8.1.50.0000.00917.82
8.1.40.0040.00417.63
8.1.30.0040.00417.83
8.1.20.0040.00417.78
8.1.10.0040.00417.65
8.1.00.0050.00517.72
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0000.00718.64
8.0.270.0080.00017.44
8.0.260.0080.00017.43
8.0.250.0000.00717.14
8.0.240.0000.00717.18
8.0.230.0000.00717.00
8.0.220.0050.00317.14
8.0.210.0030.00317.12
8.0.200.0000.00617.07
8.0.190.0040.00417.17
8.0.180.0040.00417.11
8.0.170.0040.00417.03
8.0.160.0000.00717.24
8.0.150.0070.00017.02
8.0.140.0030.00917.09
8.0.130.0000.00613.62
8.0.120.0040.00417.06
8.0.110.0000.00717.24
8.0.100.0040.00416.95
8.0.90.0040.00416.95
8.0.80.0140.00717.05
8.0.70.0000.00717.13
8.0.60.0030.00517.01
8.0.50.0000.00717.14
8.0.30.0080.00917.29
8.0.20.0130.00617.40
8.0.10.0040.00417.27
8.0.00.0100.01216.99
7.4.330.0000.00515.47
7.4.320.0060.00016.75
7.4.300.0030.00316.84
7.4.290.0070.00016.70
7.4.280.0000.00816.65
7.4.270.0030.00316.74
7.4.260.0030.00316.73
7.4.250.0040.00416.58
7.4.240.0030.00516.80
7.4.230.0000.00816.70
7.4.220.0130.01016.76
7.4.210.0070.00716.72
7.4.200.0000.00816.54
7.4.160.0050.01016.58
7.4.150.0170.00017.40
7.4.140.0160.00517.86
7.4.130.0120.00616.71
7.4.120.0090.00916.71
7.4.110.0140.00616.60
7.4.100.0140.00916.79
7.4.90.0130.00316.75
7.4.80.0100.00719.39
7.4.70.0070.01116.64
7.4.60.0150.00016.76
7.4.50.0000.00616.52
7.4.40.0120.01016.51
7.4.30.0120.00916.70
7.4.00.0100.00515.16
7.3.330.0030.00313.30
7.3.320.0050.00013.26
7.3.310.0090.00016.32
7.3.300.0070.00016.38
7.3.290.0000.00816.49
7.3.280.0090.01016.50
7.3.270.0090.00917.40
7.3.260.0060.01116.66
7.3.250.0120.00616.45
7.3.240.0070.01016.52
7.3.230.0060.01216.77
7.3.210.0030.01416.50
7.3.200.0040.01419.39
7.3.190.0160.00016.65
7.3.180.0100.01016.55
7.3.170.0070.01116.69
7.3.160.0030.01616.59
7.3.120.0060.01314.98
7.3.110.0090.01014.59
7.3.100.0050.01114.78
7.3.90.0020.01314.78
7.3.80.0030.01114.83
7.3.70.0090.00615.01
7.3.60.0100.00314.85
7.3.50.0050.00714.90
7.3.40.0090.00814.70
7.3.30.0030.01114.73
7.3.20.0020.01116.70
7.3.10.0090.00616.61
7.3.00.0090.01016.56
7.2.330.0080.00916.82
7.2.320.0130.00916.80
7.2.310.0140.00416.59
7.2.300.0090.00616.67
7.2.290.0130.01216.82
7.2.250.0070.01215.01
7.2.240.0080.01015.08
7.2.230.0080.00715.12
7.2.220.0070.00714.78
7.2.210.0050.01015.17
7.2.200.0080.00615.17
7.2.190.0070.00715.07
7.2.180.0080.00815.08
7.2.170.0070.00915.22
7.2.130.0000.01416.80
7.2.120.0120.00616.57
7.2.110.0080.00816.73
7.2.100.0090.01216.39
7.2.90.0190.00016.70
7.2.80.0160.00916.73
7.2.70.0070.00716.89
7.2.60.0050.01116.66
7.2.50.0150.00716.75
7.2.40.0080.01516.94
7.2.30.0170.00416.48
7.2.20.0090.01116.66
7.2.10.0130.00716.79
7.2.00.0140.00518.18
7.1.330.0040.01015.91
7.1.320.0060.00915.96
7.1.310.0060.01015.90
7.1.300.0050.00915.67
7.1.290.0080.00515.80
7.1.280.0080.00615.70
7.1.270.0070.00515.71
7.1.260.0070.00715.75
7.1.250.0080.00715.47
7.1.200.0000.00615.62
7.1.100.0060.00917.84
7.1.70.0040.00417.19
7.1.60.0070.01520.03
7.1.50.0040.01817.05
7.1.00.0000.08022.52
7.0.200.0280.00714.99
7.0.60.0030.04320.09
7.0.50.0070.04018.09
7.0.40.0070.08720.20
7.0.30.0200.04720.38
7.0.20.0200.07320.29
7.0.10.0100.06320.28
7.0.00.0230.04320.40
5.6.280.0000.07321.08
5.6.210.0130.03020.87
5.6.200.0130.03018.19
5.6.190.0130.08320.70
5.6.180.0330.07020.54
5.6.170.0270.07720.63
5.6.160.0070.08320.58
5.6.150.0130.06718.25
5.6.140.0030.08318.29
5.6.130.0170.06718.37
5.6.120.0100.06321.22
5.6.110.0000.09021.03
5.6.100.0070.07721.19
5.6.90.0100.06321.16
5.6.80.0070.07320.58
5.6.70.3300.03320.58
5.5.350.0330.07020.41
5.5.340.0100.07718.22
5.5.330.0070.04020.32
5.5.320.0430.06320.45
5.5.310.0300.07020.49
5.5.300.0100.07318.20
5.5.290.0030.08318.21
5.5.280.0000.04321.05
5.5.270.0100.08020.88
5.5.260.0130.05320.93
5.5.250.0070.06720.66
5.5.240.0170.04020.21
5.4.450.0870.07019.71
5.4.440.0830.05719.54
5.4.430.0900.05319.64
5.4.420.0770.05319.36
5.4.410.0730.05719.38
5.4.400.0730.05319.30
5.4.390.0770.05319.13
5.4.380.0800.05719.34
5.4.370.1000.06719.34
5.4.360.0830.06319.08
5.4.350.0870.05319.37
5.4.340.0800.05319.19
5.4.320.0970.04319.38
5.4.310.0870.05319.17
5.4.300.0870.05019.02
5.4.290.0870.05019.18
5.4.280.0870.06319.32
5.4.270.0970.04319.22
5.4.260.0930.04319.04
5.4.250.0870.05719.29
5.4.240.0800.05019.02
5.4.230.0730.05318.99
5.4.220.0730.05319.34
5.4.210.0870.06019.23
5.4.200.0800.05016.81
5.4.190.0970.05719.02
5.4.180.0800.05019.06
5.4.170.0870.06319.18
5.4.160.0800.06019.41
5.4.150.0730.05019.05
5.4.140.0730.07016.55
5.4.130.0500.05316.70
5.4.120.0300.04716.65
5.4.110.0230.04716.57
5.4.100.0030.06016.57
5.4.90.0730.05016.62
5.4.80.0870.04316.60
5.4.70.0070.05716.60
5.4.60.0070.04716.55
5.4.50.0000.07316.67
5.4.40.0370.05316.50
5.4.30.0330.06716.63
5.4.20.0230.03716.50

preferences:
96.67 ms | 400 KiB | 5 Q