3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="Ssampl_e 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.0130.00718.32
8.3.50.0100.00821.33
8.3.40.0140.00718.92
8.3.30.0070.00719.01
8.3.20.0040.00420.20
8.3.10.0050.00322.09
8.3.00.0040.00420.82
8.2.180.0210.00016.63
8.2.170.0120.00922.96
8.2.160.0070.00718.97
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00319.66
8.2.110.0050.00522.17
8.2.100.0040.00818.16
8.2.90.0000.00919.25
8.2.80.0040.00418.05
8.2.70.0080.00017.88
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0000.00718.34
8.2.30.0050.00218.07
8.2.20.0000.00717.84
8.2.10.0000.00717.89
8.2.00.0070.00317.84
8.1.280.0120.00325.92
8.1.270.0090.00018.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.90
8.1.230.0070.00419.16
8.1.220.0000.00817.79
8.1.210.0090.00018.77
8.1.200.0040.00717.48
8.1.190.0080.00017.42
8.1.180.0090.00020.48
8.1.170.0000.00818.70
8.1.160.0000.00722.14
8.1.150.0070.00018.68
8.1.140.0040.00417.50
8.1.130.0030.00317.72
8.1.120.0080.00017.61
8.1.110.0030.00617.63
8.1.100.0070.00017.57
8.1.90.0040.00417.51
8.1.80.0050.00217.56
8.1.70.0070.00017.63
8.1.60.0040.00417.74
8.1.50.0040.00417.64
8.1.40.0040.00417.64
8.1.30.0060.00317.70
8.1.20.0000.00817.71
8.1.10.0030.00517.66
8.1.00.0030.00617.66
8.0.300.0070.00018.77
8.0.290.0070.00017.16
8.0.280.0030.00318.42
8.0.270.0030.00317.28
8.0.260.0000.00616.87
8.0.250.0030.00317.09
8.0.240.0000.00817.08
8.0.230.0070.00017.02
8.0.220.0030.00616.92
8.0.210.0030.00317.09
8.0.200.0070.00017.09
8.0.190.0040.00417.11
8.0.180.0000.00717.10
8.0.170.0000.00816.98
8.0.160.0040.00416.97
8.0.150.0070.00016.99
8.0.140.0070.00017.02
8.0.130.0000.00613.44
8.0.120.0000.00816.91
8.0.110.0000.00717.07
8.0.100.0000.00716.93
8.0.90.0070.00016.98
8.0.80.0090.00617.03
8.0.70.0000.00716.85
8.0.60.0020.00516.92
8.0.50.0000.00716.88
8.0.30.0110.00717.30
8.0.20.0080.01017.40
8.0.10.0040.00417.21
8.0.00.0090.00817.05
7.4.330.0060.00015.00
7.4.320.0070.00016.80
7.4.300.0000.00616.68
7.4.290.0000.00716.77
7.4.280.0070.00316.59
7.4.270.0000.00716.60
7.4.260.0040.00416.65
7.4.250.0040.00416.68
7.4.240.0020.00616.68
7.4.230.0080.00016.58
7.4.220.0110.00416.77
7.4.210.0060.01016.69
7.4.200.0000.00716.64
7.4.190.0000.00816.95
7.4.160.0140.01016.68
7.4.150.0030.01617.40
7.4.140.0160.00517.86
7.4.130.0090.00916.73
7.4.120.0090.00816.61
7.4.110.0160.00316.42
7.4.100.0120.00916.60
7.4.90.0070.01016.78
7.4.80.0100.00719.39
7.4.70.0140.00316.68
7.4.60.0140.00716.61
7.4.50.0050.00516.52
7.4.40.0100.00622.77
7.4.30.0140.00316.54
7.4.00.0040.01415.25
7.3.330.0070.00013.29
7.3.320.0000.00513.29
7.3.310.0070.00016.28
7.3.300.0070.00016.39
7.3.290.0130.00316.43
7.3.280.0060.01416.44
7.3.270.0090.01217.40
7.3.260.0110.00716.73
7.3.250.0080.01316.73
7.3.240.0110.00616.62
7.3.230.0100.01416.77
7.3.210.0080.00816.43
7.3.200.0060.00919.39
7.3.190.0110.00916.47
7.3.180.0130.00416.48
7.3.170.0120.00616.67
7.3.160.0060.01016.54
7.3.120.0040.01117.15
7.3.110.0060.00617.15
7.3.100.0080.00317.15
7.3.90.0090.00617.15
7.3.80.0090.00617.15
7.3.70.0070.00417.15
7.3.60.0000.01717.15
7.3.50.0000.01717.15
7.3.40.0110.00417.15
7.3.30.0070.01017.15
7.3.20.0060.01017.15
7.3.10.0050.01216.90
7.3.00.0090.01116.86
7.2.330.0080.00916.87
7.2.320.0180.00516.84
7.2.310.0090.00916.88
7.2.300.0150.00616.64
7.2.290.0060.00916.80
7.2.240.0000.01617.15
7.2.230.0070.01117.15
7.2.220.0110.00317.15
7.2.210.0040.01117.15
7.2.200.0060.01017.15
7.2.190.0080.00317.15
7.2.180.0070.00717.15
7.2.170.0000.01617.15
7.2.160.0100.00717.15
7.2.150.0030.01417.15
7.2.140.0090.00917.15
7.2.130.0110.01016.80
7.2.120.0100.00816.89
7.2.110.0070.01317.06
7.2.100.0150.00916.88
7.2.90.0120.00417.04
7.2.80.0130.00616.88
7.2.70.0140.00717.22
7.2.60.0120.00717.01
7.2.50.0170.00416.93
7.2.40.0100.00917.05
7.2.30.0100.00817.01
7.2.20.0110.00816.84
7.2.10.0130.00416.88
7.2.00.0130.00817.05
7.1.330.0000.01117.15
7.1.320.0100.00017.15
7.1.310.0070.00317.15
7.1.300.0030.01417.15
7.1.290.0080.00417.15
7.1.280.0040.00717.15
7.1.270.0070.00317.15
7.1.260.0100.00617.15
7.1.250.0070.01116.44
7.1.200.0060.00615.68
7.1.70.0000.00917.49
7.1.60.0090.00317.20
7.1.50.0110.01117.16
7.1.00.0070.03722.33
7.0.200.0060.01316.72
7.0.140.0070.07021.95
7.0.60.0100.08019.86
7.0.50.0130.07317.69
7.0.40.0100.03720.06
7.0.30.0400.06320.15
7.0.20.0270.06020.21
7.0.10.0200.05720.01
7.0.00.0030.06320.02
5.6.280.0000.07720.90
5.6.210.0130.08020.54
5.6.200.0170.07318.23
5.6.190.0070.07320.33
5.6.180.3000.04020.43
5.6.170.0200.08320.60
5.6.160.0000.04320.50
5.6.150.0030.07018.22
5.6.140.0030.08718.21
5.6.130.0070.03718.11
5.6.120.0030.04021.00
5.6.110.0070.07720.97
5.6.100.0030.08320.96
5.6.90.0070.08320.96
5.6.80.0170.07020.28
5.6.70.0300.06720.49
5.5.350.0230.07720.36
5.5.340.0000.07317.92
5.5.330.0030.09020.40
5.5.320.0270.07720.34
5.5.310.0230.08020.29
5.5.300.0070.03718.02
5.5.290.0070.07717.87
5.5.280.0070.06720.95
5.5.270.0030.04320.83
5.5.260.0170.07020.88
5.5.250.0130.08020.67
5.5.240.0000.08320.03
5.4.450.0670.05719.61
5.4.440.0070.07019.52
5.4.430.0070.06019.09
5.4.420.0230.04719.52
5.4.410.1030.06019.45
5.4.400.0400.06318.73
5.4.390.0300.06318.58
5.4.380.0200.05718.55
5.4.370.0130.05318.70
5.4.360.0130.05318.70
5.4.350.0070.04811.97
5.4.340.0090.04511.97
5.4.320.0110.03712.45
5.4.310.0080.03512.45
5.4.300.0040.04012.45
5.4.290.0070.03712.45
5.4.280.0080.04012.35
5.4.270.0080.03612.34
5.4.260.0050.03912.35
5.4.250.0030.05318.76
5.4.240.0000.05718.81
5.4.230.0100.05718.87
5.4.220.0100.05018.82
5.4.210.0030.05318.82
5.4.200.0070.05318.61
5.4.190.0170.05018.84
5.4.180.0130.05718.82
5.4.170.0100.06018.94
5.4.160.0130.07718.84
5.4.150.0100.06318.93
5.4.140.0100.05316.21
5.4.130.0030.05016.43
5.4.120.0030.05016.20
5.4.110.0030.05016.36
5.4.100.0130.04316.38
5.4.90.0070.05016.27
5.4.80.0100.06716.34
5.4.70.0100.04316.22
5.4.60.0070.07016.36
5.4.50.0100.04316.23
5.4.40.0200.05316.48
5.4.30.0100.04316.34
5.4.20.0130.06316.49
5.4.10.0030.06716.32
5.4.00.0070.05015.68
5.3.290.0080.03712.80
5.3.280.0100.04714.68
5.3.270.0130.05314.61
5.3.260.0130.05714.64
5.3.250.0200.05314.37
5.3.240.0100.04314.69
5.3.230.0030.05014.43
5.3.220.0030.05014.57
5.3.210.0030.05014.34
5.3.200.0100.04314.58
5.3.190.0170.04314.58
5.3.180.0070.05014.59
5.3.170.0100.04314.45
5.3.160.0100.04714.71
5.3.150.0000.07014.57
5.3.140.0130.04314.25
5.3.130.0170.04714.70
5.3.120.0070.05714.40
5.3.110.0070.05314.56
5.3.100.0030.05314.18
5.3.90.0100.06313.71
5.3.80.0030.04714.03
5.3.70.0100.05013.87
5.3.60.0030.05014.01
5.3.50.0070.04713.82
5.3.40.0070.05013.71
5.3.30.0030.06713.82
5.3.20.0100.05313.38
5.3.10.0100.04313.62
5.3.00.0000.05313.61
5.2.170.0030.04011.09
5.2.160.0070.04011.25
5.2.150.0070.03711.29
5.2.140.0000.04310.97
5.2.130.0030.04010.84
5.2.120.0100.04011.11
5.2.110.0030.04010.84
5.2.100.0100.03711.12
5.2.90.0130.05011.08
5.2.80.0030.04311.09
5.2.70.0130.04011.11
5.2.60.0100.05011.06
5.2.50.0100.03710.90
5.2.40.0100.03710.83
5.2.30.0100.03710.97
5.2.20.0130.05010.97
5.2.10.0070.04310.76
5.2.00.0100.03710.46
5.1.60.0030.0339.76
5.1.50.0130.02710.24
5.1.40.0130.0309.91
5.1.30.0030.04310.50
5.1.20.0200.02710.33
5.1.10.0130.03310.09
5.1.00.0000.0439.99
5.0.50.0070.0278.77
5.0.40.0000.0408.59
5.0.30.0100.0408.30
5.0.20.0030.0278.27
5.0.10.0070.0278.20
5.0.00.0070.0378.13
4.4.90.0070.0277.05
4.4.80.0000.0277.05
4.4.70.0030.0277.05
4.4.60.0030.0277.05
4.4.50.0030.0207.05
4.4.40.0100.0377.04
4.4.30.0030.0207.04
4.4.20.0070.0207.05
4.4.10.0000.0337.05
4.4.00.0070.0337.05
4.3.110.0030.0237.05
4.3.100.0030.0207.05
4.3.90.0000.0237.05
4.3.80.0030.0307.05
4.3.70.0000.0237.05
4.3.60.0030.0207.05
4.3.50.0030.0207.05
4.3.40.0030.0307.05
4.3.30.0000.0237.05
4.3.20.0000.0237.05
4.3.10.0000.0237.05
4.3.00.0000.0236.53

preferences:
85.77 ms | 401 KiB | 5 Q