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->root->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.0090.00918.68
8.3.50.0090.00618.32
8.3.40.0120.00319.31
8.3.30.0100.01019.04
8.3.20.0080.00022.66
8.3.10.0050.00320.68
8.3.00.0000.00823.93
8.2.180.0090.01218.64
8.2.170.0140.00722.96
8.2.160.0120.00322.45
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00426.16
8.2.120.0040.00421.10
8.2.110.0060.00320.70
8.2.100.0110.00018.09
8.2.90.0040.00418.00
8.2.80.0050.00319.14
8.2.70.0000.00818.30
8.2.60.0000.00818.44
8.2.50.0000.00818.10
8.2.40.0030.00619.77
8.2.30.0000.00719.66
8.2.20.0040.00418.32
8.2.10.0040.00419.48
8.2.00.0040.00419.50
8.1.280.0070.00725.92
8.1.270.0060.00320.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00020.84
8.1.230.0060.00617.95
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0030.00717.48
8.1.190.0090.00017.73
8.1.180.0040.00418.10
8.1.170.0050.00318.80
8.1.160.0030.00520.82
8.1.150.0040.00419.17
8.1.140.0040.00421.11
8.1.130.0000.00720.48
8.1.120.0040.00417.80
8.1.110.0000.00817.79
8.1.100.0040.00417.84
8.1.90.0000.00717.55
8.1.80.0040.00417.78
8.1.70.0060.00317.73
8.1.60.0040.00417.80
8.1.50.0040.00417.75
8.1.40.0080.00017.75
8.1.30.0040.00417.88
8.1.20.0000.00917.92
8.1.10.0050.00317.96
8.1.00.0040.00417.82
8.0.300.0050.00318.77
8.0.290.0000.00817.13
8.0.280.0080.00018.69
8.0.270.0000.00717.52
8.0.260.0000.00620.44
8.0.250.0040.00417.23
8.0.240.0100.00017.30
8.0.230.0040.00417.12
8.0.220.0060.00317.14
8.0.210.0000.00817.21
8.0.200.0030.00317.38
8.0.190.0030.00517.21
8.0.180.0030.00617.19
8.0.170.0060.00317.07
8.0.160.0040.00417.20
8.0.150.0040.00417.19
8.0.140.0040.00417.13
8.0.130.0070.00013.81
8.0.120.0040.00417.17
8.0.110.0040.00417.25
8.0.100.0050.00217.29
8.0.90.0000.00717.11
8.0.80.0040.01117.17
8.0.70.0000.00817.07
8.0.60.0040.00417.26
8.0.50.0030.00517.20
8.0.30.0070.01017.59
8.0.20.0130.00817.25
8.0.10.0000.00717.44
8.0.00.0090.01117.17
7.4.330.0020.00215.55
7.4.320.0000.00716.79
7.4.300.0000.00716.77
7.4.290.0040.00316.81
7.4.280.0040.00416.77
7.4.270.0040.00416.84
7.4.260.0030.00313.74
7.4.250.0030.00316.87
7.4.240.0040.00416.80
7.4.230.0070.00016.91
7.4.220.0020.00516.96
7.4.210.0090.00716.87
7.4.200.0040.00416.94
7.4.130.0090.01016.98
7.4.120.0130.01116.87
7.4.110.0090.00916.65
7.4.100.0030.01316.92
7.4.90.0000.01816.95
7.4.80.0040.01319.39
7.4.70.0110.00716.94
7.4.60.0130.00816.70
7.4.50.0090.00616.71
7.4.40.0070.01716.73
7.4.00.0090.00615.07
7.3.330.0070.00016.71
7.3.320.0000.00613.49
7.3.310.0030.00316.66
7.3.300.0050.00216.49
7.3.290.0040.00416.50
7.3.280.0130.00316.67
7.3.260.0110.00816.66
7.3.230.0110.00516.79
7.3.210.0030.01316.97
7.3.200.0090.00616.60
7.3.190.0090.01216.63
7.3.180.0070.01116.52
7.3.170.0130.00316.84
7.3.160.0040.01516.82
7.3.80.0000.01314.93
7.3.70.0130.00014.98
7.3.60.0060.00915.00
7.3.50.0070.01014.84
7.3.40.0050.00814.94
7.3.30.0070.00715.02
7.3.20.0130.00714.72
7.3.10.0130.01014.89
7.3.00.0100.01015.15
7.2.330.0030.01416.84
7.2.320.0100.01016.97
7.2.310.0120.00916.97
7.2.300.0070.01016.67
7.2.290.0110.01116.81
7.2.210.0040.00815.12
7.2.200.0090.00615.08
7.2.190.0130.00615.08
7.2.180.0070.00715.14
7.2.170.0000.01415.12
7.2.160.0080.00815.18
7.2.150.0130.01015.26
7.2.140.0180.00715.29
7.2.130.0120.00815.16
7.2.120.0150.01015.15
7.2.110.0200.00715.38
7.2.100.0200.00415.14
7.2.90.0820.01415.30
7.2.80.0220.00615.19
7.2.70.0140.01415.14
7.2.60.0300.00915.30
7.2.50.0060.01615.20
7.2.40.0230.00315.26
7.2.30.0160.00315.14
7.2.20.0120.00615.12
7.2.10.0130.00715.31
7.2.00.0150.00915.27
7.1.310.0110.00614.21
7.1.300.0180.00413.98
7.1.290.0140.01113.88
7.1.280.0120.00613.84
7.1.270.0150.00914.06
7.1.260.0340.00613.93
7.1.250.0150.00413.91

preferences:
67.42 ms | 400 KiB | 5 Q