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.0110.00416.88
8.3.50.0080.01117.71
8.3.40.0130.01019.14
8.3.30.0120.00318.83
8.3.20.0110.00418.89
8.3.10.0030.00620.77
8.3.00.0040.01419.63
8.2.180.0120.00618.63
8.2.170.0080.00622.96
8.2.160.0090.00621.29
8.2.150.0080.00024.18
8.2.140.0140.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.61
8.2.110.0060.00321.23
8.2.100.0040.00717.92
8.2.90.0060.00319.22
8.2.80.0000.00818.05
8.2.70.0040.00417.74
8.2.60.0080.00017.91
8.2.50.0050.00318.07
8.2.40.0040.00418.41
8.2.30.0060.00318.16
8.2.20.0000.00717.84
8.2.10.0000.00718.03
8.2.00.0080.00018.00
8.1.280.0000.01525.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.70
8.1.230.0070.00320.92
8.1.220.0030.00517.77
8.1.210.0050.00318.89
8.1.200.0060.00317.47
8.1.190.0000.00817.52
8.1.180.0080.00018.10
8.1.170.0000.00818.91
8.1.160.0050.00318.84
8.1.150.0080.00018.71
8.1.140.0040.00417.58
8.1.130.0030.00317.74
8.1.120.0040.00417.56
8.1.110.0040.00417.67
8.1.100.0000.00817.52
8.1.90.0050.00217.53
8.1.80.0000.00717.53
8.1.70.0000.00717.59
8.1.60.0040.00417.64
8.1.50.0040.00417.55
8.1.40.0000.00817.61
8.1.30.0000.00817.68
8.1.20.0040.00417.75
8.1.10.0030.00517.57
8.1.00.0040.00417.63
8.0.300.0030.00519.85
8.0.290.0000.00716.88
8.0.280.0000.00818.34
8.0.270.0000.00717.20
8.0.260.0040.00416.98
8.0.250.0000.00717.12
8.0.240.0070.00017.09
8.0.230.0040.00417.13
8.0.220.0030.00317.16
8.0.210.0030.00317.16
8.0.200.0030.00517.21
8.0.190.0080.00017.23
8.0.180.0000.00717.09
8.0.170.0040.00417.20
8.0.160.0000.00717.27
8.0.150.0080.00017.22
8.0.140.0040.00417.09
8.0.130.0030.00313.56
8.0.120.0050.00217.07
8.0.110.0000.00817.24
8.0.100.0040.00417.07
8.0.90.0000.00817.21
8.0.80.0040.01217.23
8.0.70.0040.00417.13
8.0.60.0000.00817.05
8.0.50.0000.00817.18
8.0.30.0130.01117.36
8.0.20.0080.01017.20
8.0.10.0020.00517.14
8.0.00.0080.01116.91
7.4.330.0000.00513.15
7.4.320.0030.00316.77
7.4.300.0000.00716.78
7.4.290.0070.00016.87
7.4.280.0030.00616.68
7.4.270.0040.00416.74
7.4.260.0080.00013.61
7.4.250.0040.00416.80
7.4.240.0030.00316.79
7.4.230.0030.00316.62
7.4.220.0100.01016.84
7.4.210.0080.00916.84
7.4.200.0000.00816.71
7.4.190.0000.00816.96
7.4.160.0030.01316.82
7.4.150.0070.01016.75
7.4.140.0110.01016.74
7.4.130.0110.00516.82
7.4.120.0100.00716.69
7.4.110.0060.01116.52
7.4.100.0090.01016.68
7.4.90.0090.00916.74
7.4.80.0120.01019.39
7.4.70.0060.01616.73
7.4.60.0090.01316.63
7.4.50.0000.00616.67
7.4.40.0000.01416.60
7.4.30.0150.00416.73
7.4.00.0120.00515.18
7.3.330.0000.00613.54
7.3.320.0030.00613.40
7.3.310.0050.00316.55
7.3.300.0070.00016.47
7.3.290.0060.01016.61
7.3.280.0110.00416.60
7.3.270.0090.00916.54
7.3.260.0070.01216.63
7.3.250.0050.01516.58
7.3.240.0080.00816.52
7.3.230.0040.01516.43
7.3.210.0130.00316.62
7.3.200.0090.00916.50
7.3.190.0030.01416.76
7.3.180.0090.00916.43
7.3.170.0090.00616.67
7.3.160.0100.00716.78
7.3.120.0090.01114.93
7.3.110.0070.00714.79
7.3.100.0030.01214.79
7.3.90.0100.00314.98
7.3.80.0070.00714.95
7.3.70.0050.00815.03
7.3.60.0060.00714.99
7.3.50.0020.01114.95
7.3.40.0050.01014.90
7.3.30.0030.00914.86
7.3.20.0020.01216.77
7.3.10.0070.00616.69
7.3.00.0070.00716.65
7.2.330.0110.00716.95
7.2.320.0150.00816.95
7.2.310.0130.00616.87
7.2.300.0050.01116.64
7.2.290.0120.01016.75
7.2.250.0100.00614.88
7.2.240.0080.01115.31
7.2.230.0060.00915.26
7.2.220.0050.01015.17
7.2.210.0060.00915.02
7.2.200.0040.01015.19
7.2.190.0070.01015.17
7.2.180.0070.00715.22
7.2.170.0040.00815.27
7.2.160.0090.00615.36
7.2.150.0060.00616.98
7.2.140.0070.01017.21
7.2.130.0050.00816.97
7.2.120.0090.00717.17
7.2.110.0050.00716.89
7.2.100.0070.00817.12
7.2.90.0070.00917.18
7.2.80.0080.00316.99
7.2.70.0120.00617.05
7.2.60.0070.00717.07
7.2.50.0050.00917.01
7.2.40.0060.01117.13
7.2.30.0150.00917.01
7.2.20.0080.00817.13
7.2.10.0100.01017.01
7.2.00.0080.00817.88
7.1.330.0070.00915.86
7.1.320.0030.01215.96
7.1.310.0030.01015.88
7.1.300.0020.01015.94
7.1.290.0110.00315.98
7.1.280.0080.00816.01
7.1.270.0050.00815.97
7.1.260.0060.00915.70
7.1.250.0070.00515.90
7.1.200.0180.00315.66
7.1.100.0180.00016.23
7.1.70.0000.00717.24
7.1.60.0040.02119.40
7.1.50.0130.00717.14
7.1.00.0000.06322.47
7.0.200.0110.00715.01
7.0.140.0070.07021.97
7.0.120.0000.07722.16
7.0.60.0030.08319.87
7.0.50.0100.07717.77
7.0.40.0130.07317.77
7.0.30.0070.08017.80
7.0.20.0100.07717.88
7.0.10.0070.07717.73
7.0.00.0070.04717.77
5.6.280.0100.06720.99
5.6.210.0070.08320.52
5.6.200.0170.06018.12
5.6.190.0170.05318.18
5.6.180.0030.06018.16
5.6.170.0100.06718.14
5.6.160.0100.08018.22
5.6.150.0030.08018.18
5.6.140.0030.08718.14
5.6.130.0030.07718.17
5.6.120.0130.04718.16
5.6.110.0070.07318.11
5.6.100.0100.07718.17
5.6.90.0000.07018.13
5.6.80.0030.08317.56
5.6.70.0100.04717.56
5.6.60.0100.06717.61
5.6.50.0030.04717.59
5.6.40.0030.05017.54
5.6.30.0100.05017.55
5.6.20.0070.08017.54
5.6.10.0070.03717.54
5.6.00.0000.07317.63
5.5.350.0230.03020.41
5.5.340.0100.06018.09
5.5.330.0100.07718.05
5.5.320.0070.05318.02
5.5.310.0070.07317.96
5.5.300.0030.09017.94
5.5.290.0070.05317.95
5.5.280.0030.05017.97
5.5.270.0100.07717.96
5.5.260.0170.07018.06
5.5.250.0070.08017.80
5.5.240.0030.05017.37
5.5.230.0100.03317.42
5.5.220.0030.08017.41
5.5.210.0070.06017.42
5.5.200.0100.05717.31
5.5.190.0130.04717.29
5.5.180.0070.07017.33
5.5.160.0170.06717.40
5.5.150.0130.06717.35
5.5.140.0130.05717.31
5.5.130.0070.07717.30
5.5.120.0030.05317.28
5.5.110.0070.07717.38
5.5.100.0030.04317.21
5.5.90.0100.07317.20
5.5.80.0070.04717.20
5.5.70.0130.07317.32
5.5.60.0070.07717.32
5.5.50.0170.03717.29
5.5.40.0070.06717.22
5.5.30.0030.08317.30
5.5.20.0070.07717.32
5.5.10.0070.07717.28
5.5.00.0030.07717.18
5.4.450.0070.05319.37
5.4.440.0070.04719.35
5.4.430.0070.07319.36
5.4.420.0030.05019.59
5.4.410.0000.04719.32
5.4.400.0170.06019.03
5.4.390.0070.03719.12
5.4.380.0130.07019.05
5.4.370.0030.08319.27
5.4.360.0070.07019.05
5.4.350.0070.06319.12
5.4.340.0130.03318.98
5.4.320.0030.07019.11
5.4.310.0170.06719.03
5.4.300.0130.07319.03
5.4.290.0100.05719.09
5.4.280.0100.07319.09
5.4.270.0030.08019.07
5.4.260.0100.07719.16
5.4.250.0030.04019.09
5.4.240.0070.07719.01
5.4.230.0070.08018.98
5.4.220.0170.06719.03
5.4.210.0100.08019.01
5.4.200.0200.06719.02
5.4.190.0030.04319.08
5.4.180.0130.07319.02
5.4.170.0100.06719.11
5.4.160.0130.07019.07
5.4.150.0030.08319.01
5.4.140.0030.07316.36
5.4.130.0030.04316.38
5.4.120.0100.07316.55
5.4.110.0100.03316.41
5.4.100.0100.03716.43
5.4.90.0130.06316.64
5.4.80.0030.06016.48
5.4.70.0000.06016.41
5.4.60.0070.06316.36
5.4.50.0130.04016.48
5.4.40.0000.07716.44
5.4.30.0030.03716.42
5.4.20.0100.07716.21
5.4.10.0030.04316.36
5.4.00.0100.04315.98
5.3.290.0070.08314.72
5.3.280.0030.05714.58
5.3.270.0130.05714.68
5.3.260.0070.07714.57
5.3.250.0030.05314.58
5.3.240.0100.07314.71
5.3.230.0030.07714.70
5.3.220.0030.06314.54
5.3.210.0100.07714.59
5.3.200.0030.05314.69
5.3.190.0070.04314.68
5.3.180.0230.03314.59
5.3.170.0100.06714.61
5.3.160.0070.06014.56
5.3.150.0100.07014.61
5.3.140.0070.06314.58
5.3.130.0100.07714.58
5.3.120.0030.05314.66
5.3.110.0030.07714.40
5.3.100.0030.04314.00
5.3.90.0030.05714.06
5.3.80.0100.07014.00
5.3.70.0170.02313.91
5.3.60.0030.03714.04
5.3.50.0170.03714.00
5.3.40.0000.04013.95
5.3.30.0070.04314.02
5.3.20.0030.06013.72
5.3.10.0070.04713.64
5.3.00.0100.03313.85
5.2.170.0200.04311.13
5.2.160.0030.03011.29
5.2.150.0000.03311.14
5.2.140.0070.06011.17
5.2.130.0070.04711.13
5.2.120.0070.03311.00
5.2.110.0030.03011.08
5.2.100.0100.05711.24
5.2.90.0030.03711.23
5.2.80.0030.04711.01
5.2.70.0030.03311.07
5.2.60.0170.05011.04
5.2.50.0100.03310.92
5.2.40.0070.05010.82
5.2.30.0070.05010.80
5.2.20.0070.04010.89
5.2.10.0100.05710.89
5.2.00.0100.04010.70
5.1.60.0030.0409.98
5.1.50.0000.0339.96
5.1.40.0070.0309.96
5.1.30.0030.03010.18
5.1.20.0000.03010.39
5.1.10.0000.04310.05
5.1.00.0130.02710.06
5.0.50.0030.0208.46
5.0.40.0030.0238.38
5.0.30.0000.0408.13
5.0.20.0000.0238.25
5.0.10.0000.0238.08
5.0.00.0030.0308.20
4.4.90.0030.0377.99
4.4.80.0000.0177.99
4.4.70.0100.0107.99
4.4.60.0030.0377.99
4.4.50.0070.0307.99
4.4.40.0000.0437.99
4.4.30.0030.0207.99
4.4.20.0000.0207.99
4.4.10.0030.0207.99
4.4.00.0000.0607.99
4.3.110.0070.0277.99
4.3.100.0000.0177.99
4.3.90.0000.0177.99
4.3.80.0000.0337.99
4.3.70.0000.0237.99
4.3.60.0000.0207.99
4.3.50.0000.0407.99
4.3.40.0030.0477.99
4.3.30.0000.0337.99
4.3.20.0000.0277.99
4.3.10.0030.0337.99
4.3.00.0000.0337.99

preferences:
44.71 ms | 401 KiB | 5 Q