3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { libxml_use_internal_errors(true); $xml = new SimpleXMLElement('<test><b>& <br> 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.0110.00718.80
8.3.50.0040.01218.41
8.3.40.0000.01519.39
8.3.30.0110.00719.22
8.3.20.0000.00822.61
8.3.10.0000.00820.53
8.3.00.0000.00823.96
8.2.180.0110.00418.53
8.2.170.0040.01122.96
8.2.160.0070.00722.38
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0100.00026.16
8.2.120.0060.00626.16
8.2.110.0030.00722.50
8.2.100.0090.00318.16
8.2.90.0060.00618.00
8.2.80.0050.00318.16
8.2.70.0040.00418.30
8.2.60.0000.00818.41
8.2.50.0030.00618.10
8.2.40.0030.00619.73
8.2.30.0040.00419.61
8.2.20.0030.00518.32
8.2.10.0040.00419.45
8.2.00.0000.00721.20
8.1.280.0000.01425.92
8.1.270.0060.00320.93
8.1.260.0120.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00524.17
8.1.230.0080.00419.39
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0120.00017.73
8.1.190.0000.00917.60
8.1.180.0030.00518.10
8.1.170.0030.00518.74
8.1.160.0040.00419.11
8.1.150.0000.00819.14
8.1.140.0070.00021.26
8.1.130.0030.00320.41
8.1.120.0050.00317.68
8.1.110.0050.00217.81
8.1.100.0000.00817.77
8.1.90.0000.00817.71
8.1.80.0040.00417.78
8.1.70.0050.00217.75
8.1.60.0060.00317.93
8.1.50.0040.00417.87
8.1.40.0050.00317.74
8.1.30.0050.00317.92
8.1.20.0030.00517.87
8.1.10.0000.00817.88
8.1.00.0030.00617.71
8.0.300.0000.00821.76
8.0.290.0030.00617.13
8.0.280.0000.00718.69
8.0.270.0030.00317.51
8.0.260.0030.00320.33
8.0.250.0050.00517.29
8.0.240.0070.00317.24
8.0.230.0000.00817.34
8.0.220.0040.00417.20
8.0.210.0000.00817.18
8.0.200.0030.00317.35
8.0.190.0000.00817.30
8.0.180.0000.00817.22
8.0.170.0030.00617.27
8.0.160.0070.00017.31
8.0.150.0040.00417.18
8.0.140.0080.00017.07
8.0.130.0060.00013.75
8.0.120.0030.00517.17
8.0.110.0040.00417.20
8.0.100.0040.00417.27
8.0.90.0030.00517.28
8.0.80.0090.00617.33
8.0.70.0040.00417.27
8.0.60.0040.00417.23
8.0.50.0040.00417.22
8.0.30.0140.00317.44
8.0.20.0100.01317.53
8.0.10.0040.00417.43
8.0.00.0100.01217.08
7.4.330.0060.00015.55
7.4.320.0030.00316.68
7.4.300.0030.00316.93
7.4.290.0000.00716.81
7.4.280.0030.00516.93
7.4.270.0070.00016.69
7.4.260.0060.00013.71
7.4.250.0080.00016.78
7.4.240.0050.00216.87
7.4.230.0070.00016.93
7.4.220.0040.00316.64
7.4.210.0100.00816.75
7.4.200.0030.00316.77
7.4.130.0130.00617.03
7.4.120.0140.01117.00
7.4.110.0120.00616.89
7.4.100.0080.00916.73
7.4.90.0150.00316.89
7.4.80.0140.00319.39
7.4.70.0070.01016.93
7.4.60.0090.01316.98
7.4.50.0090.00616.84
7.4.40.0120.00616.99
7.4.00.0070.01015.20
7.3.330.0040.00416.52
7.3.320.0030.00313.59
7.3.310.0040.00416.71
7.3.300.0050.00316.51
7.3.290.0070.00016.64
7.3.280.0150.00616.63
7.3.260.0120.00816.67
7.3.230.0090.00916.58
7.3.210.0040.01516.75
7.3.200.0110.01116.63
7.3.190.0060.01016.88
7.3.180.0130.01116.71
7.3.170.0050.01516.86
7.3.160.0090.00916.70
7.3.80.0060.00615.05
7.3.70.0070.00714.77
7.3.60.0140.00614.93
7.3.50.0130.01315.03
7.3.40.0120.00314.92
7.3.30.0030.01014.79
7.3.20.0250.00614.91
7.3.10.0200.00314.74
7.3.00.0270.00315.08
7.2.330.0110.00717.00
7.2.320.0060.01617.09
7.2.310.0160.00016.92
7.2.300.0100.00617.04
7.2.290.0120.00316.74
7.2.210.0040.00814.95
7.2.200.0150.00315.13
7.2.190.0030.01015.27
7.2.180.0070.01014.97
7.2.170.0100.01015.08
7.2.160.0080.00815.25
7.2.150.0160.01315.25
7.2.140.1180.00015.29
7.2.130.0140.01015.30
7.2.120.0190.00915.32
7.2.110.0260.00715.41
7.2.100.0180.00715.20
7.2.90.0170.00715.09
7.2.80.0130.01015.10
7.2.70.0200.00615.29
7.2.60.0200.01015.34
7.2.50.0130.01015.20
7.2.40.0140.01115.27
7.2.30.0240.00815.35
7.2.20.0190.00815.23
7.2.10.0160.01315.32
7.2.00.0220.00915.17
7.1.310.0240.00313.82
7.1.300.0620.00713.83
7.1.290.0200.00413.83
7.1.280.0270.00013.91
7.1.270.0250.00014.09
7.1.260.0390.01314.03
7.1.250.0160.01114.12

preferences:
30.58 ms | 400 KiB | 5 Q