3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!\@, products#$#\, sample"; $keywords = preg_replace("/\g/", ',',($_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.0070.00716.88
8.3.50.0080.00822.05
8.3.40.0120.00318.86
8.3.30.0130.00019.21
8.3.20.0000.00820.34
8.3.10.0040.00423.66
8.3.00.0070.00019.19
8.2.180.0060.00925.92
8.2.170.0130.01019.08
8.2.160.0100.00620.58
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00220.47
8.2.110.0030.00622.20
8.2.100.0080.00317.78
8.2.90.0000.00719.15
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.79
8.2.50.0000.01118.07
8.2.40.0000.00819.89
8.2.30.0090.00018.31
8.2.20.0050.00317.82
8.2.10.0050.00218.17
8.2.00.0000.00717.63
8.1.280.0060.00925.92
8.1.270.0030.00623.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0110.00019.16
8.1.220.0050.00317.75
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0160.00018.18
8.1.160.0040.00422.06
8.1.150.0040.00418.63
8.1.140.0050.00217.45
8.1.130.0000.00720.78
8.1.120.0000.00817.35
8.1.110.0050.00217.55
8.1.100.0000.00817.42
8.1.90.0050.00217.34
8.1.80.0000.00717.49
8.1.70.0030.00517.32
8.1.60.0000.00817.57
8.1.50.0040.00417.31
8.1.40.0050.00217.43
8.1.30.0040.00417.61
8.1.20.0060.00317.58
8.1.10.0050.00317.56
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0070.00018.48
8.0.270.0030.00517.24
8.0.260.0060.00318.42
8.0.250.0070.00016.95
8.0.240.0070.00317.02
8.0.230.0030.00316.88
8.0.220.0030.00316.99
8.0.210.0000.00716.86
8.0.200.0060.00316.92
8.0.190.0000.00817.04
8.0.180.0000.00817.03
8.0.170.0040.00416.88
8.0.160.0080.00016.93
8.0.150.0040.00416.96
8.0.140.0000.00816.90
8.0.130.0000.00513.33
8.0.120.0000.00716.88
8.0.110.0040.00416.79
8.0.100.0030.00617.06
8.0.90.0040.00416.96
8.0.80.0070.01016.83
8.0.70.0000.00716.77
8.0.60.0020.00516.73
8.0.50.0070.00016.95
8.0.30.0100.01017.21
8.0.20.0170.00117.40
8.0.10.0040.00416.92
8.0.00.0150.00716.80
7.4.330.0020.00215.00
7.4.320.0030.00316.82
7.4.300.0030.00316.62
7.4.290.0000.00816.85
7.4.280.0050.00316.70
7.4.270.0070.00016.78
7.4.260.0000.00716.75
7.4.250.0040.00416.66
7.4.240.0050.00216.73
7.4.230.0000.00816.68
7.4.220.0070.01116.81
7.4.210.0090.00816.82
7.4.200.0050.00216.54
7.4.190.0040.00416.61
7.4.160.0060.01016.70
7.4.150.0090.00917.40
7.4.140.0190.00417.86
7.4.130.0140.00816.74
7.4.120.0090.00916.68
7.4.110.0060.01616.66
7.4.100.0090.00916.52
7.4.90.0100.00716.50
7.4.80.0120.00919.39
7.4.70.0080.01216.75
7.4.60.0120.00816.50
7.4.50.0000.00716.36
7.4.40.0140.00616.58
7.4.30.0040.01216.65
7.4.00.0090.00815.16
7.3.330.0050.00013.24
7.3.320.0000.00513.35
7.3.310.0040.00416.44
7.3.300.0030.00316.38
7.3.290.0100.01016.45
7.3.280.0120.00716.41
7.3.270.0100.01017.40
7.3.260.0140.00316.57
7.3.250.0080.00916.79
7.3.240.0100.00716.57
7.3.230.0070.01016.52
7.3.210.0050.01116.57
7.3.200.0160.00919.39
7.3.190.0100.00616.46
7.3.180.0000.01516.43
7.3.170.0110.00616.48
7.3.160.0150.00716.59
7.3.120.0090.00515.07
7.3.110.0030.01314.98
7.3.100.0090.00915.16
7.3.90.0090.00915.12
7.3.80.0100.00314.87
7.3.70.0030.00615.18
7.3.60.0110.00315.03
7.3.50.0060.00914.82
7.3.40.0080.00615.08
7.3.30.0100.00714.73
7.3.20.0000.01116.94
7.3.10.0080.00316.98
7.3.00.0040.01116.75
7.2.330.0100.00716.58
7.2.320.0120.00616.73
7.2.310.0070.01016.81
7.2.300.0070.01016.72
7.2.290.0070.01516.55
7.2.250.0060.01315.27
7.2.240.0070.01115.22
7.2.230.0040.01515.06
7.2.220.0050.00815.18
7.2.210.0040.01214.98
7.2.200.0030.01314.84
7.2.190.0060.00614.87
7.2.180.0120.00014.85
7.2.170.0000.01515.13
7.2.00.0000.01319.65
7.1.330.0070.00715.93
7.1.320.0030.00615.80
7.1.310.0100.00615.93
7.1.300.0060.00615.88
7.1.290.0100.00315.60
7.1.280.0090.00615.75
7.1.270.0030.00615.82
7.1.260.0060.00615.84
7.1.100.0070.00718.19
7.1.70.0000.00917.44
7.1.60.0040.00819.46
7.1.50.0100.01716.69
7.1.00.0070.07322.27
7.0.200.0030.00716.47
7.0.140.0070.07021.95
7.0.60.0170.05019.93
7.0.50.0070.04017.84
7.0.40.0030.09020.04
7.0.30.0300.07320.17
7.0.20.0270.08020.33
7.0.10.0070.05320.12
7.0.00.0070.06320.17
5.6.280.0000.07320.92
5.6.210.0030.08720.52
5.6.200.0070.05718.22
5.6.190.0100.08320.28
5.6.180.0230.07320.43
5.6.170.0330.07720.49
5.6.160.0170.05320.44
5.6.150.0100.04018.16
5.6.140.0030.05018.11
5.6.130.0100.08718.11
5.6.120.0100.08020.89
5.6.110.0170.07321.13
5.6.100.0130.07320.97
5.6.90.0070.07320.96
5.6.80.0100.06720.38
5.5.350.0330.07020.40
5.5.340.0100.05317.96
5.5.330.0100.05020.15
5.5.320.0270.04320.32
5.5.310.0300.04320.28
5.5.300.0100.07318.01
5.5.290.0070.03717.96
5.5.280.0070.08020.76
5.5.270.0130.08020.85
5.5.260.0070.07020.86
5.5.250.0130.07320.57
5.5.240.0070.07320.25
5.4.450.3730.03019.22
5.4.440.0000.04019.29
5.4.430.1030.03719.19
5.4.420.1970.03719.48
5.4.410.3370.03719.35
5.4.400.0000.04018.86
5.4.390.3900.04319.25
5.4.380.4200.04718.86
5.4.370.3670.03719.13
5.4.360.3900.04018.91
5.4.350.4300.04319.04
5.4.340.4100.03318.92
5.4.320.4700.04019.09
5.4.310.4600.03719.13
5.4.300.4530.03719.18
5.4.290.4670.03019.08
5.4.280.3600.03018.86
5.4.270.3930.03319.01
5.4.260.3900.04019.16
5.4.250.3730.03719.03
5.4.240.4530.03718.96
5.4.230.4100.04319.15
5.4.220.4130.03719.07
5.4.210.3830.03718.86
5.4.200.3700.03319.14
5.4.190.4230.04019.17
5.4.180.4630.04019.05
5.4.170.4200.04018.84
5.4.160.3900.04018.95
5.4.150.3770.03718.86
5.4.140.3900.03316.35
5.4.130.4130.03316.04
5.4.120.4130.03016.24
5.4.110.3870.03716.57
5.4.100.3300.04016.25
5.4.90.4000.03716.41
5.4.80.3900.04016.38
5.4.70.4070.03316.14
5.4.60.4170.03316.55
5.4.50.4070.03716.54
5.4.40.3930.04016.41
5.4.30.4370.04016.24
5.4.20.3870.03316.41
5.4.10.4370.03016.47
5.4.00.4570.03715.77
5.3.290.4270.04014.61
5.3.280.3870.03714.52
5.3.270.4630.03014.53
5.3.260.3730.03314.57
5.3.250.3800.03014.57
5.3.240.4000.04714.48
5.3.230.4070.03014.52
5.3.220.3970.03714.53
5.3.210.4030.03714.50
5.3.200.3670.03714.49
5.3.190.3600.04014.49
5.3.180.3770.02714.50
5.3.170.3730.03714.52
5.3.160.3970.03314.49
5.3.150.3730.03314.52
5.3.140.3730.04014.50
5.3.130.4130.03314.55
5.3.120.4430.04014.36
5.3.110.3700.04014.51
5.3.100.4330.03714.02
5.3.90.4300.03713.95
5.3.80.3870.04313.94
5.3.70.3900.03013.95
5.3.60.3930.03714.02
5.3.50.3770.03313.89
5.3.40.3900.04013.89
5.3.30.4000.03013.88
5.3.20.3730.03713.63
5.3.10.3600.03713.47
5.3.00.3900.03713.55
5.2.170.4270.03311.13
5.2.160.3200.03311.11
5.2.150.3070.02710.97
5.2.140.3330.02711.11
5.2.130.3400.03311.18
5.2.120.3170.03011.19
5.2.110.2500.03010.98
5.2.100.3100.03011.00
5.2.90.2930.02711.11
5.2.80.2830.03710.99
5.2.70.2570.02710.91
5.2.60.3070.03010.94
5.2.50.3200.04310.95
5.2.40.2470.02710.94
5.2.30.2330.02011.12
5.2.20.2430.03010.79
5.2.10.2100.02310.86
5.2.00.2900.03710.56
5.1.60.2200.0239.94
5.1.50.2600.0239.98
5.1.40.2470.02010.04
5.1.30.2830.03310.23
5.1.20.2800.02710.35
5.1.10.2830.0279.98
5.1.00.3030.02710.04
5.0.50.1830.0238.55
5.0.40.1500.0208.31
5.0.30.1700.0308.23
5.0.20.1470.0238.34
5.0.10.1470.0208.07
5.0.00.1400.0338.18
4.4.90.1230.0175.94
4.4.80.1430.0205.94
4.4.70.1230.0135.94
4.4.60.1230.0135.94
4.4.50.1200.0175.94
4.4.40.1230.0275.94
4.4.30.1270.0135.94
4.4.20.1230.0135.94
4.4.10.1400.0205.94
4.4.00.1770.0235.94
4.3.110.1830.0135.94
4.3.100.1500.0175.94
4.3.90.1300.0135.94
4.3.80.1400.0205.94
4.3.70.1270.0135.94
4.3.60.1200.0135.94
4.3.50.1470.0205.94
4.3.40.1400.0275.94
4.3.30.0700.0205.94
4.3.20.0800.0205.94
4.3.10.1000.0175.94
4.3.00.0770.0135.94

preferences:
50.78 ms | 401 KiB | 5 Q