3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!@, products#$#, sample"; $keywords = preg_replace("/[^, \w]+/", '',($_POST['keywords'])); echo $keywords;

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.0100.01018.56
8.3.50.0090.01021.15
8.3.40.0070.01118.93
8.3.30.0100.00319.04
8.3.20.0040.00420.17
8.3.10.0040.00421.92
8.3.00.0040.00420.57
8.2.180.0060.00916.75
8.2.170.0000.01522.96
8.2.160.0120.00319.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.66
8.2.110.0060.00321.88
8.2.100.0090.00318.09
8.2.90.0020.00519.26
8.2.80.0040.00417.97
8.2.70.0030.00617.88
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0050.00317.97
8.2.30.0050.00218.21
8.2.20.0000.00817.90
8.2.10.0000.00717.88
8.2.00.0000.01217.95
8.1.280.0070.00725.92
8.1.270.0030.00618.72
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0030.00719.06
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.60
8.1.190.0000.00817.51
8.1.180.0080.00320.36
8.1.170.0000.00918.83
8.1.160.0070.00022.01
8.1.150.0070.00018.79
8.1.140.0050.00217.58
8.1.130.0000.00717.80
8.1.120.0050.00217.69
8.1.110.0040.00717.61
8.1.100.0070.00017.57
8.1.90.0040.00417.51
8.1.80.0040.00417.57
8.1.70.0000.00717.53
8.1.60.0000.00817.72
8.1.50.0050.00217.56
8.1.40.0040.00417.53
8.1.30.0040.00417.83
8.1.20.0030.00617.70
8.1.10.0040.00417.71
8.1.00.0040.00417.72
8.0.300.0000.00718.77
8.0.290.0000.00716.93
8.0.280.0000.00718.46
8.0.270.0000.00717.17
8.0.260.0060.00016.95
8.0.250.0000.00717.11
8.0.240.0060.00317.11
8.0.230.0000.00717.06
8.0.220.0030.00316.96
8.0.210.0070.00017.02
8.0.200.0070.00017.05
8.0.190.0000.00817.06
8.0.180.0000.00717.08
8.0.170.0050.00317.07
8.0.160.0080.00016.96
8.0.150.0000.00717.05
8.0.140.0040.00417.05
8.0.130.0030.00313.41
8.0.120.0000.00816.91
8.0.110.0000.00716.87
8.0.100.0040.00416.88
8.0.90.0040.00417.08
8.0.80.0030.01216.91
8.0.70.0040.00416.91
8.0.60.0030.00517.09
8.0.50.0000.00716.82
8.0.30.0070.01117.15
8.0.20.0080.01017.40
8.0.10.0030.00516.95
8.0.00.0090.00716.82
7.4.330.0020.00215.00
7.4.320.0030.00316.70
7.4.300.0030.00316.71
7.4.290.0000.00716.63
7.4.280.0090.00016.76
7.4.270.0030.00316.66
7.4.260.0000.00916.85
7.4.250.0020.00516.68
7.4.240.0020.00516.71
7.4.230.0070.00016.71
7.4.220.0140.00316.84
7.4.210.0070.00716.70
7.4.200.0070.00016.68
7.4.190.0040.00316.84
7.4.160.0100.00716.63
7.4.150.0060.01617.40
7.4.140.0140.00617.86
7.4.130.0060.01116.86
7.4.120.0070.00916.70
7.4.110.0030.01716.64
7.4.100.0080.00916.70
7.4.90.0100.01016.60
7.4.80.0070.01319.39
7.4.70.0100.01016.63
7.4.60.0140.00316.82
7.4.50.0030.00316.73
7.4.40.0030.01022.77
7.4.30.0030.01716.56
7.4.00.0100.00615.24
7.3.330.0020.00213.28
7.3.320.0020.00213.38
7.3.310.0000.00716.21
7.3.300.0050.00216.24
7.3.290.0100.01016.45
7.3.280.0070.00916.41
7.3.270.0160.00317.40
7.3.260.0120.00616.60
7.3.250.0120.00716.65
7.3.240.0130.01016.37
7.3.230.0060.01616.45
7.3.210.0130.00316.64
7.3.200.0070.01419.39
7.3.190.0100.00716.57
7.3.180.0060.00916.72
7.3.170.0190.00316.74
7.3.160.0060.00916.43
7.3.120.0060.01015.09
7.3.10.0090.00816.86
7.3.00.0030.01116.70
7.2.330.0070.01016.73
7.2.320.0030.01816.63
7.2.310.0070.01016.97
7.2.300.0100.00616.72
7.2.290.0120.00416.66
7.2.130.0040.01017.03
7.2.120.0050.00517.06
7.2.110.0080.00617.04
7.2.100.0070.00917.09
7.2.90.0040.00617.00
7.2.80.0050.00717.03
7.2.70.0060.00817.02
7.2.60.0060.00617.05
7.2.50.0070.00617.08
7.2.40.0060.00617.04
7.2.30.0070.00616.92
7.2.20.0050.00717.12
7.2.10.0100.00316.99
7.2.00.0030.01017.99
7.1.250.0070.00615.92
7.1.200.0040.00415.95
7.1.100.0000.01218.10
7.1.70.0000.01717.21
7.1.60.0110.01119.82
7.1.50.0030.00717.09
7.1.00.0070.05022.45
7.0.200.0070.00716.84
7.0.140.0030.06722.08
7.0.60.0070.07719.95
7.0.50.0100.07717.82
7.0.40.0070.08319.98
7.0.30.0330.04720.32
7.0.20.0200.04320.05
7.0.10.0070.06720.34
7.0.00.0070.08320.34
5.6.280.0030.07021.08
5.6.210.0100.03720.56
5.6.200.0100.06318.19
5.6.190.0100.05720.45
5.6.180.0200.07020.41
5.6.170.0330.05320.45
5.6.160.0070.03720.48
5.6.150.0070.08018.18
5.6.140.0070.03718.20
5.6.130.0130.07318.18
5.6.120.0070.08021.14
5.6.110.0030.04320.98
5.6.100.0070.06021.00
5.6.90.0130.08021.07
5.6.80.0000.04320.52
5.6.70.2230.03320.39
5.5.350.0200.08320.46
5.5.340.0030.05717.95
5.5.330.0100.04020.15
5.5.320.0230.05020.41
5.5.310.0430.07020.27
5.5.300.0070.05017.98
5.5.290.0130.08018.00
5.5.280.0000.04720.79
5.5.270.0100.08720.86
5.5.260.0130.08020.83
5.5.250.0000.04720.57
5.5.240.0230.07720.28
5.4.450.0870.06019.14
5.4.440.0830.05019.53
5.4.430.0230.04719.57
5.4.420.0800.05719.31
5.4.410.0830.05718.97
5.4.400.0670.06018.77
5.4.390.0430.06318.57
5.4.380.0300.04718.61
5.4.370.0170.05318.71
5.4.360.0130.05318.76
5.4.350.0150.03411.97
5.4.340.0070.04111.97
5.4.320.0090.04212.45
5.4.310.0070.03812.45
5.4.300.0100.04412.45
5.4.290.0070.04512.45
5.4.280.0100.03512.35
5.4.270.0090.04312.35
5.4.260.0060.04212.35
5.4.250.0170.04018.98
5.4.240.0100.05018.94
5.4.230.0100.04718.89
5.4.220.0030.06018.67
5.4.210.0030.05718.73
5.4.200.0130.04318.62
5.4.190.0100.05018.82
5.4.180.0170.05318.85
5.4.170.0130.04718.75
5.4.160.0200.04318.93
5.4.150.0070.05718.66
5.4.140.0100.04716.48
5.4.130.0030.05016.52
5.4.120.0130.04716.33
5.4.110.0070.05016.33
5.4.100.0030.05316.48
5.4.90.0030.05016.41
5.4.80.0070.05016.20
5.4.70.0170.04016.36
5.4.60.0100.05016.45
5.4.50.0070.06716.34
5.4.40.0070.05016.48
5.4.30.0070.05016.44
5.4.20.0200.04316.22
5.4.10.0030.06716.20
5.4.00.0070.05315.70
5.3.290.0030.04112.80
5.3.280.0070.05014.61
5.3.270.0070.05714.30
5.3.260.0100.04714.59
5.3.250.0130.04714.62
5.3.240.0070.07314.45
5.3.230.0170.04714.50
5.3.220.0070.05014.57
5.3.210.0070.05314.26
5.3.200.0100.04314.55
5.3.190.0100.04714.57
5.3.180.0070.05014.55
5.3.170.0200.04014.43
5.3.160.0170.05714.25
5.3.150.0200.05714.55
5.3.140.0100.05714.43
5.3.130.0200.07014.43
5.3.120.0170.05014.56
5.3.110.0130.04714.43
5.3.100.0030.06014.04
5.3.90.0000.05714.10
5.3.80.0200.04014.01
5.3.70.0100.04714.01
5.3.60.0230.03713.86
5.3.50.0100.05713.80
5.3.40.0100.04713.94
5.3.30.0070.04713.68
5.3.20.0100.04313.54
5.3.10.0100.04313.80
5.3.00.0030.05313.79
5.2.170.0100.03711.05
5.2.160.0070.04310.91
5.2.150.0100.03311.16
5.2.140.0030.04311.14
5.2.130.0100.03311.11
5.2.120.0030.04011.25
5.2.110.0030.04010.93
5.2.100.0070.03711.00
5.2.90.0030.04010.98
5.2.80.0000.05711.09
5.2.70.0000.06711.09
5.2.60.0100.03710.98
5.2.50.0130.03011.17
5.2.40.0070.05011.09
5.2.30.0000.04310.87
5.2.20.0130.04010.95
5.2.10.0100.03710.85
5.2.00.0070.03710.47
5.1.60.0000.03710.02
5.1.50.0070.0509.90
5.1.40.0030.0339.82
5.1.30.0030.03710.09
5.1.20.0100.03310.35
5.1.10.0070.04710.13
5.1.00.0070.03310.30
5.0.50.0100.0238.57
5.0.40.0070.0238.57
5.0.30.0000.0438.57
5.0.20.0030.0278.57
5.0.10.0070.0278.57
5.0.00.0000.0438.57
4.4.90.0000.0238.57
4.4.80.0030.0208.57
4.4.70.0030.0208.57
4.4.60.0100.0208.57
4.4.50.0070.0208.57
4.4.40.0030.0338.57
4.4.30.0030.0208.57
4.4.20.0000.0278.57
4.4.10.0000.0238.57
4.4.00.0030.0338.57
4.3.110.0000.0238.57
4.3.100.0030.0208.57
4.3.90.0000.0238.57
4.3.80.0000.0338.57
4.3.70.0100.0138.57
4.3.60.0030.0278.57
4.3.50.0030.0208.57
4.3.40.0100.0278.57
4.3.30.0000.0278.57
4.3.20.0030.0208.57
4.3.10.0000.0238.57
4.3.00.0100.0236.54

preferences:
44.67 ms | 401 KiB | 5 Q