3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!@, products#$#, sample"; $keywords = preg_replace("/[^\]", ',',($_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.01116.63
8.3.50.0110.00722.12
8.3.40.0090.01219.06
8.3.30.0040.01119.02
8.3.20.0000.00920.21
8.3.10.0040.00423.66
8.3.00.0000.00820.95
8.2.180.0140.00418.36
8.2.170.0100.00722.96
8.2.160.0100.00320.32
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.38
8.2.110.0060.00321.00
8.2.100.0070.00417.84
8.2.90.0000.00819.17
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0100.00018.05
8.2.50.0040.00418.10
8.2.40.0030.00618.28
8.2.30.0030.00518.18
8.2.20.0030.00519.54
8.2.10.0040.00418.11
8.2.00.0040.00417.73
8.1.280.0070.00725.92
8.1.270.0040.00423.84
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0130.01021.13
8.1.230.0070.00317.89
8.1.220.0040.00417.78
8.1.210.0040.00718.77
8.1.200.0030.00617.35
8.1.190.0090.00017.35
8.1.180.0050.00218.10
8.1.170.0060.00618.64
8.1.160.0040.00421.99
8.1.150.0040.00418.50
8.1.140.0040.00417.38
8.1.130.0000.00717.80
8.1.120.0000.00717.44
8.1.110.0000.00717.41
8.1.100.0080.00017.41
8.1.90.0030.00517.42
8.1.80.0030.00517.33
8.1.70.0070.00017.27
8.1.60.0040.00417.63
8.1.50.0030.00517.42
8.1.40.0030.00617.36
8.1.30.0050.00317.55
8.1.20.0040.00417.55
8.1.10.0000.00717.47
8.1.00.0000.00817.47
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0040.00418.49
8.0.270.0000.00717.16
8.0.260.0030.00317.18
8.0.250.0030.00316.95
8.0.240.0040.00417.04
8.0.230.0030.00316.96
8.0.220.0000.00716.96
8.0.210.0030.00316.84
8.0.200.0000.00817.02
8.0.190.0070.00016.99
8.0.180.0040.00416.84
8.0.170.0000.00816.94
8.0.160.0030.00516.95
8.0.150.0000.00716.97
8.0.140.0000.00816.83
8.0.130.0060.00013.47
8.0.120.0000.00916.89
8.0.110.0000.00716.95
8.0.100.0030.00716.79
8.0.90.0040.00316.85
8.0.80.0070.01416.90
8.0.70.0000.00817.00
8.0.60.0000.00717.01
8.0.50.0000.00716.97
8.0.30.0100.00816.92
8.0.20.0100.01117.40
8.0.10.0000.00817.07
8.0.00.0110.00616.86
7.4.330.0050.00015.09
7.4.320.0030.00316.48
7.4.300.0000.00616.59
7.4.290.0060.00316.51
7.4.280.0030.00316.47
7.4.270.0070.00016.52
7.4.260.0030.00316.52
7.4.250.0030.00316.38
7.4.240.0030.00316.49
7.4.230.0030.00316.64
7.4.220.0150.00416.66
7.4.210.0070.00716.57
7.4.200.0040.00416.69
7.4.190.0020.00416.45
7.4.160.0120.01216.42
7.4.150.0100.00717.40
7.4.140.0110.01217.86
7.4.130.0090.00916.42
7.4.120.0090.00816.57
7.4.110.0090.01216.35
7.4.100.0030.01416.76
7.4.90.0000.01816.58
7.4.80.0070.01019.39
7.4.70.0060.01016.47
7.4.60.0080.00816.37
7.4.50.0040.00416.47
7.4.40.0000.01716.58
7.4.30.0120.00916.63
7.4.00.0090.00614.57
7.3.330.0000.00613.08
7.3.320.0050.00013.16
7.3.310.0070.00016.16
7.3.300.0040.00416.23
7.3.290.0090.01216.38
7.3.280.0070.01016.36
7.3.270.0090.00917.40
7.3.260.0090.00916.45
7.3.250.0120.00716.52
7.3.240.0100.01316.36
7.3.230.0130.00316.39
7.3.210.0130.00316.43
7.3.200.0060.01219.39
7.3.190.0060.01316.55
7.3.180.0000.01516.63
7.3.170.0060.01016.63
7.3.160.0090.00616.50
7.3.120.0080.00414.55
7.3.110.0000.01114.98
7.3.100.0070.00714.79
7.3.90.0040.00714.55
7.3.80.0030.00614.52
7.3.70.0060.00914.91
7.3.60.0030.01314.88
7.3.50.0070.00714.86
7.3.40.0040.00814.78
7.3.30.0040.00714.75
7.3.20.0040.00716.51
7.3.10.0100.00316.47
7.3.00.0070.00716.58
7.2.330.0030.01416.82
7.2.320.0110.00816.50
7.2.310.0140.00316.81
7.2.300.0080.00816.34
7.2.290.0170.00016.63
7.2.240.0030.00915.27
7.2.230.0030.00715.02
7.2.220.0030.01015.20
7.2.210.0030.00615.06
7.2.200.0030.01014.95
7.2.190.0080.00814.97
7.2.180.0050.00514.93
7.2.170.0060.00614.88
7.2.160.0040.00714.91
7.2.150.0070.00716.73
7.2.140.0030.00916.91
7.2.130.0080.00516.57
7.2.120.0100.00717.00
7.2.110.0030.00716.68
7.2.100.0040.00716.41
7.2.90.0030.01316.89
7.2.80.0040.01216.68
7.2.70.0000.00816.75
7.2.60.0050.00916.91
7.2.50.0020.01316.85
7.2.40.0050.00816.77
7.2.30.0040.01116.82
7.2.20.0040.00816.80
7.2.10.0070.00716.96
7.2.00.0070.00716.66
7.1.330.0030.00715.49
7.1.320.0060.00915.57
7.1.310.0040.00415.59
7.1.300.0000.01115.86
7.1.290.0030.00615.66
7.1.280.0120.00315.77
7.1.270.0030.00715.73
7.1.260.0110.00315.89
7.1.250.0060.00915.52
7.1.200.0030.00915.60
7.1.70.0070.00317.24
7.1.60.0040.00719.46
7.1.50.0090.01516.95
7.1.00.0070.07022.35
7.0.200.0050.00316.70
7.0.140.0000.07722.18
7.0.60.0030.09019.93
7.0.50.0070.05017.81
7.0.40.0030.08020.40
7.0.30.0270.08320.13
7.0.20.0430.07720.21
7.0.10.0100.08720.09
7.0.00.0170.07720.10
5.6.280.0000.07021.12
5.6.210.0030.04020.47
5.6.200.0030.08318.17
5.6.190.0070.05320.49
5.6.180.0030.09020.41
5.6.170.0230.04020.49
5.6.160.0170.06720.46
5.6.150.0070.08018.17
5.6.140.0030.07718.11
5.6.130.0070.08718.12
5.6.120.0170.07321.08
5.6.110.0000.04721.10
5.6.100.0000.08320.99
5.6.90.0000.04320.96
5.6.80.0170.05720.28
5.5.350.2870.03720.52
5.5.340.0030.04017.92
5.5.330.0030.05020.37
5.5.320.0470.03720.26
5.5.310.0300.07720.28
5.5.300.0070.05717.95
5.5.290.0130.08017.92
5.5.280.0130.07720.86
5.5.270.0100.08320.71
5.5.260.0030.04020.86
5.5.250.0030.08320.61
5.5.240.0000.06020.28
5.4.450.0400.04719.57
5.4.440.0230.03719.57
5.4.430.0130.04319.40
5.4.420.0230.03719.45
5.4.410.0270.04319.32
5.4.400.0270.05018.89
5.4.390.0330.02319.18
5.4.380.0200.04019.09
5.4.370.0170.04319.08
5.4.360.0270.06318.80
5.4.350.0270.04719.06
5.4.340.0270.05718.89
5.4.320.0230.06018.92
5.4.310.0300.07019.16
5.4.300.0270.05019.08
5.4.290.0330.04018.79
5.4.280.0200.04019.09
5.4.270.0300.05319.06
5.4.260.0370.04019.08
5.4.250.0170.07018.92
5.4.240.0200.04318.91
5.4.230.0170.03719.09
5.4.220.0170.04719.13
5.4.210.0200.03719.24
5.4.200.0270.04319.08
5.4.190.0200.04319.08
5.4.180.0330.06319.21
5.4.170.0230.04718.91
5.4.160.0230.04019.03
5.4.150.0200.06719.22
5.4.140.0270.03716.54
5.4.130.0300.07016.30
5.4.120.0330.06316.32
5.4.110.0300.05316.26
5.4.100.0330.05316.21
5.4.90.0400.06016.47
5.4.80.0270.06716.48
5.4.70.0330.06016.38
5.4.60.0230.06016.37
5.4.50.0330.06716.27
5.4.40.0300.06716.36
5.4.30.0270.07316.04
5.4.20.0230.05316.20
5.4.10.0330.06316.18
5.4.00.0270.06315.68
5.3.290.0270.04014.63
5.3.280.0330.03314.63
5.3.270.0200.04014.63
5.3.260.0270.03314.63
5.3.250.0200.03714.63
5.3.240.0300.03014.63
5.3.230.0230.03714.63
5.3.220.0270.07014.63
5.3.210.0200.04014.63
5.3.200.0230.03314.63
5.3.190.0300.07014.63
5.3.180.0300.06714.63
5.3.170.0270.04714.63
5.3.160.0230.04314.63
5.3.150.0200.04014.63
5.3.140.0200.07314.63
5.3.130.0230.03714.63
5.3.120.0230.03714.63
5.3.110.0330.02714.63
5.3.100.0230.03314.63
5.3.90.0200.03714.63
5.3.80.0300.05314.63
5.3.70.0230.04714.63
5.3.60.0230.04014.63
5.3.50.0330.04314.63
5.3.40.0330.04314.63
5.3.30.0330.06314.63
5.3.20.0230.05014.63
5.3.10.0270.03014.63
5.3.00.0300.04314.63
5.2.170.0170.03314.63
5.2.160.0230.03714.63
5.2.150.0270.03714.63
5.2.140.0200.02714.63
5.2.130.0270.04714.63
5.2.120.0230.04314.63
5.2.110.0270.02714.63
5.2.100.0230.04014.63
5.2.90.0270.05714.63
5.2.80.0230.04014.63
5.2.70.0230.04014.63
5.2.60.0230.05014.63
5.2.50.0300.04014.63
5.2.40.0230.03314.63
5.2.30.0230.03314.63
5.2.20.0100.03714.63
5.2.10.0170.04714.63
5.2.00.0270.05314.63
5.1.60.0200.05014.63
5.1.50.0200.05014.63
5.1.40.0230.05014.63
5.1.30.0170.04314.63
5.1.20.0270.05014.63
5.1.10.0170.02714.63
5.1.00.0100.03014.63
5.0.50.0100.04714.63
5.0.40.0070.02714.63
5.0.30.0170.05314.63
5.0.20.0100.03314.63
5.0.10.0170.04014.63
5.0.00.0070.03314.63
4.4.90.0130.01714.63
4.4.80.0170.03014.63
4.4.70.0100.02314.63
4.4.60.0100.01314.63
4.4.50.0130.02014.63
4.4.40.0070.02714.63
4.4.30.0100.02314.63
4.4.20.0170.03014.63
4.4.10.0100.01714.63
4.4.00.0100.02314.63
4.3.110.0070.01714.63
4.3.100.0070.02014.63
4.3.90.0070.01714.63
4.3.80.0070.03014.63
4.3.70.0070.02014.63
4.3.60.0030.01714.63
4.3.50.0100.03314.63
4.3.40.0130.04714.63
4.3.30.0100.01714.63
4.3.20.0070.03314.63
4.3.10.0100.02714.63
4.3.00.0030.02714.63

preferences:
38.68 ms | 401 KiB | 5 Q