3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!@, products#$#, sample"; $keywords = preg_replace("/[^A-Za-z,?!]/", '',($_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.0140.00318.55
8.3.50.0090.00921.27
8.3.40.0100.00719.13
8.3.30.0070.00719.18
8.3.20.0070.00020.29
8.3.10.0040.00421.92
8.3.00.0000.00720.71
8.2.180.0120.00316.47
8.2.170.0140.00722.96
8.2.160.0070.01119.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.90
8.2.110.0040.00422.13
8.2.100.0030.00719.37
8.2.90.0040.00419.17
8.2.80.0090.00017.97
8.2.70.0000.00817.74
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0080.00018.28
8.2.30.0070.00318.20
8.2.20.0080.00017.74
8.2.10.0040.00417.76
8.2.00.0050.00517.79
8.1.280.0140.00325.92
8.1.270.0090.00020.60
8.1.260.0050.00226.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0070.00319.07
8.1.220.0040.00417.76
8.1.210.0090.00018.77
8.1.200.0060.00317.48
8.1.190.0080.00017.53
8.1.180.0000.00818.93
8.1.170.0060.00318.65
8.1.160.0050.00322.19
8.1.150.0000.00718.84
8.1.140.0000.00717.50
8.1.130.0070.00017.79
8.1.120.0000.00717.65
8.1.110.0030.00717.48
8.1.100.0030.00317.60
8.1.90.0050.00317.62
8.1.80.0000.00817.64
8.1.70.0080.00017.56
8.1.60.0040.00417.74
8.1.50.0000.00817.71
8.1.40.0000.00817.56
8.1.30.0030.00617.75
8.1.20.0040.00417.83
8.1.10.0040.00417.63
8.1.00.0000.00917.66
8.0.300.0000.00818.77
8.0.290.0040.00417.18
8.0.280.0000.00718.46
8.0.270.0070.00017.17
8.0.260.0070.00316.86
8.0.250.0000.00717.11
8.0.240.0000.00917.01
8.0.230.0000.00717.08
8.0.220.0070.00017.03
8.0.210.0000.00716.99
8.0.200.0030.00317.01
8.0.190.0080.00017.09
8.0.180.0080.00017.01
8.0.170.0030.00617.06
8.0.160.0040.00417.10
8.0.150.0040.00416.88
8.0.140.0080.00016.98
8.0.130.0050.00013.43
8.0.120.0070.00016.95
8.0.110.0040.00417.04
8.0.100.0040.00416.93
8.0.90.0000.00816.93
8.0.80.0090.00617.00
8.0.70.0040.00417.06
8.0.60.0060.00316.92
8.0.50.0040.00417.09
8.0.30.0150.00417.28
8.0.20.0040.01617.40
8.0.10.0080.00017.03
8.0.00.0120.00916.90
7.4.330.0000.00515.00
7.4.320.0060.00016.83
7.4.300.0030.00316.77
7.4.290.0030.00316.85
7.4.280.0060.00316.71
7.4.270.0030.00316.63
7.4.260.0000.01016.58
7.4.250.0020.00516.68
7.4.240.0030.00416.72
7.4.230.0020.00516.78
7.4.220.0030.02016.75
7.4.210.0080.00716.82
7.4.200.0030.00316.59
7.4.190.0000.00716.75
7.4.160.0130.00416.87
7.4.150.0080.00817.40
7.4.140.0100.00717.86
7.4.130.0100.00716.72
7.4.120.0100.00816.75
7.4.110.0130.00816.59
7.4.100.0090.00916.67
7.4.90.0100.01316.55
7.4.80.0110.00719.39
7.4.70.0080.01216.73
7.4.60.0040.01316.74
7.4.50.0090.00016.62
7.4.40.0060.00922.77
7.4.30.0090.00616.65
7.4.00.0090.00615.20
7.3.330.0030.00313.28
7.3.320.0000.00513.14
7.3.310.0030.00316.39
7.3.300.0000.00716.47
7.3.290.0030.01016.36
7.3.280.0090.00916.45
7.3.270.0100.00717.40
7.3.260.0150.00316.52
7.3.250.0050.01216.50
7.3.240.0100.00816.79
7.3.230.0060.01116.46
7.3.210.0180.00016.71
7.3.200.0090.00919.39
7.3.190.0080.00816.42
7.3.180.0000.01916.56
7.3.170.0030.01416.61
7.3.160.0080.00816.73
7.3.120.0090.00615.21
7.2.330.0090.00916.77
7.2.320.0150.00316.71
7.2.310.0110.00716.93
7.2.300.0060.00916.79
7.2.290.0070.01016.85
7.1.100.0060.01018.27
7.1.70.0090.00617.09
7.1.60.0070.01719.82
7.1.50.0030.00717.19
7.1.00.0000.03722.49
7.0.200.0060.00616.84
7.0.140.0100.06322.04
7.0.60.0230.07319.90
7.0.50.0030.06717.85
7.0.40.0100.06720.28
7.0.30.0230.05020.35
7.0.20.0270.08020.05
7.0.10.0370.07320.01
7.0.00.0130.07720.02
5.6.280.0000.07721.06
5.6.210.0100.08320.50
5.6.200.0070.06718.13
5.6.190.0130.07320.55
5.6.180.0400.07720.55
5.6.170.0170.05320.48
5.6.160.0070.04020.61
5.6.150.0100.07718.13
5.6.140.0000.04018.18
5.6.130.0070.03718.11
5.6.120.0070.04021.13
5.6.110.0100.08020.98
5.6.100.0030.07321.00
5.6.90.0100.08321.09
5.6.80.0130.06720.39
5.6.70.0330.06320.41
5.5.350.0300.07720.29
5.5.340.0100.08018.00
5.5.330.0070.07720.23
5.5.320.0200.04020.25
5.5.310.0270.08320.29
5.5.300.0070.07717.91
5.5.290.0100.07718.01
5.5.280.0170.07320.97
5.5.270.0130.07720.83
5.5.260.0100.07720.75
5.5.250.0030.08720.54
5.5.240.0130.06720.26
5.4.450.0200.07019.63
5.4.440.0830.06319.60
5.4.430.0930.04719.59
5.4.420.0200.04719.10
5.4.410.0200.05018.91
5.4.400.0600.04718.50
5.4.390.0530.05718.52
5.4.380.0230.05318.72
5.4.370.0170.05318.54
5.4.360.0230.05318.50
5.4.350.0110.04411.97
5.4.340.0090.03711.97
5.4.320.0050.03712.45
5.4.310.0040.04712.45
5.4.300.0080.04912.45
5.4.290.0040.04112.45
5.4.280.0050.03612.34
5.4.270.0070.04212.34
5.4.260.0080.03612.35
5.4.250.0000.06018.87
5.4.240.0130.06019.01
5.4.230.0070.07718.89
5.4.220.0170.07318.88
5.4.210.0200.04318.83
5.4.200.0100.05018.79
5.4.190.0100.05018.79
5.4.180.0100.04718.70
5.4.170.0030.07718.98
5.4.160.0070.05318.98
5.4.150.0100.05318.82
5.4.140.0070.05016.27
5.4.130.0100.04316.36
5.4.120.0070.05016.25
5.4.110.0030.05016.26
5.4.100.0100.04716.48
5.4.90.0170.03716.34
5.4.80.0100.04316.52
5.4.70.0100.05016.27
5.4.60.0000.06716.28
5.4.50.0100.04316.32
5.4.40.0070.05016.52
5.4.30.0030.05316.32
5.4.20.0100.04716.25
5.4.10.0030.05716.26
5.4.00.0130.04315.91
5.3.290.0050.05112.80
5.3.280.0170.04314.60
5.3.270.0070.05714.45
5.3.260.0070.05314.75
5.3.250.0200.04014.60
5.3.240.0070.05014.62
5.3.230.0130.06714.45
5.3.220.0130.04714.57
5.3.210.0130.04714.45
5.3.200.0070.04714.58
5.3.190.0130.04314.26
5.3.180.0000.06014.57
5.3.170.0030.05714.55
5.3.160.0170.04314.58
5.3.150.0170.04014.25
5.3.140.0100.05014.41
5.3.130.0130.04714.56
5.3.120.0130.07314.55
5.3.110.0070.07314.51
5.3.100.0070.05014.18
5.3.90.0130.05014.02
5.3.80.0130.04313.79
5.3.70.0030.05313.96
5.3.60.0100.04714.15
5.3.50.0170.04013.96
5.3.40.0100.05313.96
5.3.30.0030.05013.86
5.3.20.0030.05313.54
5.3.10.0130.04313.41
5.3.00.0070.07313.68
5.2.170.0070.04311.07
5.2.160.0070.04010.97
5.2.150.0030.05310.90
5.2.140.0100.03711.14
5.2.130.0000.04711.10
5.2.120.0100.04711.00
5.2.110.0070.04011.03
5.2.100.0130.03011.11
5.2.90.0030.04011.13
5.2.80.0130.03711.09
5.2.70.0100.03711.11
5.2.60.0070.04011.08
5.2.50.0030.04310.85
5.2.40.0030.05711.02
5.2.30.0070.05711.13
5.2.20.0070.04010.86
5.2.10.0100.03310.93
5.2.00.0000.04710.55
5.1.60.0000.0379.95
5.1.50.0030.0379.78
5.1.40.0030.04710.16
5.1.30.0100.02710.26
5.1.20.0100.04310.43
5.1.10.0100.0309.95
5.1.00.0070.05010.30
5.0.50.0030.0308.73
5.0.40.0070.0238.44
5.0.30.0100.0338.18
5.0.20.0030.0278.17
5.0.10.0030.0338.25
5.0.00.0030.0408.24
4.4.90.0030.0306.58
4.4.80.0000.0236.58
4.4.70.0000.0236.58
4.4.60.0000.0306.58
4.4.50.0070.0206.58
4.4.40.0030.0306.58
4.4.30.0000.0236.58
4.4.20.0000.0236.58
4.4.10.0130.0276.58
4.4.00.0030.0336.58
4.3.110.0100.0136.58
4.3.100.0030.0206.58
4.3.90.0000.0236.57
4.3.80.0030.0306.57
4.3.70.0000.0236.57
4.3.60.0030.0206.57
4.3.50.0000.0236.57
4.3.40.0030.0436.57
4.3.30.0100.0236.57
4.3.20.0000.0306.57
4.3.10.0000.0236.57
4.3.00.0070.0236.75

preferences:
94.27 ms | 401 KiB | 5 Q