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.0140.00318.41
8.3.50.0040.01218.27
8.3.40.0000.01519.32
8.3.30.0000.01519.21
8.3.20.0040.00422.64
8.3.10.0080.00020.75
8.3.00.0110.00423.86
8.2.180.0090.00618.67
8.2.170.0130.00722.96
8.2.160.0110.00422.21
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0030.00926.16
8.2.120.0090.00926.16
8.2.110.0090.00020.76
8.2.100.0090.00318.13
8.2.90.0030.00618.00
8.2.80.0000.00819.14
8.2.70.0030.00618.18
8.2.60.0070.00018.28
8.2.50.0030.00618.13
8.2.40.0040.00419.77
8.2.30.0040.00419.45
8.2.20.0060.00318.37
8.2.10.0060.00319.54
8.2.00.0040.00419.52
8.1.280.0000.01525.92
8.1.270.0160.00021.02
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0090.00020.97
8.1.230.0040.00817.89
8.1.220.0090.00018.01
8.1.210.0030.00618.77
8.1.200.0030.00617.60
8.1.190.0040.00417.60
8.1.180.0040.00418.10
8.1.170.0000.00818.74
8.1.160.0050.00219.07
8.1.150.0000.00819.26
8.1.140.0040.00421.12
8.1.130.0030.00320.48
8.1.120.0000.00717.81
8.1.110.0040.00417.78
8.1.100.0000.00817.79
8.1.90.0030.00617.73
8.1.80.0030.00517.66
8.1.70.0040.00417.56
8.1.60.0050.00317.90
8.1.50.0070.00017.73
8.1.40.0060.00317.87
8.1.30.0080.00017.81
8.1.20.0030.00517.85
8.1.10.0000.00917.84
8.1.00.0000.00817.67
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0030.00418.81
8.0.270.0040.00417.58
8.0.260.0030.00320.39
8.0.250.0040.00717.34
8.0.240.0060.00317.31
8.0.230.0030.00517.34
8.0.220.0030.00517.24
8.0.210.0070.00017.19
8.0.200.0000.00617.21
8.0.190.0000.00917.39
8.0.180.0080.00017.23
8.0.170.0040.00417.12
8.0.160.0040.00417.27
8.0.150.0080.00017.14
8.0.140.0070.00017.19
8.0.130.0000.00613.70
8.0.120.0080.00017.32
8.0.110.0080.00017.18
8.0.100.0040.00417.16
8.0.90.0000.00817.00
8.0.80.0060.01517.10
8.0.70.0040.00417.23
8.0.60.0040.00417.35
8.0.50.0030.00617.02
8.0.30.0070.01017.13
8.0.20.0130.01017.42
8.0.10.0070.00017.22
8.0.00.0090.00817.15
7.4.330.0000.00515.55
7.4.320.0000.00716.97
7.4.300.0040.00416.85
7.4.290.0050.00316.82
7.4.280.0050.00316.87
7.4.270.0030.00316.67
7.4.260.0000.00613.72
7.4.250.0040.00416.94
7.4.240.0000.00716.82
7.4.230.0000.00816.92
7.4.220.0000.00716.90
7.4.210.0080.00916.87
7.4.200.0030.00316.81
7.4.130.0080.01116.90
7.4.120.0140.01116.61
7.4.110.0060.01216.66
7.4.100.0160.00616.95
7.4.90.0160.00316.76
7.4.80.0060.01219.39
7.4.70.0030.01316.82
7.4.60.0100.00716.89
7.4.50.0100.00716.79
7.4.40.0050.01316.68
7.4.00.0080.00815.09
7.3.330.0030.00316.65
7.3.320.0050.00013.39
7.3.310.0030.00316.65
7.3.300.0000.00716.63
7.3.290.0030.00316.67
7.3.280.0120.00916.64
7.3.260.0110.00916.67
7.3.230.0110.00616.63
7.3.210.0120.00616.66
7.3.200.0120.00916.58
7.3.190.0070.01316.91
7.3.180.0060.01016.67
7.3.170.0080.00816.58
7.3.160.0120.00416.74
7.3.80.0060.00614.85
7.3.70.0050.00614.92
7.3.60.0070.00414.87
7.3.50.0060.00914.93
7.3.40.0060.00914.71
7.3.30.0140.00314.78
7.3.20.0130.00814.87
7.3.10.0150.00414.91
7.3.00.0120.00814.81
7.2.330.0070.01016.85
7.2.320.0120.00616.95
7.2.310.0060.01216.82
7.2.300.0140.01016.93
7.2.290.0090.00616.79
7.2.210.0050.00815.15
7.2.200.0060.00615.12
7.2.190.0070.00714.98
7.2.180.0070.00715.11
7.2.170.0070.00715.12
7.2.160.0100.00415.24
7.2.150.0120.00815.19
7.2.140.0760.01015.35
7.2.130.0160.00815.17
7.2.120.0210.01015.10
7.2.110.0170.00815.18
7.2.100.0150.00615.17
7.2.90.0110.01015.14
7.2.80.0080.01315.21
7.2.70.0210.00615.31
7.2.60.0090.01115.04
7.2.50.0510.00515.18
7.2.40.0110.01015.20
7.2.30.0150.00615.29
7.2.20.0120.00815.20
7.2.10.0230.00315.18
7.2.00.0150.00715.27
7.1.310.0170.00013.99
7.1.300.0300.00214.03
7.1.290.0090.00914.05
7.1.280.0150.00613.98
7.1.270.0090.01014.09
7.1.260.0170.00614.02
7.1.250.0170.00514.02

preferences:
38.4 ms | 400 KiB | 5 Q