3v4l.org

run code in 300+ PHP versions simultaneously
<?php $description = "<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Material:</td><td>Solid Ash frame. Composite panels. </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Finish:</td><td>Available in Grey Wash & White Wash </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Dimensions:</td><td>H 57cm x W 42cm x D 40cm </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Features:</td><td>Drawer and lower shelf </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Assembly:</td><td>Self assembly - assembly service available at additional cost </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>ASPACE Exclusive</td><td></td></tr></table>"; $s = html_entity_encode($description, ENT_COMPAT, 'UTF-8'); simplexml_load_string('<validation>' . $description . '</validation>'); var_dump(libxml_get_errors(), $s);

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.70.0160.00316.75
8.3.60.0040.01116.86
8.3.50.0180.01122.05
8.3.40.0070.00718.83
8.3.30.0070.00718.67
8.3.20.0040.00420.20
8.3.10.0000.00723.36
8.3.00.0050.00319.38
8.2.180.0180.00416.88
8.2.170.0130.00322.96
8.2.160.0030.01020.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00417.46
8.2.110.0080.00322.11
8.2.100.0090.00317.93
8.2.90.0090.00019.23
8.2.80.0060.00317.97
8.2.70.0000.00917.62
8.2.60.0060.00317.91
8.2.50.0000.00918.07
8.2.40.0000.00719.40
8.2.30.0000.00720.49
8.2.20.0060.00317.55
8.2.10.0040.00418.03
8.2.00.0000.00717.92
8.1.280.0100.01025.92
8.1.270.0000.00823.69
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.53
8.1.230.0040.00817.64
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0030.00517.13
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0050.00221.82
8.1.150.0040.00418.86
8.1.140.0040.00419.55
8.1.130.0040.00417.60
8.1.120.0050.00317.36
8.1.110.0060.00317.41
8.1.100.0040.00417.39
8.1.90.0030.00417.38
8.1.80.0000.00717.39
8.1.70.0000.00717.22
8.1.60.0090.00017.37
8.1.50.0040.00717.51
8.1.40.0000.00817.53
8.1.30.0000.00817.54
8.1.20.0000.00817.65
8.1.10.0070.00017.64
8.1.00.0000.00817.52
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.42
8.0.270.0070.00017.07
8.0.260.0060.00017.25
8.0.250.0070.00016.84
8.0.240.0030.00616.78
8.0.230.0030.00716.97
8.0.220.0000.00716.88
8.0.210.0030.00416.89
8.0.200.0060.00016.98
8.0.190.0040.00416.94
8.0.180.0080.00016.92
8.0.170.0000.00716.80
8.0.160.0000.00816.93
8.0.150.0000.00816.85
8.0.140.0030.00516.83
8.0.130.0000.00613.36
8.0.120.0030.00616.75
8.0.110.0050.00216.93
8.0.100.0000.00816.90
8.0.90.0040.00416.72
8.0.80.0090.00616.87
8.0.70.0000.00716.73
8.0.60.0000.00716.93
8.0.50.0040.00416.73
8.0.30.0100.00817.05
8.0.20.0060.01217.40
8.0.10.0040.00416.82
8.0.00.0090.01216.63
7.4.330.0000.00615.08
7.4.320.0030.00316.54
7.4.300.0000.00616.40
7.4.290.0000.00716.51
7.4.280.0000.00816.61
7.4.270.0000.00716.48
7.4.260.0090.00016.48
7.4.250.0030.00316.56
7.4.240.0020.00516.60
7.4.230.0030.00316.43
7.4.220.0070.01116.63
7.4.210.0100.01016.56
7.4.200.0000.00716.52
7.4.160.0090.00616.46
7.4.150.0120.00617.40
7.4.140.0140.00517.86
7.4.130.0080.00916.55
7.4.120.0110.00716.56
7.4.110.0130.00616.51
7.4.100.0100.01316.48
7.4.90.0080.00816.68
7.4.80.0150.00419.39
7.4.70.0090.00816.41
7.4.60.0050.01116.46
7.4.50.0040.00016.59
7.4.40.0160.00616.50
7.4.30.0110.01116.30
7.4.00.0150.00314.94
7.3.330.0000.00513.09
7.3.320.0000.00513.10
7.3.310.0000.00616.08
7.3.300.0030.00316.12
7.3.290.0090.00616.22
7.3.280.0090.00916.27
7.3.270.0100.00717.40
7.3.260.0150.00916.36
7.3.250.0070.01016.27
7.3.240.0060.01116.31
7.3.230.0130.00316.39
7.3.210.0030.01316.30
7.3.200.0160.00516.41
7.3.190.0110.01116.29
7.3.180.0110.00616.47
7.3.170.0140.00216.44
7.3.160.0190.00016.36
7.2.330.0060.01116.39
7.2.320.0180.00716.20
7.2.310.0030.01416.66
7.2.300.0100.00716.25
7.2.290.0140.01316.59
7.2.60.0030.01316.84
7.2.00.0000.01219.53
7.1.200.0000.01115.51
7.1.100.0090.00317.71
7.1.70.0000.00717.04
7.1.60.0090.01519.43
7.1.50.0090.01216.61
7.1.00.0130.06722.40
7.0.200.0250.00914.77
7.0.60.0130.08019.95
7.0.50.0130.07717.90
7.0.40.0000.04720.30
7.0.30.0370.05020.03
7.0.20.0400.08020.18
7.0.10.0070.07320.17
7.0.00.0030.06319.99
5.6.280.0030.03021.12
5.6.210.0070.06020.76
5.6.200.0100.08318.22
5.6.190.0130.08020.66
5.6.180.0270.05320.56
5.6.170.0300.07320.42
5.6.160.0000.05020.40
5.6.150.0030.08018.14
5.6.140.0030.03718.08
5.6.130.0170.04318.14
5.6.120.0130.07721.11
5.6.110.0170.07720.99
5.6.100.0130.08020.99
5.6.90.0100.08320.96
5.6.80.0030.08020.40
5.5.350.0430.06320.52
5.5.340.0100.05317.92
5.5.330.0030.07320.25
5.5.320.0200.04720.23
5.5.310.0370.07020.23
5.5.300.0030.08317.88
5.5.290.0030.05317.91
5.5.280.0170.07320.96
5.5.270.0030.04020.75
5.5.260.0170.07020.86
5.5.250.0130.08720.57
5.5.240.0100.06720.12
5.4.450.0770.04719.61
5.4.440.0530.06019.55
5.4.430.0600.06019.55
5.4.420.0800.05019.46
5.4.410.0470.06719.33
5.4.400.0600.05018.79
5.4.390.0630.05719.28
5.4.380.0630.05018.95
5.4.370.0730.05319.15
5.4.360.0830.06319.16
5.4.350.0770.05018.73
5.4.340.0630.05718.79
5.4.320.0630.06018.99
5.4.310.0630.05718.89
5.4.300.0730.07719.11
5.4.290.0670.07719.10
5.4.280.0530.06019.27
5.4.270.0800.06719.05
5.4.260.0770.05318.89
5.4.250.0830.05319.13
5.4.240.0600.05018.95
5.4.230.0600.05719.11
5.4.220.0800.06319.15
5.4.210.0800.05719.13
5.4.200.0700.05018.89
5.4.190.0870.05719.11
5.4.180.0870.04019.10
5.4.170.0730.05719.11
5.4.160.0730.06018.87
5.4.150.0770.06019.14
5.4.140.0800.05716.22
5.4.130.0800.04316.51
5.4.120.0600.05316.29
5.4.110.0530.06316.45
5.4.100.0670.05316.21
5.4.90.0930.06016.49
5.4.80.1030.05016.36
5.4.70.0600.07016.17
5.4.60.0770.07016.42
5.4.50.0700.07316.46
5.4.40.0630.07016.49
5.4.30.0670.06716.54
5.4.20.0870.05016.36
5.4.10.0670.04716.20
5.4.00.0770.05015.57

preferences:
44.04 ms | 401 KiB | 5 Q