3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['contentDetails'] = '<p>This is data sample.&nbsp;</p><p>Second part of the paragraph.&nbsp;</p>'; $xml = '<?xml version="1.0" encoding="UTF-8">'; $xml .= '<root>'; $xml .= '<myData>'; $xml .= '<content>' . htmlentities(str_replace("&nbsp;", "", $_POST['contentDetails'])) . '</content>'; $xml .= '</myData>'; $xml .= '</root>'; 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.4.130.0100.01017.87
8.4.120.0120.00820.36
8.4.110.0140.00818.84
8.4.100.0110.00617.66
8.4.90.0100.00620.77
8.4.80.0070.01118.79
8.4.70.0090.00819.08
8.4.60.0130.00820.38
8.4.50.0140.00620.37
8.4.40.0060.01317.68
8.4.30.0100.00718.86
8.4.20.0120.00317.75
8.4.10.0160.00022.58
8.3.250.0130.00518.79
8.3.240.0060.00416.49
8.3.230.0120.00716.56
8.3.220.0110.00518.86
8.3.210.0040.00418.53
8.3.200.0040.00516.69
8.3.190.0110.00718.88
8.3.180.0140.00518.75
8.3.170.0130.00617.14
8.3.160.0080.01116.54
8.3.150.0040.00416.62
8.3.140.0030.00516.69
8.3.130.0070.01116.60
8.3.120.0040.00419.00
8.3.110.0040.00420.94
8.3.100.0000.00824.06
8.3.90.0040.01126.77
8.3.80.0030.00616.63
8.3.70.0070.01116.63
8.3.60.0130.00316.63
8.3.50.0120.00723.73
8.3.40.0030.01019.17
8.3.30.0110.00318.70
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0140.00917.28
8.2.280.0140.00720.00
8.2.270.0130.00616.69
8.2.260.0060.01017.11
8.2.250.0090.00016.76
8.2.240.0050.00319.27
8.2.230.0090.00022.58
8.2.220.0130.00637.54
8.2.210.0090.00926.77
8.2.200.0000.00916.75
8.2.190.0070.00716.75
8.2.180.0120.00925.92
8.2.170.0140.00418.83
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00726.35
8.2.110.0060.00319.32
8.2.100.0110.00017.88
8.2.90.0000.00918.03
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0000.00918.05
8.2.50.0080.00018.07
8.2.40.0030.00718.29
8.2.30.0080.00018.01
8.2.20.0040.00418.00
8.2.10.0050.00519.32
8.2.00.0030.00519.17
8.1.330.0120.00816.20
8.1.320.0130.00617.88
8.1.310.0070.01116.77
8.1.300.0060.00317.87
8.1.290.0090.00018.88
8.1.280.0060.00925.92
8.1.270.0090.00023.78
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00723.90
8.1.230.0070.00420.90
8.1.220.0000.00817.74
8.1.210.0050.00318.89
8.1.200.0000.01017.34
8.1.190.0040.00417.38
8.1.180.0030.00518.10
8.1.170.0070.00318.75
8.1.160.0080.00018.86
8.1.150.0050.00318.85
8.1.140.0030.00318.93
8.1.130.0000.00720.21
8.1.120.0040.00417.45
8.1.110.0050.00317.35
8.1.100.0070.00017.48
8.1.90.0080.00017.34
8.1.80.0050.00217.54
8.1.70.0040.00417.44
8.1.60.0060.00317.48
8.1.50.0000.00817.43
8.1.40.0040.00417.41
8.1.30.0030.00617.51
8.1.20.0030.00617.66
8.1.10.0000.01017.51
8.1.00.0000.00717.35
8.0.300.0040.00419.89
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0050.00317.94
8.0.260.0030.00318.47
8.0.250.0000.00716.86
8.0.240.0060.00016.84
8.0.230.0070.00016.96
8.0.220.0040.00416.82
8.0.210.0030.00316.94
8.0.200.0080.00017.00
8.0.190.0000.00816.94
8.0.180.0000.00716.91
8.0.170.0030.00716.83
8.0.160.0000.00816.91
8.0.150.0000.00716.95
8.0.140.0050.00516.84
8.0.130.0060.00013.32
8.0.120.0000.00716.89
8.0.110.0030.00316.76
8.0.100.0040.00416.81
8.0.90.0060.00316.72
8.0.80.0110.00916.88
8.0.70.0070.00016.88
8.0.60.0040.00416.73
8.0.50.0000.00716.79
8.0.30.0130.00617.01
8.0.20.0180.00317.07
8.0.10.0000.00817.03
8.0.00.0040.01517.03
7.4.330.0000.00415.55
7.4.320.0000.00616.54
7.4.300.0000.00616.59
7.4.290.0050.00316.51
7.4.280.0050.00316.51
7.4.270.0030.00316.50
7.4.260.0060.00013.33
7.4.250.0000.00716.55
7.4.240.0030.00316.53
7.4.230.0030.00516.43
7.4.220.0060.00116.52
7.4.210.0090.00916.61
7.4.200.0030.00316.59
7.4.130.0090.01216.58
7.4.120.0160.00616.57
7.4.110.0090.00916.54
7.4.100.0100.01416.43
7.4.90.0090.01216.41
7.4.80.0090.01219.39
7.4.70.0030.01716.60
7.4.60.0080.00816.40
7.4.50.0090.01316.56
7.4.40.0070.01416.34
7.4.30.0110.00716.50
7.4.20.0120.00616.45
7.4.10.0030.01516.56
7.4.00.0060.01216.30
7.3.330.0040.00316.17
7.3.320.0030.00313.27
7.3.310.0030.00316.22
7.3.300.0020.00516.31
7.3.290.0090.00616.33
7.3.280.0090.00616.32
7.3.260.0110.00816.44
7.3.240.0130.00516.35
7.3.230.0060.01216.25
7.3.210.0100.01016.22
7.3.200.0030.01316.48
7.3.190.0090.00916.45
7.3.180.0150.00616.19
7.3.170.0120.00616.48
7.3.160.0100.00616.22
7.3.150.0070.01016.45
7.3.140.0110.00916.63
7.3.130.0160.00716.23
7.3.120.0130.00316.28
7.3.110.0100.01016.44
7.3.100.0160.00016.36
7.3.90.0060.01616.47
7.3.80.0150.00616.71
7.3.70.0080.00816.36
7.3.60.0100.00916.30
7.3.50.0100.01016.39
7.3.40.0140.00816.30
7.3.30.0100.00716.49
7.3.20.0070.01116.38
7.3.10.0110.01016.25
7.3.00.0110.00716.35
7.2.330.0140.00816.83
7.2.320.0130.00416.81
7.2.310.0130.01016.77
7.2.300.0130.00316.34
7.2.290.0090.00916.46
7.2.280.0090.00916.84
7.2.270.0090.00916.72
7.2.260.0120.00616.81
7.2.250.0120.00616.34
7.2.240.0140.00716.59
7.2.230.0030.01216.73
7.2.220.0070.01516.43
7.2.210.0100.01016.63
7.2.200.0070.01116.63
7.2.190.0070.01316.59
7.2.180.0100.01116.79
7.2.170.0060.01216.58
7.2.160.0080.00816.48
7.2.150.0080.01116.38
7.2.140.0120.00916.50
7.2.130.0220.00016.59
7.2.120.0070.01116.49
7.2.110.0130.00916.61
7.2.100.0080.00816.54
7.2.90.0210.00716.61
7.2.80.0090.00916.63
7.2.70.0060.01416.52
7.2.60.0100.01216.70
7.2.50.0130.00716.64
7.2.40.0130.00416.61
7.2.30.0070.01116.85
7.2.20.0110.00716.65
7.2.10.0060.01216.70
7.2.00.0090.01216.55

preferences:
106.44 ms | 403 KiB | 5 Q