3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(<table id="table-[0-9]+">[\s]+<tbody>[\s]+<tr><td><p>\{\{Phrase (1|2)\}\}<\/p><\/td><\/tr>[\s]+<\/tbody>[\s]+<\/table>)/'; $html = '<table id="table-1"> <tbody> <tr><td><p>{{Phrase 1}}</p></td></tr> </tbody> </table> <table id="table-2"> <tbody> <tr><td><p>Sample text 1 goes here..</p></td></tr> </tbody> </table> <table id="table-3"> <tbody> <tr><td><p>{{Phrase 2}}</p></td></tr> </tbody> </table> <table id="table-4"> <tbody> <tr><td><p>Sample text 2 goes here..</p></td></tr> </tbody> </table>'; $clean = preg_replace($regex, '', $html); echo $clean;

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.5.10.0080.01016.94
8.5.00.0140.00920.34
8.4.150.0030.00014.05
8.4.140.0070.01417.78
8.4.130.0100.01118.11
8.4.120.0140.00620.74
8.4.110.0040.00618.77
8.4.100.0120.00817.82
8.4.90.0090.00618.96
8.4.80.0130.00720.04
8.4.70.0100.00618.21
8.4.60.0120.00818.85
8.4.50.0050.00418.70
8.4.40.0070.01420.65
8.4.30.0060.01319.44
8.4.20.0190.00317.85
8.4.10.0070.01019.70
8.3.280.0130.00818.35
8.3.270.0100.00816.68
8.3.260.0110.00616.71
8.3.250.0070.01218.80
8.3.240.0110.00816.59
8.3.230.0110.00616.67
8.3.220.0100.00817.07
8.3.210.0060.00216.79
8.3.200.0040.00516.54
8.3.190.0100.01016.91
8.3.180.0110.00516.64
8.3.170.0090.00917.23
8.3.160.0060.01318.41
8.3.150.0110.00717.18
8.3.140.0040.00416.57
8.3.130.0040.00418.51
8.3.120.0080.00020.37
8.3.110.0120.00016.59
8.3.100.0090.00016.59
8.3.90.0060.00316.73
8.3.80.0060.00318.55
8.3.70.0120.00416.75
8.3.60.0090.01118.68
8.3.50.0110.00616.56
8.3.40.0130.00318.77
8.3.30.0130.00318.98
8.3.20.0040.00420.31
8.3.10.0040.00420.73
8.3.00.0050.00220.21
8.2.290.0110.00820.35
8.2.280.0120.00722.54
8.2.270.0150.00417.37
8.2.260.0140.00018.90
8.2.250.0080.00018.61
8.2.240.0000.00817.10
8.2.230.0030.00720.94
8.2.220.0130.00724.06
8.2.210.0080.01126.77
8.2.200.0060.00318.66
8.2.190.0100.00316.58
8.2.180.0110.00716.48
8.2.170.0100.00722.96
8.2.160.0040.01120.47
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00621.31
8.2.110.0060.00322.25
8.2.100.0080.00317.97
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0080.00018.21
8.2.40.0080.00020.54
8.2.30.0000.00819.32
8.2.20.0000.00717.95
8.2.10.0030.00618.09
8.2.00.0000.00718.25
8.1.330.0040.00423.59
8.1.320.0070.01316.02
8.1.310.0170.00018.57
8.1.300.0040.00418.22
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0040.00423.91
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0070.00322.20
8.1.230.0000.01117.64
8.1.220.0070.00417.76
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.70
8.1.160.0000.00718.82
8.1.150.0040.00420.29
8.1.140.0040.00419.58
8.1.130.0090.00018.74
8.1.120.0000.00717.46
8.1.110.0000.00917.45
8.1.100.0030.00617.56
8.1.90.0000.00817.39
8.1.80.0000.00817.45
8.1.70.0000.00717.59
8.1.60.0030.00617.64
8.1.50.0000.00917.50
8.1.40.0000.00817.60
8.1.30.0040.00417.70
8.1.20.0040.00417.65
8.1.10.0040.00417.58
8.1.00.0030.00517.59
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0030.00317.21
8.0.260.0050.00318.84
8.0.250.0070.00017.11
8.0.240.0080.00017.05
8.0.230.0030.00317.07
8.0.220.0080.00016.87
8.0.210.0040.00416.86
8.0.200.0030.00317.03
8.0.190.0000.00817.04
8.0.180.0070.00016.97
8.0.170.0000.00817.02
8.0.160.0000.00716.95
8.0.150.0000.00716.99
8.0.140.0000.00716.94
8.0.130.0040.00413.48
8.0.120.0080.00016.98
8.0.110.0040.00416.91
8.0.100.0000.00716.94
8.0.90.0080.00017.05
8.0.80.0060.00917.06
8.0.70.0040.00416.82
8.0.60.0080.00017.03
8.0.50.0040.00317.01
8.0.30.0090.01017.12
8.0.20.0080.01017.40
8.0.10.0040.00417.07
8.0.00.0140.00316.95
7.4.330.0050.00015.55
7.4.320.0000.00616.76
7.4.300.0030.00316.61
7.4.290.0000.00716.66
7.4.280.0030.00516.60
7.4.270.0040.00416.63
7.4.260.0030.00316.64
7.4.250.0000.00816.73
7.4.240.0000.00716.77
7.4.230.0030.00316.67
7.4.220.0130.00616.69
7.4.210.0100.00616.72
7.4.200.0070.00016.61
7.4.160.0040.01216.60
7.4.150.0100.00717.40
7.4.140.0150.00717.86
7.4.130.0220.00416.57
7.4.120.0150.00616.56
7.4.110.0110.00716.61
7.4.100.0080.00816.79
7.4.90.0100.00716.72
7.4.80.0140.00319.39
7.4.70.0060.01616.70
7.4.60.0040.01416.61
7.4.50.0100.00616.54
7.4.40.0100.01016.65
7.4.30.0050.01116.51
7.4.00.0060.00915.29
7.3.330.0030.00313.23
7.3.320.0030.00313.13
7.3.310.0080.00016.40
7.3.300.0050.00216.39
7.3.290.0070.00916.40
7.3.280.0060.01016.35
7.3.270.0140.00417.40
7.3.260.0090.00816.49
7.3.250.0110.00616.52
7.3.240.0140.00516.61
7.3.230.0120.01016.55
7.3.210.0040.01116.25
7.3.200.0030.01316.53
7.3.190.0150.00016.41
7.3.180.0100.01316.64
7.3.170.0060.00916.59
7.3.160.0100.01016.60
7.2.330.0090.00816.50
7.2.320.0130.00416.90
7.2.310.0060.01216.70
7.2.300.0100.00716.67
7.2.290.0080.00816.49
7.2.60.0040.00416.92
7.1.200.0040.00715.95
7.1.80.0290.00916.26
7.1.70.0000.01417.43
7.1.60.0390.01033.21
7.1.50.0210.01034.93
7.1.40.0190.00834.59
7.1.30.0180.00934.66
7.1.20.0330.01132.91
7.1.10.0100.00517.02
7.1.00.0000.01416.90
7.0.200.0290.00415.21
7.0.190.0080.00616.86
7.0.180.0040.00816.37
7.0.170.0220.00814.51
7.0.160.0100.00316.57
7.0.150.0190.01616.36
7.0.140.0080.00416.53
7.0.130.0070.00716.56
7.0.120.0200.00914.80
7.0.110.0060.00816.43
7.0.100.0070.00716.44
7.0.90.0030.01016.75
7.0.80.0060.00616.75
7.0.70.0030.00916.53
7.0.60.0040.00816.37
7.0.50.0130.00016.46
7.0.40.0040.00916.63
7.0.30.0030.01416.74
7.0.20.0110.00316.84
7.0.10.0030.00916.66
7.0.00.0040.00816.84

preferences:
186.84 ms | 403 KiB | 5 Q