3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { libxml_use_internal_errors(true); $xml = new SimpleXMLElement('<test><b>& Fart</test></b>'); } catch (\Exception $e) { $xml = new SimpleXMLElement('<errors/>'); foreach(libxml_get_errors() as $error) { $xml->addChild('error', $error->message); }; libxml_clear_errors(); echo $xml->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.0120.00618.55
8.3.50.0040.01118.32
8.3.40.0090.00619.04
8.3.30.0100.00718.95
8.3.20.0080.00022.79
8.3.10.0040.00420.68
8.3.00.0080.00023.99
8.2.180.0060.00918.54
8.2.170.0110.01122.96
8.2.160.0090.00622.36
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00026.16
8.2.120.0070.00726.16
8.2.110.0050.00522.56
8.2.100.0090.00318.09
8.2.90.0070.00317.88
8.2.80.0050.00318.25
8.2.70.0080.00018.18
8.2.60.0040.00418.34
8.2.50.0060.00318.10
8.2.40.0000.00819.55
8.2.30.0040.00419.44
8.2.20.0070.00018.38
8.2.10.0000.00719.52
8.2.00.0030.00721.27
8.1.280.0100.00325.92
8.1.270.0080.00020.93
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0030.00624.20
8.1.230.0080.00419.23
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0030.00617.60
8.1.190.0000.00817.60
8.1.180.0000.00818.10
8.1.170.0080.00018.89
8.1.160.0050.00219.22
8.1.150.0030.00519.17
8.1.140.0000.00821.16
8.1.130.0030.00320.28
8.1.120.0030.00517.79
8.1.110.0000.00917.67
8.1.100.0070.00017.80
8.1.90.0000.00817.71
8.1.80.0000.00717.79
8.1.70.0080.00017.67
8.1.60.0040.00417.87
8.1.50.0000.00717.81
8.1.40.0030.00617.77
8.1.30.0000.00817.87
8.1.20.0050.00317.92
8.1.10.0060.00317.91
8.1.00.0040.00417.70
8.0.300.0090.00021.47
8.0.290.0050.00317.13
8.0.280.0040.00418.70
8.0.270.0000.00817.52
8.0.260.0040.00420.30
8.0.250.0050.00317.25
8.0.240.0060.00317.36
8.0.230.0030.00517.27
8.0.220.0040.00417.25
8.0.210.0050.00317.19
8.0.200.0030.00317.37
8.0.190.0040.00417.27
8.0.180.0000.00817.23
8.0.170.0000.00817.13
8.0.160.0000.00717.26
8.0.150.0050.00317.06
8.0.140.0040.00417.23
8.0.130.0000.00513.68
8.0.120.0050.00317.18
8.0.110.0000.00717.23
8.0.100.0070.00017.00
8.0.90.0050.00317.21
8.0.80.0100.01017.28
8.0.70.0040.00417.11
8.0.60.0050.00317.34
8.0.50.0060.00317.09
8.0.30.0040.01317.00
8.0.20.0090.00917.37
8.0.10.0040.00417.46
8.0.00.0110.01017.08
7.4.330.0000.00515.55
7.4.320.0030.00316.80
7.4.300.0060.00016.77
7.4.290.0040.00416.90
7.4.280.0000.00716.75
7.4.270.0000.00716.69
7.4.260.0000.00513.59
7.4.250.0070.00016.79
7.4.240.0030.00516.81
7.4.230.0030.00316.64
7.4.220.0000.00716.62
7.4.210.0070.01216.81
7.4.200.0000.00716.70
7.4.130.0100.01916.79
7.4.120.0150.00916.76
7.4.110.0130.00316.80
7.4.100.0060.01116.96
7.4.90.0000.01816.73
7.4.80.0070.01019.39
7.4.70.0090.00616.80
7.4.60.0070.01816.70
7.4.50.0030.00717.05
7.4.40.0040.01516.75
7.4.00.0100.00815.10
7.3.330.0070.00016.66
7.3.320.0000.00613.47
7.3.310.0000.00816.49
7.3.300.0030.00316.49
7.3.290.0030.00316.68
7.3.280.0130.00616.61
7.3.260.0100.00916.68
7.3.230.0070.01016.57
7.3.210.0100.00616.57
7.3.200.0100.00616.56
7.3.190.0130.00916.58
7.3.180.0100.00716.63
7.3.170.0110.00616.63
7.3.160.0080.00816.66
7.3.120.0060.01314.86
7.3.110.0070.00715.04
7.3.100.0030.01314.75
7.3.90.0060.00915.18
7.3.80.0090.00614.89
7.3.70.0050.01014.95
7.3.60.0040.00914.90
7.3.50.0050.00814.91
7.3.40.0040.00814.74
7.3.30.0080.00414.87
7.3.20.0090.00915.64
7.3.10.0090.01215.79
7.3.00.0110.00515.89
7.2.330.0060.01017.09
7.2.320.0140.00717.03
7.2.310.0070.01016.92
7.2.300.0040.01417.00
7.2.290.0000.01717.12
7.2.250.0060.01215.23
7.2.240.0100.01015.07
7.2.230.0070.01015.27
7.2.220.0070.00715.09
7.2.210.0090.00815.16
7.2.200.0070.00715.27
7.2.190.0050.01015.12
7.2.180.0030.01215.15
7.2.170.0090.00415.11
7.2.160.0000.01315.00
7.2.150.0220.00715.16
7.2.140.0160.01015.24
7.2.130.0250.00315.18
7.2.120.0220.00615.07
7.2.110.0180.00915.16
7.2.100.0210.00415.08
7.2.90.0210.00315.18
7.2.80.0160.01015.43
7.2.70.0190.00815.11
7.2.60.0170.01315.09
7.2.50.0180.00615.19
7.2.40.0150.00915.20
7.2.30.0180.01115.27
7.2.20.0220.00715.09
7.2.10.0250.00015.23
7.2.00.0180.00715.34
7.1.330.0030.00915.82
7.1.320.0030.00715.79
7.1.310.0140.00615.00
7.1.300.0110.00715.04
7.1.290.0100.00914.79
7.1.280.0080.00814.87
7.1.270.0400.00414.90
7.1.260.0100.01015.07
7.1.250.0170.00714.15

preferences:
31.89 ms | 400 KiB | 5 Q