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></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.0180.00018.52
8.3.50.0070.00718.41
8.3.40.0060.00919.13
8.3.30.0130.01018.92
8.3.20.0050.00322.60
8.3.10.0060.00320.68
8.3.00.0050.00324.02
8.2.180.0110.01118.56
8.2.170.0070.00722.96
8.2.160.0140.00022.56
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00726.16
8.2.120.0040.00426.16
8.2.110.0030.00620.72
8.2.100.0130.00018.16
8.2.90.0000.00817.88
8.2.80.0040.00418.77
8.2.70.0050.00318.04
8.2.60.0050.00318.41
8.2.50.0050.00318.10
8.2.40.0040.00419.55
8.2.30.0020.00519.62
8.2.20.0050.00318.38
8.2.10.0040.00419.50
8.2.00.0070.00019.63
8.1.280.0100.00725.92
8.1.270.0050.01021.06
8.1.260.0000.01426.35
8.1.250.0040.00428.09
8.1.240.0000.00920.92
8.1.230.0060.00617.89
8.1.220.0030.00517.91
8.1.210.0040.00418.77
8.1.200.0000.01017.48
8.1.190.0040.00417.60
8.1.180.0080.00018.10
8.1.170.0090.00018.78
8.1.160.0040.00419.25
8.1.150.0040.00419.25
8.1.140.0050.00221.27
8.1.130.0070.00020.37
8.1.120.0040.00417.70
8.1.110.0070.00017.77
8.1.100.0040.00417.83
8.1.90.0050.00317.81
8.1.80.0040.00417.79
8.1.70.0040.00417.71
8.1.60.0000.00817.85
8.1.50.0040.00417.61
8.1.40.0060.00317.68
8.1.30.0090.00017.82
8.1.20.0040.00417.85
8.1.10.0080.00017.77
8.1.00.0040.00417.84
8.0.300.0020.00518.77
8.0.290.0030.00517.00
8.0.280.0000.00718.71
8.0.270.0030.00317.52
8.0.260.0030.00320.30
8.0.250.0060.00317.30
8.0.240.0030.00617.28
8.0.230.0080.00017.28
8.0.220.0000.00917.24
8.0.210.0040.00417.28
8.0.200.0070.00017.31
8.0.190.0080.00017.17
8.0.180.0030.00517.27
8.0.170.0000.00817.25
8.0.160.0040.00317.25
8.0.150.0000.00717.15
8.0.140.0040.00417.20
8.0.130.0060.00013.77
8.0.120.0040.00417.30
8.0.110.0040.00417.22
8.0.100.0040.00417.39
8.0.90.0040.00417.35
8.0.80.0060.01017.31
8.0.70.0000.00817.14
8.0.60.0040.00417.16
8.0.50.0040.00417.17
8.0.30.0120.00917.45
8.0.20.0100.01017.55
8.0.10.0040.00417.21
8.0.00.0060.01217.07
7.4.330.0020.00215.55
7.4.320.0000.00616.92
7.4.300.0060.00016.81
7.4.290.0030.00516.73
7.4.280.0040.00416.81
7.4.270.0070.00016.75
7.4.260.0000.00613.70
7.4.250.0080.00016.77
7.4.240.0020.00616.88
7.4.230.0030.00316.81
7.4.220.0050.00216.87
7.4.210.0080.00916.83
7.4.200.0000.00816.92
7.4.130.0120.00616.72
7.4.120.0220.00916.82
7.4.110.0070.01016.87
7.4.100.0100.01316.86
7.4.90.0040.01216.73
7.4.80.0130.00319.39
7.4.70.0040.01216.74
7.4.60.0120.01116.74
7.4.50.0070.00716.75
7.4.40.0110.01116.76
7.4.10.0030.01414.96
7.4.00.0080.00815.10
7.3.330.0040.00416.71
7.3.320.0030.00313.62
7.3.310.0000.00716.44
7.3.300.0030.00316.49
7.3.290.0000.00616.53
7.3.280.0130.00616.64
7.3.260.0090.01016.67
7.3.230.0070.01116.57
7.3.210.0140.00316.96
7.3.200.0040.01416.48
7.3.190.0090.00616.61
7.3.180.0110.00716.76
7.3.170.0070.01416.79
7.3.160.0100.00916.66
7.3.130.0030.01314.88
7.3.120.0070.00816.21
7.3.110.0060.01115.92
7.3.100.0030.01216.06
7.3.90.0090.00615.97
7.3.80.0060.00615.78
7.3.70.0040.01015.68
7.3.60.0060.00715.73
7.3.50.0040.00915.63
7.3.40.0070.00615.69
7.3.30.0050.01015.63
7.3.20.0080.00716.37
7.3.10.0070.00816.27
7.3.00.0080.00816.23
7.2.330.0030.01416.74
7.2.320.0070.01317.14
7.2.310.0190.00316.87
7.2.300.0120.00616.96
7.2.290.0160.00016.78
7.2.260.0150.00315.16
7.2.250.0060.01215.37
7.2.240.0040.00916.16
7.2.230.0070.00616.12
7.2.220.0060.00816.28
7.2.210.0050.00915.85
7.2.200.0080.00615.82
7.2.190.0070.00415.82
7.2.180.0050.00815.79
7.2.170.0080.00815.82
7.2.160.0090.00715.80
7.2.150.0070.00916.47
7.2.140.0080.00816.50
7.2.130.0050.01116.46
7.2.120.0100.00716.48
7.2.110.0050.00916.49
7.2.100.0060.01116.34
7.2.90.0060.00916.38
7.2.80.0060.00816.40
7.2.70.0090.00816.47
7.2.60.0140.00516.57
7.2.50.0090.01016.47
7.2.40.0060.01016.49
7.2.30.0150.00216.52
7.2.20.0090.00716.61
7.2.10.0100.00716.51
7.2.00.0070.00916.50
7.1.330.0100.00616.67
7.1.320.0080.00816.41
7.1.310.0090.00815.71
7.1.300.0040.01115.65
7.1.290.0060.00815.74
7.1.280.0090.00715.69
7.1.270.0330.00615.65
7.1.260.0050.00915.69
7.1.250.0090.00515.63
7.1.240.0100.01015.88
7.1.230.0060.00615.75
7.1.220.0070.00715.89
7.1.210.0040.00815.76
7.1.200.0030.00615.94
7.1.190.0000.01516.10
7.1.180.0000.01115.68
7.1.170.0040.01116.01
7.1.160.0040.00715.82
7.1.150.0040.00915.82
7.1.140.0060.00615.64
7.1.130.0000.01415.82
7.1.120.0040.01115.94
7.1.110.0080.00315.77
7.1.100.0000.00815.84
7.1.90.0040.01415.93
7.1.80.0000.01515.85
7.1.70.0140.00715.80
7.1.60.0070.01315.96
7.1.50.0100.01015.71
7.1.40.0130.00715.95
7.1.30.0040.01215.88
7.1.20.0110.00016.09
7.1.10.0090.00315.95
7.1.00.0070.00315.86

preferences:
53.05 ms | 400 KiB | 5 Q