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; }

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.68
8.3.50.0070.00718.29
8.3.40.0030.01219.05
8.3.30.0040.01118.95
8.3.20.0030.00522.66
8.3.10.0000.00820.75
8.3.00.0040.00424.03
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0040.01122.43
8.2.150.0090.00024.18
8.2.140.0120.00624.66
8.2.130.0090.00326.16
8.2.120.0050.00326.16
8.2.110.0070.00322.38
8.2.100.0090.00318.03
8.2.90.0000.00918.13
8.2.80.0060.00318.18
8.2.70.0060.00318.05
8.2.60.0040.00418.34
8.2.50.0000.00818.10
8.2.40.0050.00319.61
8.2.30.0040.00419.42
8.2.20.0080.00018.11
8.2.10.0040.00419.30
8.2.00.0080.00019.42
8.1.280.0140.00525.92
8.1.270.0120.00320.76
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0030.00524.13
8.1.230.0070.00419.26
8.1.220.0000.00818.04
8.1.210.0090.00018.77
8.1.200.0060.00317.60
8.1.190.0080.00017.48
8.1.180.0000.00918.10
8.1.170.0040.00418.79
8.1.160.0050.00519.07
8.1.150.0050.00219.08
8.1.140.0040.00420.98
8.1.130.0030.00320.35
8.1.120.0030.00317.79
8.1.110.0080.00017.59
8.1.100.0040.00417.56
8.1.90.0080.00017.67
8.1.80.0000.00717.72
8.1.70.0000.00717.61
8.1.60.0000.00817.80
8.1.50.0040.00417.61
8.1.40.0000.00817.75
8.1.30.0040.00417.87
8.1.20.0040.00417.68
8.1.10.0060.00317.79
8.1.00.0030.00617.70
8.0.300.0000.00819.90
8.0.290.0080.00017.13
8.0.280.0000.00718.63
8.0.270.0070.00017.30
8.0.260.0000.00620.32
8.0.250.0030.00817.22
8.0.240.0040.00417.15
8.0.230.0040.00417.23
8.0.220.0040.00417.05
8.0.210.0030.00317.23
8.0.200.0000.00717.31
8.0.190.0070.00017.15
8.0.180.0040.00417.15
8.0.170.0080.00017.14
8.0.160.0000.00717.23
8.0.150.0000.00716.98
8.0.140.0040.00417.21
8.0.130.0030.00313.62
8.0.120.0030.00617.09
8.0.110.0040.00417.09
8.0.100.0040.00416.95
8.0.90.0000.00716.99
8.0.80.0070.01017.08
8.0.70.0000.00717.23
8.0.60.0040.00417.16
8.0.50.0040.00417.17
8.0.30.0160.00617.34
8.0.20.0100.00917.42
8.0.10.0070.00017.06
8.0.00.0110.00817.09
7.4.330.0000.00615.55
7.4.320.0060.00016.76
7.4.300.0000.00716.75
7.4.290.0040.00416.83
7.4.280.0000.00716.62
7.4.270.0030.00316.91
7.4.260.0000.00613.64
7.4.250.0030.00516.82
7.4.240.0040.00316.66
7.4.230.0000.00716.87
7.4.220.0050.00216.82
7.4.210.0100.00616.88
7.4.200.0030.00316.80
7.4.130.0120.00616.50
7.4.120.0020.02216.73
7.4.110.0140.00316.64
7.4.100.0130.01016.92
7.4.90.0140.00716.95
7.4.80.0060.00919.39
7.4.70.0060.01016.69
7.4.60.0100.00716.69
7.4.50.0050.00616.84
7.4.40.0060.01216.89
7.4.00.0070.01015.05
7.3.330.0000.00716.44
7.3.320.0000.00613.40
7.3.310.0000.00816.72
7.3.300.0050.00316.59
7.3.290.0040.00416.57
7.3.280.0110.00716.60
7.3.260.0110.00816.72
7.3.230.0060.01016.66
7.3.210.0130.01016.66
7.3.200.0130.00416.64
7.3.190.0140.00616.64
7.3.180.0060.01016.80
7.3.170.0070.01016.77
7.3.160.0000.01716.61
7.3.120.0060.01215.00
7.3.110.0090.00914.65
7.3.100.0110.00715.04
7.3.90.0000.01414.99
7.3.80.0050.00615.11
7.3.70.0090.00514.75
7.3.60.0020.00914.89
7.3.50.0100.00414.87
7.3.40.0040.01114.87
7.3.30.0050.00814.94
7.3.20.0110.00915.79
7.3.10.0120.00615.88
7.3.00.0070.01216.02
7.2.330.0090.00916.94
7.2.320.0090.01516.67
7.2.310.0030.01516.96
7.2.300.0110.01116.94
7.2.290.0030.01217.03
7.2.250.0070.01315.39
7.2.240.0040.01415.12
7.2.230.0000.01715.31
7.2.220.0060.00615.39
7.2.210.0060.00515.32
7.2.200.0110.00315.25
7.2.190.0050.00914.98
7.2.180.0090.00514.92
7.2.170.0040.01015.12
7.2.160.0060.00815.12
7.2.150.0110.01016.15
7.2.140.0060.00616.13
7.2.130.0090.00716.17
7.2.120.0080.01116.01
7.2.110.0100.00316.09
7.2.100.0080.00716.11
7.2.90.0050.00916.07
7.2.80.0080.00715.91
7.2.70.0070.00616.11
7.2.60.0030.01216.02
7.2.50.0080.00816.07
7.2.40.0070.01016.23
7.2.30.0090.00716.13
7.2.20.0050.01015.99
7.2.10.0080.00916.25
7.2.00.0140.00716.03
7.1.330.0030.01315.84
7.1.320.0030.01315.98
7.1.310.0760.01314.96
7.1.300.0120.00215.05
7.1.290.0110.00414.94
7.1.280.0120.00314.99
7.1.270.0060.01014.83
7.1.260.0120.00215.15
7.1.250.0130.00114.95
7.1.240.0110.00015.94
7.1.230.0090.00315.86
7.1.220.0070.00716.02
7.1.210.0040.00715.78
7.1.200.0060.00615.84
7.1.190.0030.00815.99
7.1.180.0030.01015.73
7.1.170.0030.00715.80
7.1.160.0060.01015.87
7.1.150.0000.01315.93
7.1.140.0030.00815.90
7.1.130.0040.00415.94
7.1.120.0070.00715.67
7.1.110.0080.00516.04
7.1.100.0040.01215.73
7.1.90.0070.00716.09
7.1.80.0090.00615.98
7.1.70.0000.01315.73
7.1.60.0060.00615.93
7.1.50.0060.00315.96
7.1.40.0060.00615.98
7.1.30.0040.00715.75
7.1.20.0080.00815.59
7.1.10.0100.00715.88
7.1.00.0090.00615.75

preferences:
83.6 ms | 400 KiB | 5 Q