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.40.0110.01118.96
8.3.30.0210.00019.09
8.3.20.0000.00820.31
8.3.10.0080.00022.05
8.3.00.0040.00422.52
8.2.170.0120.00922.96
8.2.160.0130.00619.04
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0050.00319.85
8.2.110.0100.00022.31
8.2.100.0000.01219.95
8.2.90.0040.00419.30
8.2.80.0040.00418.04
8.2.70.0000.00818.00
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0080.00018.36
8.2.20.0050.00217.96
8.2.10.0030.00618.05
8.2.00.0050.00218.00
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.90
8.1.230.0070.00419.02
8.1.220.0030.00617.78
8.1.210.0080.00018.77
8.1.200.0000.01017.47
8.1.190.0000.00817.53
8.1.180.0060.00318.10
8.1.170.0060.00318.74
8.1.160.0060.00322.04
8.1.150.0050.00218.80
8.1.140.0040.00417.49
8.1.130.0000.00717.89
8.1.120.0040.00417.57
8.1.110.0050.00317.63
8.1.100.0000.00717.52
8.1.90.0040.00417.64
8.1.80.0040.00417.49
8.1.70.0000.00717.58
8.1.60.0050.00317.66
8.1.50.0050.00217.71
8.1.40.0050.00317.58
8.1.30.0040.00417.80
8.1.20.0000.00817.72
8.1.10.0000.00717.58
8.1.00.0040.00417.63
8.0.300.0000.00718.77
8.0.290.0080.00017.18
8.0.280.0050.00218.32
8.0.270.0070.00017.25
8.0.260.0000.00717.10
8.0.250.0000.00717.06
8.0.240.0060.00317.21
8.0.230.0030.00317.05
8.0.220.0080.00017.10
8.0.210.0000.00717.09
8.0.200.0030.00517.27
8.0.190.0080.00017.20
8.0.180.0070.00017.18
8.0.170.0030.00617.18
8.0.160.0030.00517.12
8.0.150.0070.00017.16
8.0.140.0080.00017.17
8.0.130.0000.00613.60
8.0.120.0000.00817.18
8.0.110.0000.00717.11
8.0.100.0000.00717.21
8.0.90.0050.00317.08
8.0.80.0080.00817.14
8.0.70.0040.00417.22
8.0.60.0000.00817.05
8.0.50.0040.00417.13
8.0.30.0130.01017.35
8.0.20.0050.01417.40
8.0.10.0080.00017.12
8.0.00.0070.01117.04
7.4.330.0050.00015.03
7.4.320.0030.00316.71
7.4.300.0000.00616.81
7.4.290.0070.00016.75
7.4.280.0070.00016.82
7.4.270.0000.00716.80
7.4.260.0030.00916.82
7.4.250.0000.00716.70
7.4.240.0040.00416.73
7.4.230.0040.00416.63
7.4.220.0060.01316.67
7.4.210.0080.00816.72
7.4.200.0050.00316.61
7.4.190.0050.00216.68
7.4.160.0040.01216.84
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0100.00716.76
7.4.120.0070.01016.74
7.4.110.0070.01016.78
7.4.100.0180.00016.66
7.4.90.0100.01216.64
7.4.80.0100.01019.39
7.4.70.0170.00016.82
7.4.60.0070.01116.71
7.4.50.0080.00016.77
7.4.40.0000.01422.77
7.4.30.0080.00816.75
7.4.00.0060.01015.37
7.3.330.0030.00313.48
7.3.320.0050.00013.45
7.3.310.0040.00416.65
7.3.300.0000.00716.64
7.3.290.0090.00616.54
7.3.280.0080.01216.57
7.3.270.0070.01017.40
7.3.260.0150.00316.46
7.3.250.0080.01016.60
7.3.240.0150.00716.42
7.3.230.0070.01716.39
7.3.210.0100.00716.75
7.3.200.0220.00019.39
7.3.190.0140.00316.75
7.3.180.0030.01416.37
7.3.170.0090.00716.84
7.3.160.0130.00316.47
7.3.120.0080.00715.12
7.3.110.0060.01014.99
7.3.100.0040.00915.06
7.3.90.0050.00915.07
7.3.80.0050.00714.93
7.3.70.0020.01215.09
7.3.60.0090.00514.72
7.3.50.0130.00315.06
7.3.40.0100.00414.90
7.3.30.0080.00514.83
7.3.20.0050.01016.73
7.3.10.0050.01016.80
7.3.00.0080.00916.73
7.2.330.0150.00316.69
7.2.320.0160.00716.68
7.2.310.0160.00616.65
7.2.300.0080.00916.65
7.2.290.0110.00616.70
7.2.240.0090.00515.28
7.2.230.0040.00915.21
7.2.220.0060.01015.14
7.2.210.0040.01015.34
7.2.200.0080.00815.19
7.2.190.0050.01115.32
7.2.180.0070.01015.09
7.2.170.0030.01115.15
7.2.160.0020.01215.18
7.2.150.0070.00717.15
7.2.140.0040.01117.08
7.2.130.0050.01116.78
7.2.120.0100.01117.07
7.2.110.0100.00816.79
7.2.100.0110.00716.91
7.2.90.0050.01316.90
7.2.80.0080.00617.03
7.2.70.0050.01116.96
7.2.60.0070.00916.98
7.2.50.0100.01317.10
7.2.40.0090.00917.05
7.2.30.0120.00717.01
7.2.20.0100.00916.99
7.2.10.0070.00816.95
7.2.00.0070.00917.11
7.1.330.0060.00615.88
7.1.320.0010.01315.93
7.1.310.0050.00915.96
7.1.300.0090.00515.88
7.1.290.0080.00815.83
7.1.280.0080.00515.79
7.1.270.0050.01115.81
7.1.260.0090.00615.81
7.1.250.0100.00615.72
7.1.240.0120.00615.87
7.1.230.0080.00815.83
7.1.220.0090.00915.97
7.1.210.0140.00615.73
7.1.200.0070.00515.89
7.1.190.0080.01115.57
7.1.180.0110.00715.84
7.1.170.0160.00015.90
7.1.160.0160.00015.99
7.1.150.0060.01015.62
7.1.140.0060.01315.86
7.1.130.0000.01115.89
7.1.120.0120.00915.84
7.1.110.0130.00315.69
7.1.100.0080.00917.15
7.1.90.0100.00315.98
7.1.80.0030.01215.94
7.1.70.0060.00516.40
7.1.60.0100.00716.36
7.1.50.0100.00516.53
7.1.40.0130.00315.68
7.1.30.0070.01015.77
7.1.20.0100.00715.93
7.1.10.0110.01115.65
7.1.00.0040.04419.11
7.0.330.0120.00915.31
7.0.320.0080.00815.29
7.0.310.0110.00615.44
7.0.300.0120.00615.52
7.0.290.0100.00315.26
7.0.280.0100.00715.48
7.0.270.0130.00715.20
7.0.260.0110.00415.52
7.0.250.0140.00315.31
7.0.240.0030.00915.62
7.0.230.0150.00315.34
7.0.220.0080.00815.69
7.0.210.0100.00715.64
7.0.200.0050.00516.18
7.0.190.0150.00015.55
7.0.180.0130.00015.66
7.0.170.0100.00615.52
7.0.160.0160.00015.52
7.0.150.0120.00415.46
7.0.140.0070.04018.81
7.0.130.0070.01015.55
7.0.120.0120.00315.60
7.0.110.0070.00715.05
7.0.100.0100.00715.30
7.0.90.0030.01115.33
7.0.80.0100.01015.53
7.0.70.0030.01415.52
7.0.60.0100.04117.63
7.0.50.0050.02816.68
7.0.40.0080.04616.96
7.0.30.0130.03116.97
7.0.20.0160.03316.91
7.0.10.0240.03916.85
7.0.00.0100.04316.90
5.6.380.0070.00714.23
5.6.370.0030.01014.38
5.6.360.0000.01814.50
5.6.350.0000.01514.27
5.6.340.0110.00414.47
5.6.330.0020.01014.46
5.6.320.0040.01214.65
5.6.310.0070.00714.26
5.6.300.0040.01114.30
5.6.290.0040.01114.29
5.6.280.0050.04417.75
5.6.270.0030.01214.58
5.6.260.0080.00414.23
5.6.250.0040.01113.93
5.6.240.0070.01014.22
5.6.230.0070.00814.32
5.6.220.0000.01214.27
5.6.210.0050.04117.44
5.6.200.0070.03416.31
5.6.190.0060.04217.22
5.6.180.0120.02617.29
5.6.170.0300.03717.53
5.6.160.0120.03917.36
5.6.150.0070.02316.17
5.6.140.0080.03816.31
5.6.130.0050.03016.23
5.6.120.0050.03017.65
5.6.110.0100.03917.67
5.6.100.0100.04117.66
5.6.90.0120.04517.76
5.6.80.0060.02217.44
5.6.70.0160.04317.34
5.6.60.0040.00914.13
5.6.50.0070.00714.09
5.6.40.0100.00714.32
5.6.30.0060.00914.16
5.6.20.0030.01014.13
5.6.10.0060.00314.11
5.6.00.0000.01714.44
5.5.380.0070.00311.16
5.5.370.0030.00710.89
5.5.360.0000.01311.13
5.5.350.0220.02815.87
5.5.340.0030.02214.60
5.5.330.0030.03715.80
5.5.320.0250.03315.73
5.5.310.0160.03915.58
5.5.300.0020.03214.55
5.5.290.0020.02914.41
5.5.280.0070.02816.06
5.5.270.0080.04516.00
5.5.260.0060.04015.94
5.5.250.0100.04015.92
5.5.240.0030.04515.70
5.5.230.0030.00910.89
5.5.220.0030.00911.00
5.5.210.0090.00310.96
5.5.200.0000.00811.18
5.5.190.0060.00311.20
5.5.180.0060.00011.17
5.5.170.0090.00310.77
5.5.160.0060.00311.18
5.5.150.0040.00411.14
5.5.140.0030.00611.27
5.5.130.0040.00411.27
5.5.120.0030.01010.96
5.5.110.0060.00611.04
5.5.100.0000.00911.30
5.5.90.0040.00810.88
5.5.80.0070.00311.21
5.5.70.0000.01010.65
5.5.60.0000.01210.85
5.5.50.0040.00810.91
5.5.40.0000.01011.19
5.5.30.0030.00610.93
5.5.20.0080.00311.08
5.5.10.0080.00011.20
5.5.00.0080.00411.23
5.4.450.0100.03515.10
5.4.440.0170.03915.36
5.4.430.0110.03415.28
5.4.420.0330.03215.38
5.4.410.0130.02715.01
5.4.400.0380.00414.75
5.4.390.0460.00314.99
5.4.380.0180.02914.95
5.4.370.0170.02714.88
5.4.360.0070.03014.91
5.4.350.0160.02314.86
5.4.340.0030.03214.87
5.4.330.0030.01010.74
5.4.320.0070.02811.75
5.4.310.0120.02711.59
5.4.300.0060.02211.75
5.4.290.0110.01811.70
5.4.280.0080.02011.68
5.4.270.0070.02711.53
5.4.260.0110.02311.52
5.4.250.0080.02611.79
5.4.240.0080.02111.67
5.4.230.0100.02111.55
5.4.220.0040.02911.73
5.4.210.0100.02211.67
5.4.200.0100.02411.59
5.4.190.0170.03314.79
5.4.180.0080.04014.78
5.4.170.0060.03314.95
5.4.160.0160.02714.74
5.4.150.0090.04115.04
5.4.140.0090.03713.76
5.4.130.0100.02513.78
5.4.120.0110.03313.65
5.4.110.0050.03713.59
5.4.100.0110.02813.79
5.4.90.0040.04013.70
5.4.80.0090.03413.80
5.4.70.0130.02313.83
5.4.60.0120.03013.56
5.4.50.0100.02613.80
5.4.40.0120.02313.79
5.4.30.0020.03113.78
5.4.20.0110.02513.61
5.4.10.0090.02613.83
5.4.00.0070.02713.28
5.3.290.0060.02511.70
5.3.280.0090.02011.67
5.3.270.0080.03512.67
5.3.260.0120.02712.54
5.3.250.0030.03212.75
5.3.240.0100.03212.67
5.3.230.0060.02812.51
5.3.220.0080.02612.70
5.3.210.0130.03212.58
5.3.200.0070.02912.65
5.3.190.0100.02812.49
5.3.180.0060.03012.72
5.3.170.0100.02712.50
5.3.160.0090.03312.67
5.3.150.0080.03512.62
5.3.140.0130.03712.69
5.3.130.0070.03012.62
5.3.120.0110.02612.54
5.3.110.0060.03212.63
5.3.100.0010.03112.24
5.3.90.0060.02912.28
5.3.80.0050.02612.22
5.3.70.0030.03112.38
5.3.60.0060.02712.30
5.3.50.0080.02312.18
5.3.40.0060.02812.22
5.3.30.0080.02312.21
5.3.20.0080.02312.06
5.3.10.0050.02711.92
5.3.00.0070.02712.02
5.2.170.0020.02410.54
5.2.160.0030.02810.67
5.2.150.0090.01710.67
5.2.140.0100.02010.59
5.2.130.0030.02310.52
5.2.120.0040.02210.58
5.2.110.0070.01910.57
5.2.100.0050.02310.57
5.2.90.0060.02010.61
5.2.80.0050.02210.62
5.2.70.0050.02510.57
5.2.60.0070.02610.50
5.2.50.0050.02210.49
5.2.40.0040.02210.49
5.2.30.0030.02210.51
5.2.20.0060.02710.58
5.2.10.0050.02210.49
5.2.00.0070.02910.33
5.1.60.0020.02110.03
5.1.50.0050.01910.05
5.1.40.0050.01810.13
5.1.30.0030.02810.18
5.1.20.0070.01610.08
5.1.10.0060.01810.07
5.1.00.0070.01710.01
5.0.50.0020.0199.28
5.0.40.0050.0149.24
5.0.30.0060.0319.23
5.0.20.0020.0229.21
5.0.10.0080.0169.19
5.0.00.0050.0229.17
4.4.90.0030.0128.13
4.4.80.0020.0128.13
4.4.70.0010.0138.13
4.4.60.0040.0138.13
4.4.50.0040.0128.13
4.4.40.0050.0178.13
4.4.30.0020.0128.13
4.4.20.0020.0138.13
4.4.10.0030.0128.13
4.4.00.0020.0188.13
4.3.110.0050.0108.13
4.3.100.0040.0128.13
4.3.90.0050.0158.13
4.3.80.0080.0138.14
4.3.70.0050.0128.14
4.3.60.0050.0108.14
4.3.50.0030.0118.14
4.3.40.0010.0188.14
4.3.30.0020.0168.14
4.3.20.0050.0108.14
4.3.10.0030.0128.14
4.3.00.0040.0148.45

preferences:
44.59 ms | 400 KiB | 5 Q