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->errors->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.00418.71
8.3.50.0150.00018.41
8.3.40.0060.00919.20
8.3.30.0040.01119.22
8.3.20.0090.00022.61
8.3.10.0040.00420.75
8.3.00.0070.00424.05
8.2.180.0110.00418.79
8.2.170.0170.00322.96
8.2.160.0100.00322.51
8.2.150.0080.00024.18
8.2.140.0120.00324.66
8.2.130.0030.00926.16
8.2.120.0070.00726.16
8.2.110.0040.00420.73
8.2.100.0120.00018.16
8.2.90.0080.00018.13
8.2.80.0040.00419.11
8.2.70.0000.00817.90
8.2.60.0040.00418.41
8.2.50.0040.00418.10
8.2.40.0000.00719.59
8.2.30.0000.00719.72
8.2.20.0000.00818.36
8.2.10.0020.00519.55
8.2.00.0000.00919.50
8.1.280.0110.00425.92
8.1.270.0030.01220.84
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00620.93
8.1.230.0090.00317.96
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0100.00017.72
8.1.190.0050.00317.60
8.1.180.0040.00418.10
8.1.170.0040.00418.67
8.1.160.0000.00719.09
8.1.150.0040.00419.09
8.1.140.0030.00521.14
8.1.130.0000.00720.40
8.1.120.0000.00717.83
8.1.110.0000.00717.73
8.1.100.0020.00517.68
8.1.90.0030.00517.66
8.1.80.0000.00817.80
8.1.70.0040.00417.77
8.1.60.0030.00617.73
8.1.50.0000.00817.75
8.1.40.0060.00317.89
8.1.30.0000.00817.86
8.1.20.0040.00417.77
8.1.10.0030.00617.77
8.1.00.0000.00717.59
8.0.300.0050.00318.77
8.0.290.0040.00417.13
8.0.280.0030.00318.59
8.0.270.0000.00717.45
8.0.260.0030.00320.31
8.0.250.0070.00317.30
8.0.240.0060.00317.25
8.0.230.0000.00717.25
8.0.220.0000.00817.27
8.0.210.0070.00017.11
8.0.200.0030.00317.33
8.0.190.0060.00317.28
8.0.180.0000.00817.13
8.0.170.0100.00017.36
8.0.160.0000.00817.16
8.0.150.0040.00417.21
8.0.140.0000.00717.17
8.0.130.0000.00713.79
8.0.120.0090.00017.17
8.0.110.0070.00017.27
8.0.100.0070.00017.23
8.0.90.0070.00017.12
8.0.80.0110.01117.23
8.0.70.0030.00517.32
8.0.60.0040.00417.10
8.0.50.0080.00017.32
8.0.30.0130.01017.32
8.0.20.0130.00817.46
8.0.10.0040.00417.33
8.0.00.0080.00917.18
7.4.330.0000.00515.55
7.4.320.0000.00616.98
7.4.300.0000.00716.91
7.4.290.0050.00316.86
7.4.280.0050.00316.77
7.4.270.0050.00216.91
7.4.260.0030.00313.71
7.4.250.0070.00016.69
7.4.240.0020.00616.82
7.4.230.0040.00416.85
7.4.220.0010.00616.65
7.4.210.0090.00716.83
7.4.200.0070.00017.03
7.4.130.0120.01216.93
7.4.120.0110.01316.77
7.4.110.0110.00717.03
7.4.100.0120.01116.77
7.4.90.0090.00916.80
7.4.80.0160.00719.39
7.4.70.0070.01016.77
7.4.60.0000.01717.06
7.4.50.0070.00716.92
7.4.40.0070.01516.99
7.4.00.0070.00715.20
7.3.330.0050.00316.51
7.3.320.0030.00313.60
7.3.310.0070.00016.48
7.3.300.0030.00416.55
7.3.290.0070.00016.57
7.3.280.0170.00316.56
7.3.260.0110.01116.67
7.3.230.0130.00316.77
7.3.210.0000.01716.96
7.3.200.0090.00616.59
7.3.190.0050.01316.61
7.3.180.0130.00316.65
7.3.170.0170.00016.66
7.3.160.0140.00316.83
7.3.80.0030.00914.71
7.3.70.0080.00314.95
7.3.60.0000.01414.87
7.3.50.0030.00814.82
7.3.40.0110.00314.69
7.3.30.0100.00315.02
7.3.20.0180.01014.82
7.3.10.0030.01714.96
7.3.00.0090.00914.84
7.2.330.0030.01717.11
7.2.320.0090.00917.02
7.2.310.0080.00816.68
7.2.300.0060.00916.98
7.2.290.0070.01016.95
7.2.210.0000.01215.30
7.2.200.0210.00015.23
7.2.190.0060.00615.03
7.2.180.0030.00815.15
7.2.170.0100.00315.15
7.2.160.0130.00315.04
7.2.150.0100.00615.20
7.2.140.0150.00915.20
7.2.130.0190.00615.10
7.2.120.0110.01115.13
7.2.110.0100.00715.11
7.2.100.0120.00615.09
7.2.90.0100.00715.16
7.2.80.0120.00915.04
7.2.70.0140.00315.37
7.2.60.0180.00415.29
7.2.50.0160.00815.11
7.2.40.0100.01315.28
7.2.30.0150.00715.34
7.2.20.0170.00415.07
7.2.10.0130.00615.28
7.2.00.0150.00415.16
7.1.310.0140.00413.98
7.1.300.0060.00913.99
7.1.290.0140.00314.20
7.1.280.0100.00713.89
7.1.270.0110.00713.89
7.1.260.0130.01014.31
7.1.250.0760.00313.82

preferences:
37.48 ms | 400 KiB | 5 Q