3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<TK "test1@test1.com" <test1@test1.com>, "test2@test2.com" <test2@test2.com>, "test3@test3.com", "test4@test4.com" <test4@test4.com> TK; $result = array_map( function($a){ return trim($a, ' "'); }, explode(',', strip_tags($string)) ); var_dump($result);

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.0090.00918.43
8.3.50.0100.01222.05
8.3.40.0040.01118.79
8.3.30.0090.00618.69
8.3.20.0040.00418.73
8.3.10.0040.00420.65
8.3.00.0020.00521.76
8.2.180.0130.00716.63
8.2.170.0070.00722.96
8.2.160.0100.01020.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0040.00419.36
8.2.110.0070.00322.22
8.2.100.0080.00317.72
8.2.90.0000.00819.21
8.2.80.0030.00517.97
8.2.70.0050.00317.38
8.2.60.0000.00817.93
8.2.50.0030.00718.07
8.2.40.0000.00818.26
8.2.30.0040.00419.85
8.2.20.0040.00417.55
8.2.10.0080.00017.77
8.2.00.0050.00217.63
8.1.280.0070.01125.92
8.1.270.0050.00223.99
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.10
8.1.230.0040.00817.45
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.38
8.1.190.0040.00417.53
8.1.180.0070.00018.10
8.1.170.0000.00818.57
8.1.160.0000.00718.91
8.1.150.0020.00518.59
8.1.140.0000.00717.40
8.1.130.0080.00017.71
8.1.120.0070.00017.46
8.1.110.0040.00417.47
8.1.100.0030.00617.50
8.1.90.0070.00017.47
8.1.80.0000.00717.47
8.1.70.0030.00517.41
8.1.60.0040.00417.58
8.1.50.0090.00017.48
8.1.40.0040.00417.42
8.1.30.0020.00517.67
8.1.20.0040.00417.69
8.1.10.0000.00717.36
8.1.00.0060.00317.25
8.0.300.0030.00518.77
8.0.290.0000.00816.75
8.0.280.0070.00018.27
8.0.270.0000.00717.21
8.0.260.0000.00716.90
8.0.250.0040.00417.04
8.0.240.0040.00417.00
8.0.230.0070.00016.98
8.0.220.0000.00716.92
8.0.210.0070.00016.82
8.0.200.0000.00717.03
8.0.190.0040.00416.98
8.0.180.0070.00016.99
8.0.170.0040.00416.99
8.0.160.0050.00316.86
8.0.150.0030.00616.96
8.0.140.0040.00416.88
8.0.130.0060.00313.44
8.0.120.0030.00716.93
8.0.110.0030.00417.09
8.0.100.0000.00816.84
8.0.90.0040.00417.02
8.0.80.0000.01616.88
8.0.70.0040.00416.88
8.0.60.0000.00816.99
8.0.50.0040.00416.98
8.0.30.0080.01217.02
8.0.20.0100.01317.40
8.0.10.0000.00716.89
8.0.00.0120.00716.80
7.4.330.0040.00413.43
7.4.320.0000.00616.53
7.4.300.0000.00716.59
7.4.290.0030.00316.62
7.4.280.0040.00716.51
7.4.270.0040.00416.66
7.4.260.0030.00313.34
7.4.250.0030.00516.42
7.4.240.0060.00316.59
7.4.230.0050.00216.54
7.4.220.0150.00416.46
7.4.210.0090.00716.52
7.4.200.0030.00316.47
7.4.190.0050.00216.42
7.4.160.0100.00616.56
7.4.150.0060.01617.40
7.4.140.0090.01117.86
7.4.130.0130.00716.34
7.4.120.0120.00616.53
7.4.110.0070.01016.66
7.4.100.0060.01216.38
7.4.90.0140.00316.38
7.4.80.0140.00319.37
7.4.70.0090.00816.62
7.4.60.0060.01016.43
7.4.50.0060.00316.25
7.4.40.0070.01122.27
7.4.30.0150.00916.45
7.4.00.0090.00914.99
7.3.330.0000.00513.23
7.3.320.0000.00513.29
7.3.310.0050.00216.20
7.3.300.0030.00316.19
7.3.290.0090.00616.32
7.3.280.0060.01016.28
7.3.270.0050.01117.40
7.3.260.0140.00518.24
7.3.250.0100.01116.32
7.3.240.0100.00716.29
7.3.230.0130.00716.39
7.3.210.0140.00316.35
7.3.200.0040.01419.39
7.3.190.0110.00416.41
7.3.180.0040.01116.30
7.3.170.0140.00416.37
7.3.160.0130.00316.32
7.3.120.0040.01114.78
7.3.110.0060.01114.68
7.3.100.0030.01214.56
7.3.90.0060.00914.92
7.3.80.0070.00814.88
7.3.70.0100.00514.66
7.3.60.0110.00614.59
7.3.50.0040.00914.71
7.3.40.0030.01114.80
7.3.30.0060.00814.81
7.3.20.0050.00816.67
7.3.10.0030.01216.58
7.3.00.0100.00716.64
7.2.330.0030.01316.64
7.2.320.0030.01916.65
7.2.310.0110.00716.70
7.2.300.0160.00916.57
7.2.290.0100.00616.64
7.2.250.0080.01215.08
7.2.240.0110.00615.04
7.2.230.0070.01014.58
7.2.220.0030.00815.14
7.2.210.0050.01015.03
7.2.200.0090.00614.95
7.2.190.0060.00915.04
7.2.180.0070.00614.89
7.2.170.0030.00814.74
7.2.00.0090.00319.31
7.1.330.0070.00615.73
7.1.320.0110.00415.65
7.1.310.0050.00815.91
7.1.300.0050.00515.55
7.1.290.0050.00815.75
7.1.280.0040.01115.54
7.1.270.0070.00615.78
7.1.260.0030.00715.70
7.1.100.0030.00918.04
7.1.70.0070.00316.97
7.1.60.0090.01219.40
7.1.50.0070.01416.90
7.1.00.0070.03022.45
7.0.200.0030.00616.56
7.0.140.0070.06322.16
7.0.60.0070.07019.90
7.0.50.0030.04317.88
7.0.40.0030.07320.09
7.0.30.0330.07020.09
7.0.20.0230.06320.24
7.0.10.0030.05020.12
7.0.00.0100.08320.11
5.6.210.0130.04020.62
5.6.200.0000.04318.25
5.6.190.0170.07720.55
5.6.180.0470.07020.61
5.6.170.0200.04020.46
5.6.160.0070.08720.54
5.6.150.0100.03318.11
5.6.140.0070.08318.28
5.6.130.0070.06718.24
5.6.120.0170.07721.12
5.6.110.0100.06721.14
5.6.100.0100.07720.98
5.6.90.0070.06020.88
5.6.80.0030.08720.53
5.5.350.0030.09020.39
5.5.340.0200.06718.01
5.5.330.0100.08020.57
5.5.320.3000.03720.38
5.5.310.0100.05020.24
5.5.300.0070.08017.98
5.5.290.0070.08318.03
5.5.280.0070.08320.88
5.5.270.0100.06020.74
5.5.260.0100.08320.68
5.5.250.0170.03320.66
5.5.240.0000.08020.23
5.4.450.1600.03319.33
5.4.440.1630.04019.32
5.4.430.0800.03319.54
5.4.420.0000.04019.48
5.4.410.0030.03719.14
5.4.400.1470.04319.09
5.4.390.1630.03319.22
5.4.380.1630.03019.31
5.4.370.1130.03319.00
5.4.360.0000.04019.00
5.4.350.0030.03719.32
5.4.340.1000.03019.03
5.4.320.1630.04018.98
5.4.310.1700.03319.24
5.4.300.1570.03719.19
5.4.290.1700.04018.98
5.4.280.1770.03018.98
5.4.270.1130.04719.16
5.4.260.0030.04718.98
5.4.250.0070.07319.07
5.4.240.1600.04019.22
5.4.230.1530.03319.14
5.4.220.1830.04718.86
5.4.210.1670.04018.91
5.4.200.1670.04319.29
5.4.190.1600.03018.97
5.4.180.1670.03319.18
5.4.170.1470.04318.94
5.4.160.1570.05019.17
5.4.150.0770.03318.94
5.4.140.0000.04016.36
5.4.130.0030.03716.35
5.4.120.1430.04316.35
5.4.110.1500.03316.45
5.4.100.1800.05016.56
5.4.90.1730.04016.45
5.4.80.1930.03716.54
5.4.70.1870.04016.34
5.4.60.1830.04316.33
5.4.50.1770.04016.55
5.4.40.1870.04316.52
5.4.30.1870.04316.34
5.4.20.1770.04316.24
5.4.10.1770.04316.30
5.4.00.1570.04015.96
5.3.290.1730.05014.89
5.3.280.1770.04014.60
5.3.270.1600.03314.52
5.3.260.1570.03314.68
5.3.250.1570.03714.67
5.3.240.1570.03714.59
5.3.230.1500.04014.66
5.3.220.1800.04314.57
5.3.210.1530.04014.47
5.3.200.1800.04714.48
5.3.190.1570.03014.57
5.3.180.1770.04314.57
5.3.170.1830.04714.52
5.3.160.1800.04714.63
5.3.150.1870.03714.48
5.3.140.1630.04014.63
5.3.130.1570.04014.66
5.3.120.1700.04314.44
5.3.110.1600.04314.62
5.3.100.1930.03713.94
5.3.90.1730.03314.07
5.3.80.1770.04014.24
5.3.70.1630.03713.93
5.3.60.1630.03013.91
5.3.50.1930.03713.86
5.3.40.1530.04014.01
5.3.30.1730.04313.91
5.3.20.1700.03013.77
5.3.10.1570.04713.59
5.3.00.1900.03713.69
5.2.170.1570.03010.98
5.2.160.1400.02711.04
5.2.150.1800.02711.09
5.2.140.1570.03311.22
5.2.130.1300.02710.96
5.2.120.1330.03011.15
5.2.110.1400.02711.04
5.2.100.1300.02711.15
5.2.90.1270.03010.94
5.2.80.1470.03711.20
5.2.70.1570.03311.03
5.2.60.1470.03311.20
5.2.50.1200.03311.03
5.2.40.1170.03711.00
5.2.30.1200.03010.81
5.2.20.1270.04010.82
5.2.10.1000.03310.93
5.2.00.1100.02310.88
5.1.60.1200.0309.93
5.1.50.1270.02710.13
5.1.40.1000.02710.00
5.1.30.1270.03310.34
5.1.20.1000.03010.32
5.1.10.1130.03010.16
5.1.00.1000.02710.20
5.0.50.0670.0378.56
5.0.40.0630.0238.39
5.0.30.0530.0308.12
5.0.20.0670.0308.13
5.0.10.0570.0278.17
5.0.00.0630.0338.13
4.4.90.0570.0237.61
4.4.80.0630.0177.61
4.4.70.0700.0177.61
4.4.60.0500.0177.61
4.4.50.0500.0177.61
4.4.40.0630.0377.61
4.4.30.0530.0237.61
4.4.20.0670.0237.61
4.4.10.0630.0137.61
4.4.00.0670.0407.61
4.3.110.0630.0277.61
4.3.100.0570.0207.61
4.3.90.0630.0177.61
4.3.80.0570.0237.61
4.3.70.0630.0137.61
4.3.60.0830.0207.61
4.3.50.0770.0177.61
4.3.40.0800.0307.61
4.3.30.0430.0137.61
4.3.20.0530.0237.61
4.3.10.0430.0207.61
4.3.00.0400.0207.61

preferences:
47.21 ms | 401 KiB | 5 Q