3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text1 = <<<EOD <tr class="aaa"> <td class="bbb"> <p> あああああ </p> </td> <tr> EOD; $text2 = <<<EOD <tr class="aaa"> <td class="bbb"> あああああ </td> <tr> EOD; $text1 = preg_replace_callback( '@(<br[^>]*+>)|</?+p>|(?<=<t(?:r|d))[^>]*+(?=>)@', function ($matches) { return isset($matches[1]) ? '、' : ''; }, $text1 ); $text2 = preg_replace_callback( '@(<br[^>]*+>)|</?+p>|(?<=<t(?:r|d))[^>]*+(?=>)@', function ($matches) { return isset($matches[1]) ? '、' : ''; }, $text2 ); var_dump($text1, $text2);

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.0140.00717.00
8.3.50.0110.00922.00
8.3.40.0090.00619.14
8.3.30.0110.00419.04
8.3.20.0070.00020.38
8.3.10.0040.00423.56
8.3.00.0080.00019.40
8.2.180.0180.00418.46
8.2.170.0110.00722.96
8.2.160.0030.01020.48
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00022.42
8.2.110.0040.00720.52
8.2.100.0080.00418.16
8.2.90.0040.00419.16
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0000.01220.38
8.2.30.0030.00519.43
8.2.20.0000.00717.91
8.2.10.0030.00619.88
8.2.00.0060.00317.99
8.1.280.0120.00825.92
8.1.270.0060.00324.02
8.1.260.0060.00326.35
8.1.250.0000.00928.09
8.1.240.0000.01020.55
8.1.230.0090.00317.71
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0060.00317.38
8.1.180.0000.00718.10
8.1.170.0050.00318.68
8.1.160.0030.00718.95
8.1.150.0070.00020.12
8.1.140.0040.00417.67
8.1.130.0030.00317.87
8.1.120.0040.00417.70
8.1.110.0040.00417.59
8.1.100.0040.00417.71
8.1.90.0000.00717.64
8.1.80.0000.00717.51
8.1.70.0000.00817.55
8.1.60.0030.00617.72
8.1.50.0050.00317.68
8.1.40.0000.00817.73
8.1.30.0040.00417.79
8.1.20.0040.00417.85
8.1.10.0040.00417.66
8.1.00.0000.00717.50
8.0.300.0050.00218.77
8.0.290.0040.00416.88
8.0.280.0050.00218.47
8.0.270.0020.00517.10
8.0.260.0070.00017.04
8.0.250.0030.00317.17
8.0.240.0040.00417.07
8.0.230.0030.00317.18
8.0.220.0000.00717.10
8.0.210.0000.00716.99
8.0.200.0000.00817.25
8.0.190.0000.00717.22
8.0.180.0000.00717.20
8.0.170.0060.00317.17
8.0.160.0030.00617.23
8.0.150.0000.00717.21
8.0.140.0070.00017.14
8.0.130.0040.00413.64
8.0.120.0000.00817.20
8.0.110.0040.00417.10
8.0.100.0000.00717.24
8.0.90.0000.00717.18
8.0.80.0070.00717.17
8.0.70.0040.00417.20
8.0.60.0040.00417.07
8.0.50.0000.00717.06
8.0.30.0060.01317.19
8.0.20.0080.01117.40
8.0.10.0000.00717.30
8.0.00.0100.00917.05
7.4.330.0000.00515.16
7.4.320.0000.00616.83
7.4.300.0030.00316.87
7.4.290.0000.00816.87
7.4.280.0050.00316.68
7.4.270.0040.00416.75
7.4.260.0070.00416.71
7.4.250.0080.00016.79
7.4.240.0020.00516.78
7.4.230.0040.00416.83
7.4.220.0130.00616.86
7.4.210.0080.00716.89
7.4.200.0000.00716.69
7.4.190.0000.00716.70
7.4.160.0110.00616.78
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0090.00816.77
7.4.120.0140.00316.74
7.4.110.0040.01316.71
7.4.100.0130.01016.72
7.4.90.0030.01516.63
7.4.80.0080.01119.39
7.4.70.0140.00316.63
7.4.60.0130.00316.80
7.4.50.0000.00716.73
7.4.40.0110.00322.77
7.4.30.0060.01216.84
7.4.00.0030.01215.16
7.3.330.0050.00013.41
7.3.320.0000.00513.45
7.3.310.0000.00816.63
7.3.300.0030.00316.60
7.3.290.0070.01316.59
7.3.280.0090.01016.59
7.3.270.0090.00917.40
7.3.260.0060.01216.75
7.3.250.0090.01516.54
7.3.240.0100.00616.38
7.3.230.0030.01316.49
7.3.210.0090.00616.56
7.3.200.0090.00919.39
7.3.190.0090.01216.55
7.3.180.0140.00716.60
7.3.170.0100.00616.80
7.3.160.0120.00616.54
7.3.120.0070.00714.89
7.2.330.0090.00916.79
7.2.320.0040.01316.76
7.2.310.0070.01016.77
7.2.300.0090.00916.59
7.2.290.0170.00616.87
7.2.00.0060.00919.68
7.1.100.0000.01217.91
7.1.70.0130.00617.35
7.1.60.0030.01719.33
7.1.50.0080.01516.88
7.1.00.0030.07322.54
7.0.200.0000.00917.04
7.0.140.0000.08022.00
7.0.60.0130.07019.93
7.0.50.0070.06017.99
7.0.40.0100.07320.05
7.0.30.0270.08020.13
7.0.20.0370.05320.18
7.0.10.0000.05020.25
7.0.00.0130.06720.35
5.6.280.0130.06321.04
5.6.210.0070.05020.71
5.6.200.0000.05018.23
5.6.190.0030.07720.48
5.6.180.0330.07720.68
5.6.170.0370.07320.48
5.6.160.0100.05020.52
5.6.150.0030.08318.21
5.6.140.0070.08318.14
5.6.130.0070.08318.18
5.6.120.0070.05021.00
5.6.110.0070.08321.12
5.6.100.0070.05021.05
5.6.90.0000.04320.89
5.6.80.0000.04320.39
5.5.350.0070.06720.40
5.5.340.0030.04017.99
5.5.330.0000.04320.40
5.5.320.0130.07320.51
5.5.310.0270.04720.34
5.5.300.0100.07717.95
5.5.290.0030.05718.07
5.5.280.0030.04320.80
5.5.270.0030.05320.96
5.5.260.0130.07720.73
5.5.250.0000.05320.57
5.5.240.3830.03020.19
5.4.450.0270.04319.27
5.4.440.0330.06719.49
5.4.430.0300.07019.41
5.4.420.0570.03019.63
5.4.410.0230.04019.34
5.4.400.0270.05019.00
5.4.390.0230.04319.21
5.4.380.0300.03319.16
5.4.370.0300.04019.07
5.4.360.0430.06018.96
5.4.350.0400.06718.98
5.4.340.0230.04019.22
5.4.320.0230.07719.20
5.4.310.0370.05719.24
5.4.300.0270.07319.05
5.4.290.0230.03719.22
5.4.280.0400.06319.18
5.4.270.0270.07319.17
5.4.260.0370.06318.94
5.4.250.0330.07019.15
5.4.240.0270.07319.21
5.4.230.0200.05319.14
5.4.220.0370.05319.14
5.4.210.0300.06719.23
5.4.200.0200.04719.08
5.4.190.0270.07718.98
5.4.180.0300.07319.21
5.4.170.0400.05719.07
5.4.160.0270.07319.20
5.4.150.0270.03718.98
5.4.140.0230.04716.50
5.4.130.0330.06016.35
5.4.120.0330.04016.41
5.4.110.0200.04016.42
5.4.100.0270.06716.55
5.4.90.0200.04316.19
5.4.80.0370.05716.17
5.4.70.0230.04016.39
5.4.60.0300.04716.32
5.4.50.0370.05316.56
5.4.40.0270.06316.38
5.4.30.0330.06316.42
5.4.20.0270.04716.30
5.4.10.0370.06016.16
5.4.00.0400.05315.80
5.3.290.0270.07314.66
5.3.280.0200.04014.60
5.3.270.0230.06314.79
5.3.260.0300.07314.76
5.3.250.0300.07014.59
5.3.240.0200.04014.69
5.3.230.0270.04014.60
5.3.220.0270.05714.54
5.3.210.0230.05014.64
5.3.200.0330.07014.63
5.3.190.0270.05014.57
5.3.180.0300.07014.54
5.3.170.0400.06014.55
5.3.160.0230.05314.64
5.3.150.0200.07714.72
5.3.140.0300.06714.56
5.3.130.0300.03714.48
5.3.120.0230.07714.52
5.3.110.0200.08314.64
5.3.100.0330.07014.11
5.3.90.0270.04013.93
5.3.80.0200.04013.91
5.3.70.0270.05014.02
5.3.60.0270.03314.02
5.3.50.0300.07013.87
5.3.40.0400.05313.96
5.3.30.0200.04713.84
5.3.20.0300.06013.63
5.3.10.0270.03313.68
5.3.00.0300.05713.76
5.2.170.0230.03711.24
5.2.160.0230.06011.00
5.2.150.0200.03711.05
5.2.140.0230.04011.00
5.2.130.0270.04710.93
5.2.120.0300.05011.15
5.2.110.0200.06010.96
5.2.100.0170.06011.12
5.2.90.0270.05311.15
5.2.80.0270.05710.93
5.2.70.0230.03711.14
5.2.60.0200.06311.07
5.2.50.0230.05710.92
5.2.40.0170.05310.84
5.2.30.0170.04311.07
5.2.20.0230.05710.86
5.2.10.0170.03010.76
5.2.00.0100.03310.63
5.1.60.0200.0509.91
5.1.50.0200.0409.98
5.1.40.0170.0539.92
5.1.30.0130.05310.25
5.1.20.0130.04010.25
5.1.10.0270.04310.19
5.1.00.0130.0379.98
5.0.50.0170.0409.72
5.0.40.0100.0409.72
5.0.30.0070.0409.72
5.0.20.0070.0479.72
5.0.10.0130.0439.72
5.0.00.0070.0379.72
4.4.90.0130.0339.72
4.4.80.0170.0279.72
4.4.70.0130.0309.72
4.4.60.0070.0279.72
4.4.50.0100.0179.72
4.4.40.0130.0409.72
4.4.30.0100.0339.72
4.4.20.0100.0279.72
4.4.10.0100.0339.72
4.4.00.0100.0539.72
4.3.110.0100.0339.72
4.3.100.0100.0309.72
4.3.90.0170.0309.72
4.3.80.0030.0279.72
4.3.70.0100.0109.72
4.3.60.0100.0179.72
4.3.50.0070.0139.72
4.3.40.0070.0239.72
4.3.30.0030.0179.72
4.3.20.0030.0179.72
4.3.10.0030.0179.72
4.3.00.0000.0139.72

preferences:
36.14 ms | 401 KiB | 5 Q