3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'DATA<td class="td1">DATA'; $pattern = '@<(\w+)\s+[^>]*>@is'; echo preg_replace($pattern, '<$1>', $string);

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.140.0120.00918.00
8.4.130.0110.00719.05
8.4.120.0110.00923.98
8.4.110.0080.00822.60
8.4.100.0110.01017.66
8.4.90.0140.00818.70
8.4.80.0120.00817.88
8.4.70.0070.00217.89
8.4.60.0120.00918.77
8.4.50.0090.00918.82
8.4.40.0080.01118.05
8.4.30.0080.01120.44
8.4.20.0150.00319.88
8.4.10.0130.00721.87
8.3.270.0210.00816.69
8.3.260.0030.00616.72
8.3.250.0100.01018.88
8.3.240.0030.00617.12
8.3.230.0090.00416.71
8.3.220.0100.00818.98
8.3.210.0100.00518.42
8.3.200.0110.00816.50
8.3.190.0100.00817.10
8.3.180.0090.00716.63
8.3.170.0140.00417.20
8.3.160.0140.00418.77
8.3.150.0030.00618.39
8.3.140.0090.00617.28
8.3.130.0060.00318.44
8.3.120.0040.00418.82
8.3.110.0100.00020.94
8.3.100.0030.00716.80
8.3.90.0030.00526.77
8.3.80.0130.00016.75
8.3.70.0100.01016.63
8.3.60.0110.00416.63
8.3.50.0100.00718.37
8.3.40.0030.01020.29
8.3.30.0080.00818.79
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0040.00620.80
8.2.280.0080.00718.66
8.2.270.0070.00017.41
8.2.260.0080.00316.67
8.2.250.0040.01118.57
8.2.240.0040.00417.35
8.2.230.0030.00722.58
8.2.220.0000.01024.06
8.2.210.0070.00726.77
8.2.200.0090.00018.54
8.2.190.0110.01116.75
8.2.180.0070.01125.92
8.2.170.0120.00319.04
8.2.160.0100.01322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0030.00622.26
8.2.100.0030.00717.91
8.2.90.0090.00017.91
8.2.80.0000.00818.99
8.2.70.0040.00417.63
8.2.60.0000.00817.92
8.2.50.0040.00418.05
8.2.40.0040.00418.09
8.2.30.0040.00418.02
8.2.20.0060.00319.33
8.2.10.0000.00717.91
8.2.00.0000.00719.20
8.1.330.0110.00821.91
8.1.320.0120.00716.55
8.1.310.0090.00618.50
8.1.300.0080.00817.99
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.55
8.1.230.0060.00520.71
8.1.220.0040.00417.74
8.1.210.0050.00318.78
8.1.200.0030.00617.35
8.1.190.0080.00317.25
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00719.04
8.1.150.0040.00418.77
8.1.140.0070.00017.55
8.1.130.0030.00318.95
8.1.120.0050.00317.59
8.1.110.0000.00717.55
8.1.100.0060.00317.50
8.1.90.0140.00117.37
8.1.80.0130.00117.47
8.1.70.0130.00417.54
8.1.60.0090.01017.65
8.1.50.0050.01117.60
8.1.40.0110.00617.51
8.1.30.0130.00517.68
8.1.20.0180.00017.75
8.1.10.0160.00217.59
8.1.00.0070.01117.49
8.0.300.0000.00720.09
8.0.290.0050.00216.88
8.0.280.0070.00018.46
8.0.270.0000.00717.00
8.0.260.0070.00318.46
8.0.250.0070.00017.16
8.0.240.0000.00617.17
8.0.230.0130.00116.92
8.0.220.0120.00316.96
8.0.210.0110.00416.88
8.0.200.0110.00216.95
8.0.190.0090.00716.93
8.0.180.0140.00216.92
8.0.170.0130.00216.95
8.0.160.0140.00016.93
8.0.150.0100.00416.87
8.0.140.0120.00516.94
8.0.130.0100.00516.93
8.0.120.0090.00616.96
8.0.110.0130.00116.91
8.0.100.0100.00616.84
8.0.90.0130.00316.92
8.0.80.0100.00416.87
8.0.70.0120.00316.88
8.0.60.0070.00916.94
8.0.50.0080.00716.92
8.0.30.0090.00516.94
8.0.20.0090.00616.96
8.0.10.0070.00816.98
7.4.330.0020.00215.55
7.4.320.0070.00016.71
7.4.300.0120.00416.66
7.4.290.0140.00416.68
7.4.280.0150.00316.60
7.4.270.0090.00816.73
7.4.260.0100.00516.67
7.4.250.0130.00316.65
7.4.240.0130.00416.68
7.4.230.0100.00616.59
7.4.220.0100.00516.56
7.4.210.0110.00416.72
7.4.200.0130.00216.56
7.4.190.0140.00016.72
7.4.180.0080.00716.68
7.4.160.0060.00816.69
7.4.150.0110.00516.69
7.4.140.0070.00716.72
7.4.130.0090.00616.65
7.4.120.0080.00516.53
7.4.110.0090.00516.68
7.4.100.0050.00916.69
7.4.90.0120.00316.58
7.4.80.0080.00616.57
7.4.70.0070.00616.57
7.4.60.0090.00316.57
7.4.50.0120.00316.54
7.4.40.0100.00416.58
7.4.30.0080.00516.57
7.4.20.0090.00416.63
7.4.10.0120.00216.48
7.4.00.0060.00716.63

preferences:
33.32 ms | 403 KiB | 5 Q