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.70.0170.00316.88
8.3.60.0100.01016.98
8.3.50.0100.00922.10
8.3.40.0140.00719.00
8.3.30.0070.00719.04
8.3.20.0000.00820.22
8.3.10.0060.00323.61
8.3.00.0050.00220.84
8.2.180.0120.00318.29
8.2.170.0070.01022.96
8.2.160.0040.01220.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.34
8.2.110.0090.00022.27
8.2.100.0090.00319.52
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0060.00320.00
8.2.30.0000.00718.32
8.2.20.0080.00017.86
8.2.10.0050.00218.12
8.2.00.0040.00417.85
8.1.280.0100.01025.92
8.1.270.0080.00023.80
8.1.260.0060.00326.35
8.1.250.0120.00328.09
8.1.240.0090.00023.84
8.1.230.0040.00719.15
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.00917.25
8.1.190.0070.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0070.00022.00
8.1.150.0000.00718.63
8.1.140.0040.00417.38
8.1.130.0040.00417.77
8.1.120.0000.00817.50
8.1.110.0040.00417.34
8.1.100.0040.00417.47
8.1.90.0050.00217.34
8.1.80.0030.00517.45
8.1.70.0080.00017.45
8.1.60.0000.00717.53
8.1.50.0080.00017.51
8.1.40.0030.00517.42
8.1.30.0030.00617.62
8.1.20.0000.00817.55
8.1.10.0070.00017.54
8.1.00.0000.00717.52
8.0.300.0040.00418.77
8.0.290.0000.00817.28
8.0.280.0030.00318.43
8.0.270.0000.00717.26
8.0.260.0000.00617.22
8.0.250.0060.00017.06
8.0.240.0000.00916.88
8.0.230.0030.00317.05
8.0.220.0030.00316.94
8.0.210.0040.00416.93
8.0.200.0040.00416.96
8.0.190.0050.00316.94
8.0.180.0040.00416.99
8.0.170.0000.00916.96
8.0.160.0000.00716.91
8.0.150.0020.00516.88
8.0.140.0090.00016.77
8.0.130.0050.00013.27
8.0.120.0000.00816.98
8.0.110.0000.00816.82
8.0.100.0030.00616.91
8.0.90.0000.00716.78
8.0.80.0100.01016.88
8.0.70.0000.00716.80
8.0.60.0000.00716.77
8.0.50.0070.00017.01
8.0.30.0140.00417.24
8.0.20.0100.00817.40
8.0.10.0000.00717.05
8.0.00.0070.01016.92
7.4.330.0050.00015.14
7.4.320.0030.00316.50
7.4.300.0000.00616.58
7.4.290.0030.00316.55
7.4.280.0050.00216.70
7.4.270.0000.00816.69
7.4.260.0000.00616.67
7.4.250.0050.00216.50
7.4.240.0030.00316.61
7.4.230.0030.00316.76
7.4.220.0110.00716.66
7.4.210.0080.00716.68
7.4.200.0030.00316.76
7.4.190.0030.00316.67
7.4.160.0100.00716.55
7.4.150.0100.01017.40
7.4.140.0060.01017.86
7.4.130.0110.00916.50
7.4.120.0090.00916.52
7.4.110.0030.01416.44
7.4.100.0130.01016.71
7.4.90.0070.01116.46
7.4.80.0090.01219.39
7.4.70.0100.01316.46
7.4.60.0100.00616.57
7.4.50.0030.00616.47
7.4.40.0130.00316.52
7.4.30.0030.01216.33
7.4.00.0020.01515.08
7.3.330.0050.00013.26
7.3.320.0000.00613.21
7.3.310.0000.00616.45
7.3.300.0000.00616.39
7.3.290.0090.00616.45
7.3.280.0100.00716.42
7.3.270.0090.01017.40
7.3.260.0090.00916.74
7.3.250.0090.00916.55
7.3.240.0120.00616.55
7.3.230.0040.01516.43
7.3.210.0100.00716.31
7.3.200.0090.01419.39
7.3.190.0160.00616.44
7.3.180.0120.00316.36
7.3.170.0030.01316.69
7.3.160.0090.00616.30
7.3.120.0100.00715.01
7.3.110.0110.00714.59
7.3.100.0080.00014.97
7.3.90.0090.00614.68
7.3.80.0000.00915.07
7.3.70.0030.01015.02
7.3.60.0070.00315.00
7.3.50.0070.00714.93
7.3.40.0040.00814.70
7.3.30.0100.00315.01
7.3.20.0030.01216.63
7.3.10.0110.00316.92
7.3.00.0040.00816.59
7.2.330.0120.00616.68
7.2.320.0080.00816.50
7.2.310.0130.00316.60
7.2.300.0040.01216.74
7.2.290.0100.00716.89
7.2.250.0060.01215.00
7.2.240.0120.00615.12
7.2.230.0030.01014.96
7.2.220.0080.00814.66
7.2.210.0030.00715.02
7.2.200.0030.01015.14
7.2.190.0040.01115.13
7.2.180.0100.00615.25
7.2.170.0070.00314.87
7.2.00.0070.00719.28
7.1.330.0060.00615.77
7.1.320.0040.01115.77
7.1.310.0040.00415.98
7.1.300.0030.01015.77
7.1.290.0060.00915.82
7.1.280.0040.00715.86
7.1.270.0090.00615.84
7.1.260.0060.00915.86
7.1.100.0030.00817.96
7.1.70.0070.01017.23
7.1.60.0100.01019.46
7.1.50.0090.01317.04
7.1.00.0100.07022.40
7.0.200.0060.00316.63
7.0.140.0070.07022.12
7.0.60.0000.04719.86
7.0.50.0100.07317.84
7.0.40.0130.08020.12
7.0.30.0330.07720.17
7.0.20.0370.07320.16
7.0.10.0000.04720.09
7.0.00.0000.06719.99
5.6.280.0070.07020.92
5.6.210.0130.07320.70
5.6.200.0170.05318.19
5.6.190.0070.08720.35
5.6.180.0000.04720.41
5.6.170.0270.05720.41
5.6.160.0070.09020.48
5.6.150.0070.05018.19
5.6.140.0070.03718.20
5.6.130.0170.07318.18
5.6.120.0070.04021.01
5.6.110.0070.08720.98
5.6.100.0130.04321.09
5.6.90.0100.08020.98
5.6.80.0100.07320.35
5.5.350.4730.04020.45
5.5.340.0100.05718.03
5.5.330.0030.09020.07
5.5.320.0270.08020.18
5.5.310.0400.06020.29
5.5.300.0100.08017.92
5.5.290.0030.04018.00
5.5.280.0100.08020.87
5.5.270.0030.08720.96
5.5.260.0000.05320.79
5.5.250.0200.05720.77
5.5.240.0000.08320.27
5.4.450.0170.04319.43
5.4.440.0200.04019.11
5.4.430.0170.04019.27
5.4.420.0230.03719.41
5.4.410.0170.04019.28
5.4.400.0170.03719.09
5.4.390.0270.03719.11
5.4.380.0130.04019.13
5.4.370.0170.04019.09
5.4.360.0170.04018.89
5.4.350.0130.04318.79
5.4.340.0230.03318.79
5.4.320.0330.03319.25
5.4.310.0270.04718.93
5.4.300.0200.04719.09
5.4.290.0230.04318.94
5.4.280.0200.05319.13
5.4.270.0200.05019.07
5.4.260.0330.07319.23
5.4.250.0270.07318.80
5.4.240.0230.04719.13
5.4.230.0270.06319.13
5.4.220.0370.05318.80
5.4.210.0270.06318.91
5.4.200.0370.03719.09
5.4.190.0200.05019.23
5.4.180.0270.03719.11
5.4.170.0270.06719.24
5.4.160.0230.06319.11
5.4.150.0330.03319.06
5.4.140.0370.06016.31
5.4.130.0330.06016.41
5.4.120.0230.08016.25
5.4.110.0300.04016.50
5.4.100.0270.07316.46
5.4.90.0300.03316.39
5.4.80.0230.03716.29
5.4.70.0300.03316.39
5.4.60.0200.04716.38
5.4.50.0270.06016.38
5.4.40.0230.04016.41
5.4.30.0370.05716.38
5.4.20.0400.05316.18
5.4.10.0300.04716.30
5.4.00.0230.04715.72
5.3.290.0230.03714.69
5.3.280.0300.05714.43
5.3.270.0230.08014.45
5.3.260.0230.04014.55
5.3.250.0200.04014.55
5.3.240.0330.07014.45
5.3.230.0230.05314.64
5.3.220.0300.07014.52
5.3.210.0370.06714.51
5.3.200.0300.06714.54
5.3.190.0270.05714.39
5.3.180.0300.04014.48
5.3.170.0200.04014.52
5.3.160.0170.08014.60
5.3.150.0200.05014.46
5.3.140.0230.07714.40
5.3.130.0300.06314.37
5.3.120.0200.07714.38
5.3.110.0230.04014.63
5.3.100.0230.05014.08
5.3.90.0270.04713.96
5.3.80.0230.04713.85
5.3.70.0270.05313.96
5.3.60.0270.04314.03
5.3.50.0270.03713.77
5.3.40.0230.04313.93
5.3.30.0270.04313.70
5.3.20.0330.03713.64
5.3.10.0370.06013.61
5.3.00.0270.06713.47
5.2.170.0200.04011.75
5.2.160.0270.04311.75
5.2.150.0130.03711.75
5.2.140.0230.05711.75
5.2.130.0230.03311.75
5.2.120.0230.05711.75
5.2.110.0300.05711.75
5.2.100.0270.03311.75
5.2.90.0200.05711.75
5.2.80.0270.04311.75
5.2.70.0270.03011.75
5.2.60.0230.04711.75
5.2.50.0270.05011.75
5.2.40.0230.03311.75
5.2.30.0230.05311.75
5.2.20.0100.06311.75
5.2.10.0230.05011.75
5.2.00.0130.05011.75
5.1.60.0170.02711.75
5.1.50.0200.04711.75
5.1.40.0230.04311.75
5.1.30.0200.03011.75
5.1.20.0170.03011.75
5.1.10.0230.05011.75
5.1.00.0200.04711.75
5.0.50.0200.03711.75
5.0.40.0100.04311.75
5.0.30.0130.06011.75
5.0.20.0130.04311.75
5.0.10.0100.04011.75
5.0.00.0200.05311.75
4.4.90.0070.01711.75
4.4.80.0130.01711.75
4.4.70.0130.03011.75
4.4.60.0070.02011.75
4.4.50.0100.02011.75
4.4.40.0100.02311.75
4.4.30.0100.02011.75
4.4.20.0100.02011.75
4.4.10.0100.02711.75
4.4.00.0130.03711.75
4.3.110.0130.02011.75
4.3.100.0130.03011.75
4.3.90.0130.03311.75
4.3.80.0100.02711.75
4.3.70.0130.03011.75
4.3.60.0100.02711.75
4.3.50.0100.02711.75
4.3.40.0100.05311.75
4.3.30.0030.03011.75
4.3.20.0030.03311.75
4.3.10.0070.03311.75
4.3.00.0030.03711.75

preferences:
80.19 ms | 401 KiB | 5 Q