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[^>]*+>)|\s*+</?+p>\s*+|(?<=<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.40.0000.01518.97
8.3.30.0040.01118.96
8.3.20.0000.00720.25
8.3.10.0000.00822.00
8.3.00.0040.00422.39
8.2.170.0130.00722.96
8.2.160.0070.00721.06
8.2.150.0040.00424.18
8.2.140.0030.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00418.00
8.2.110.0060.00922.38
8.2.100.0110.00018.03
8.2.90.0050.00318.16
8.2.80.0000.00920.02
8.2.70.0080.00017.88
8.2.60.0040.00418.00
8.2.50.0030.00518.07
8.2.40.0080.00018.16
8.2.30.0000.00818.21
8.2.20.0030.00517.87
8.2.10.0040.00417.98
8.2.00.0040.00417.99
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0070.01028.09
8.1.240.0030.00622.10
8.1.230.0030.00722.11
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0050.00317.48
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0000.00818.74
8.1.160.0040.00422.00
8.1.150.0040.00418.88
8.1.140.0080.00017.62
8.1.130.0000.00717.88
8.1.120.0040.00417.53
8.1.110.0070.00017.61
8.1.100.0070.00017.45
8.1.90.0040.00417.67
8.1.80.0060.00317.63
8.1.70.0000.00717.63
8.1.60.0030.00517.77
8.1.50.0040.00417.64
8.1.40.0040.00417.58
8.1.30.0040.00417.75
8.1.20.0000.00917.83
8.1.10.0070.00017.58
8.1.00.0040.00417.50
8.0.300.0040.00419.98
8.0.290.0030.00517.00
8.0.280.0040.00418.42
8.0.270.0000.00717.29
8.0.260.0030.00316.92
8.0.250.0040.00417.15
8.0.240.0040.00417.07
8.0.230.0050.00317.07
8.0.220.0030.00317.14
8.0.210.0000.00717.11
8.0.200.0000.00717.27
8.0.190.0000.00717.23
8.0.180.0040.00417.13
8.0.170.0000.00817.21
8.0.160.0000.00817.23
8.0.150.0030.00317.13
8.0.140.0040.00417.16
8.0.130.0000.00513.60
8.0.120.0040.00417.17
8.0.110.0040.00417.25
8.0.100.0040.00417.17
8.0.90.0070.00017.04
8.0.80.0070.01017.25
8.0.70.0050.00317.18
8.0.60.0080.00017.21
8.0.50.0070.00017.21
8.0.30.0080.01117.19
8.0.20.0120.00817.44
8.0.10.0040.00417.36
8.0.00.0050.01616.85
7.4.330.0050.00015.08
7.4.320.0000.00616.75
7.4.300.0000.00716.68
7.4.290.0030.00316.73
7.4.280.0030.00316.85
7.4.270.0030.00316.82
7.4.260.0000.00716.73
7.4.250.0040.00416.60
7.4.240.0020.00616.67
7.4.230.0030.00316.92
7.4.220.0100.00716.70
7.4.210.0080.00916.80
7.4.200.0000.00816.93
7.4.190.0030.00316.90
7.4.160.0080.00816.86
7.4.150.0150.00317.40
7.4.140.0090.00917.86
7.4.130.0080.01116.72
7.4.120.0180.00416.78
7.4.110.0070.01016.84
7.4.100.0150.00616.86
7.4.90.0110.00616.66
7.4.80.0060.01216.84
7.4.70.0100.01316.84
7.4.60.0120.00316.81
7.4.50.0030.00616.70
7.4.40.0030.01022.77
7.4.30.0100.00716.78
7.4.00.0070.00815.06
7.3.330.0000.00613.41
7.3.320.0000.00513.58
7.3.310.0040.00416.65
7.3.300.0000.00716.59
7.3.290.0030.01216.61
7.3.280.0080.01116.61
7.3.270.0090.00917.40
7.3.260.0100.01016.48
7.3.250.0090.00916.85
7.3.240.0130.01016.75
7.3.230.0070.01016.39
7.3.210.0120.00616.41
7.3.200.0030.01819.39
7.3.190.0070.01116.60
7.3.180.0070.01016.39
7.3.170.0070.00816.62
7.3.160.0100.01016.50
7.3.120.0050.01214.76
7.3.110.0160.00315.24
7.3.100.0070.00714.73
7.3.90.0090.00614.88
7.3.80.0070.00715.37
7.3.70.0030.00714.99
7.3.60.0040.00714.79
7.3.50.0060.00914.85
7.3.40.0040.00714.31
7.3.30.0030.00914.96
7.3.20.0060.00316.84
7.3.10.0030.00716.71
7.3.00.0040.01016.69
7.2.330.0140.00416.81
7.2.320.0090.01216.76
7.2.310.0110.00616.73
7.2.300.0060.01216.84
7.2.290.0110.00616.89
7.2.250.0100.01014.96
7.2.240.0040.01414.94
7.2.230.0040.01215.28
7.2.220.0060.01015.22
7.2.210.0030.01514.97
7.2.200.0030.01014.94
7.2.190.0070.01014.96
7.2.180.0060.00915.35
7.2.170.0030.00915.04
7.2.130.0050.01216.99
7.2.120.0090.00717.17
7.2.110.0090.00516.91
7.2.100.0080.00317.06
7.2.90.0050.00917.01
7.2.80.0040.01016.93
7.2.70.0060.00617.13
7.2.60.0030.01217.07
7.2.50.0110.00517.10
7.2.40.0050.00916.94
7.2.30.0070.00917.21
7.2.20.0090.00516.99
7.2.10.0060.00716.99
7.2.00.0090.00517.71
7.1.330.0040.01115.95
7.1.320.0070.00715.89
7.1.310.0060.01215.69
7.1.300.0070.01015.88
7.1.290.0060.00615.96
7.1.280.0100.00315.72
7.1.270.0070.00415.84
7.1.260.0060.01015.52
7.1.250.0090.00816.06
7.1.240.0140.00315.86
7.1.230.0000.01615.89
7.1.220.0070.00715.96
7.1.210.0070.01115.84
7.1.200.0070.00715.63
7.1.190.0040.00415.82
7.1.180.0070.00715.75
7.1.170.0090.00915.88
7.1.160.0110.00615.88
7.1.150.0030.01315.77
7.1.140.0090.00615.91
7.1.130.0070.00815.99
7.1.120.0160.00015.75
7.1.110.0060.00615.98
7.1.100.0050.01017.19
7.1.90.0060.00615.85
7.1.80.0060.00615.85
7.1.70.0060.00616.55
7.1.60.0050.01217.74
7.1.50.0120.01425.50
7.1.40.0030.01015.87
7.1.30.0000.01115.95
7.1.20.0060.00316.02
7.1.10.0110.00315.73
7.1.00.0070.03719.24
7.0.330.0100.00715.49
7.0.320.0080.00315.69
7.0.310.0030.00915.63
7.0.300.0040.01215.51
7.0.290.0070.00715.40
7.0.280.0080.00615.27
7.0.270.0100.00315.49
7.0.260.0070.00715.54
7.0.250.0090.00615.61
7.0.240.0070.01115.73
7.0.230.0090.00315.41
7.0.220.0110.00015.55
7.0.210.0070.00715.49
7.0.200.0060.00716.19
7.0.190.0100.00715.56
7.0.180.0090.00315.59
7.0.170.0030.01015.72
7.0.160.0080.00415.56
7.0.150.0000.01515.70
7.0.140.0050.04018.85
7.0.130.0090.00315.68
7.0.120.0040.00815.50
7.0.110.0030.01015.65
7.0.100.0000.01215.34
7.0.90.0030.00915.45
7.0.80.0090.00315.56
7.0.70.0100.00315.58
7.0.60.0070.03517.63
7.0.50.0080.02016.75
7.0.40.0060.02517.01
7.0.30.0180.03417.05
7.0.20.0200.04016.88
7.0.10.0140.02916.93
7.0.00.0000.04416.78
5.6.380.0090.00614.34
5.6.370.0030.01414.43
5.6.360.0070.00714.41
5.6.350.0060.00614.34
5.6.340.0000.01514.41
5.6.330.0090.00314.57
5.6.320.0030.01414.56
5.6.310.0070.00714.74
5.6.300.0040.00814.56
5.6.290.0040.00414.41
5.6.280.0110.03517.56
5.6.270.0090.00314.40
5.6.260.0040.00714.34
5.6.250.0090.00614.41
5.6.240.0040.01214.62
5.6.230.0070.00714.06
5.6.220.0040.00814.65
5.6.210.0050.04217.44
5.6.200.0050.02216.27
5.6.190.0050.03917.44
5.6.180.1750.02417.41
5.6.170.0180.02817.43
5.6.160.0070.04217.50
5.6.150.0070.04116.16
5.6.140.0090.04216.35
5.6.130.0070.02416.31
5.6.120.0000.03217.66
5.6.110.0050.04417.63
5.6.100.0080.02717.64
5.6.90.0080.04517.70
5.6.80.0050.04417.24
5.6.70.2120.02417.18
5.6.60.0080.00414.23
5.6.50.0000.01314.45
5.6.40.0000.01514.33
5.6.30.0090.00314.33
5.6.20.0030.00614.18
5.6.10.0090.00614.14
5.6.00.0030.00714.24
5.5.380.0060.00611.35
5.5.370.0060.00611.19
5.5.360.0020.00511.11
5.5.350.0030.04115.79
5.5.340.0030.03714.42
5.5.330.0000.02815.71
5.5.320.0110.02315.76
5.5.310.0190.03915.69
5.5.300.0050.03814.50
5.5.290.0080.03214.59
5.5.280.0060.03115.91
5.5.270.0060.04515.93
5.5.260.0070.04415.94
5.5.250.0090.04215.90
5.5.240.0070.03215.67
5.5.230.0030.00710.92
5.5.220.0030.00711.22
5.5.210.0070.00311.15
5.5.200.0090.00310.90
5.5.190.0090.00011.05
5.5.180.0050.00511.24
5.5.170.0070.00311.22
5.5.160.0000.01110.98
5.5.150.0000.01011.26
5.5.140.0030.00311.19
5.5.130.0070.00311.18
5.5.120.0030.00911.21
5.5.110.0080.00310.99
5.5.100.0030.01010.97
5.5.90.0110.00011.16
5.5.80.0090.00311.26
5.5.70.0070.00711.15
5.5.60.0090.00311.05
5.5.50.0070.00310.83
5.5.40.0030.00611.13
5.5.30.0000.01110.94
5.5.20.0040.00710.83
5.5.10.0070.00310.91
5.5.00.0030.00810.77
5.4.450.0080.02515.22
5.4.440.0210.02215.32
5.4.430.0380.04015.13
5.4.420.0300.02215.27
5.4.410.0050.03214.90
5.4.400.0140.02314.90
5.4.390.0080.02714.73
5.4.380.0450.02714.82
5.4.370.0150.02514.82
5.4.360.0180.02215.05
5.4.350.0070.03514.83
5.4.340.0180.02114.83
5.4.330.0040.00410.76
5.4.320.0070.02111.66
5.4.310.0090.02211.65
5.4.300.0050.02311.75
5.4.290.0050.02211.78
5.4.280.0100.01811.56
5.4.270.0050.02411.81
5.4.260.0060.02311.50
5.4.250.0060.02211.69
5.4.240.0040.02211.72
5.4.230.0040.02511.60
5.4.220.0030.02311.65
5.4.210.0050.02311.68
5.4.200.0050.02611.70
5.4.190.0100.02411.53
5.4.180.0120.02311.46
5.4.170.0140.02111.74
5.4.160.0110.02511.75
5.4.150.0070.02611.53
5.4.140.0110.02611.63
5.4.130.0080.02611.58
5.4.120.0130.02211.66
5.4.110.0050.02811.45
5.4.100.0070.02711.32
5.4.90.0070.02811.47
5.4.80.0110.02311.42
5.4.70.0120.02311.49
5.4.60.0120.02311.52
5.4.50.0100.02411.37
5.4.40.0100.02611.42
5.4.30.0090.02711.52
5.4.20.0090.02511.52
5.4.10.0090.02411.40
5.4.00.0100.02211.31
5.3.290.0060.02211.84
5.3.280.0030.02711.55
5.3.270.0090.02511.72
5.3.260.0130.02611.72
5.3.250.0090.02811.70
5.3.240.0100.02911.66
5.3.230.0140.02411.66
5.3.220.0240.04311.51
5.3.210.0110.02711.62
5.3.200.0090.02911.63
5.3.190.0120.02511.53
5.3.180.0130.02311.68
5.3.170.0130.02211.65
5.3.160.0100.02611.70
5.3.150.0090.02511.70
5.3.140.0100.02511.69
5.3.130.0070.02711.64
5.3.120.0110.02311.52
5.3.110.0080.02611.61
5.3.100.0070.03011.47
5.3.90.0070.02711.45
5.3.80.0120.02311.23
5.3.70.0070.02911.14
5.3.60.0090.02911.36
5.3.50.0070.02911.28
5.3.40.0110.02311.10
5.3.30.0070.02811.19
5.3.20.0090.02511.21
5.3.10.0070.02511.09
5.3.00.0100.02111.04
5.2.170.0050.0239.57
5.2.160.0070.0209.57
5.2.150.0060.0219.57
5.2.140.0130.0189.57
5.2.130.0080.0209.55
5.2.120.0070.0199.55
5.2.110.0060.0209.55
5.2.100.0090.0199.55
5.2.90.0070.0209.55
5.2.80.0090.0189.54
5.2.70.0080.0189.54
5.2.60.0080.0209.53
5.2.50.0110.0159.51
5.2.40.0050.0229.50
5.2.30.0090.0189.48
5.2.20.0090.0189.48
5.2.10.0060.0219.44
5.2.00.0090.0179.37
5.1.60.0060.0179.02
5.1.50.0100.0169.01
5.1.40.0070.0189.01
5.1.30.0090.0189.18
5.1.20.0080.0199.20
5.1.10.0070.0189.05
5.1.00.0070.0189.05
5.0.50.0070.0138.29
5.0.40.0060.0138.22
5.0.30.0090.0198.13
5.0.20.0060.0158.12
5.0.10.0090.0128.11
5.0.00.0070.0198.10
4.4.90.0050.0117.37
4.4.80.0040.0117.36
4.4.70.0060.0097.35
4.4.60.0060.0127.36
4.4.50.0050.0117.36
4.4.40.0070.0157.33
4.4.30.0080.0087.36
4.4.20.0050.0127.40
4.4.10.0040.0127.40
4.4.00.0050.0167.36
4.3.110.0040.0137.31
4.3.100.0030.0137.31
4.3.90.0040.0127.29
4.3.80.0110.0257.27
4.3.70.0060.0117.29
4.3.60.0060.0117.29
4.3.50.0060.0107.29
4.3.40.0050.0157.24
4.3.30.0040.0116.62
4.3.20.0040.0106.62
4.3.10.0050.0096.60
4.3.00.0030.01011.62

preferences:
44.02 ms | 400 KiB | 5 Q