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.40.0150.00618.75
8.3.30.0030.01019.17
8.3.20.0080.00020.30
8.3.10.0000.00921.86
8.3.00.0040.00419.19
8.2.170.0140.00722.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.52
8.2.110.0040.00422.04
8.2.100.0130.00019.57
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0090.00017.88
8.2.60.0040.00418.05
8.2.50.0060.00318.07
8.2.40.0040.00419.83
8.2.30.0040.00418.20
8.2.20.0080.00017.85
8.2.10.0000.00718.00
8.2.00.0040.00417.86
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.96
8.1.230.0040.00719.05
8.1.220.0050.00317.74
8.1.210.0110.00018.77
8.1.200.0060.00317.47
8.1.190.0000.00917.25
8.1.180.0030.00519.14
8.1.170.0070.00318.49
8.1.160.0000.00721.93
8.1.150.0020.00518.57
8.1.140.0000.00717.41
8.1.130.0040.00417.36
8.1.120.0020.00517.50
8.1.110.0000.00717.38
8.1.100.0070.00017.34
8.1.90.0000.00817.45
8.1.80.0040.00417.35
8.1.70.0000.00817.37
8.1.60.0000.00817.50
8.1.50.0000.00917.45
8.1.40.0000.00817.34
8.1.30.0060.00317.72
8.1.20.0050.00317.65
8.1.10.0000.00817.62
8.1.00.0040.00417.50
8.0.300.0050.00318.77
8.0.290.0040.00417.05
8.0.280.0070.00018.40
8.0.270.0030.00317.25
8.0.260.0030.00318.69
8.0.250.0030.00317.00
8.0.240.0000.00917.02
8.0.230.0070.00016.95
8.0.220.0030.00316.84
8.0.210.0040.00416.86
8.0.200.0000.00716.94
8.0.190.0030.00516.96
8.0.180.0040.00417.00
8.0.170.0030.00616.86
8.0.160.0040.00416.96
8.0.150.0080.00316.86
8.0.140.0050.00216.86
8.0.130.0000.00713.34
8.0.120.0040.00416.93
8.0.110.0030.00517.00
8.0.100.0000.00816.93
8.0.90.0000.00816.91
8.0.80.0150.00616.99
8.0.70.0040.00417.05
8.0.60.0050.00316.98
8.0.50.0070.00016.90
8.0.30.0100.01117.20
8.0.20.0130.00617.44
8.0.10.0050.00317.10
8.0.00.0120.00516.84
7.4.330.0050.00015.04
7.4.320.0040.00416.46
7.4.300.0000.00616.61
7.4.290.0090.00016.47
7.4.280.0070.00016.68
7.4.270.0040.00416.63
7.4.260.0070.00016.49
7.4.250.0080.00016.63
7.4.240.0020.00516.62
7.4.230.0000.00716.67
7.4.220.0060.01216.56
7.4.210.0090.00816.58
7.4.200.0030.00316.65
7.4.190.0030.00316.82
7.4.160.0090.00616.41
7.4.150.0090.00917.40
7.4.140.0090.01017.86
7.4.130.0120.00716.54
7.4.120.0060.01116.62
7.4.110.0100.00716.54
7.4.100.0070.01116.39
7.4.90.0080.01116.53
7.4.80.0150.00719.39
7.4.70.0130.00316.74
7.4.60.0100.00616.63
7.4.50.0000.01216.65
7.4.40.0090.00916.45
7.4.30.0130.00316.66
7.4.00.0070.00714.69
7.3.330.0050.00013.12
7.3.320.0050.00013.32
7.3.310.0070.00016.48
7.3.300.0030.00316.42
7.3.290.0060.00816.41
7.3.280.0090.00916.47
7.3.270.0140.00717.40
7.3.260.0070.01116.42
7.3.250.0110.01016.51
7.3.240.0140.00316.55
7.3.230.0130.01016.39
7.3.210.0120.00416.34
7.3.200.0030.01419.39
7.3.190.0100.01316.35
7.3.180.0030.01316.52
7.3.170.0060.00916.43
7.3.160.0150.00916.46
7.3.120.0070.00715.11
7.2.330.0140.00316.71
7.2.320.0180.00016.68
7.2.310.0000.01716.81
7.2.300.0160.00016.50
7.2.290.0030.01316.48
7.2.00.0000.01219.19
7.1.100.0030.01018.23
7.1.70.0000.01117.25
7.1.60.0000.02119.46
7.1.50.0200.01016.98
7.1.00.0100.06722.54
7.0.200.0000.00716.76
7.0.140.0130.06322.19
7.0.60.0200.07319.86
7.0.50.0070.03717.88
7.0.40.0070.07720.05
7.0.30.0300.08020.09
7.0.20.0270.08320.00
7.0.10.0100.07320.04
7.0.00.0070.04020.04
5.6.280.0000.07721.09
5.6.210.0100.07720.74
5.6.200.0100.07718.18
5.6.190.0030.06020.43
5.6.180.0000.06320.33
5.6.170.0270.07320.48
5.6.160.0100.05320.38
5.6.150.0000.08318.18
5.6.140.0100.05018.15
5.6.130.0100.05318.15
5.6.120.0130.08020.99
5.6.110.0030.04721.11
5.6.100.0030.08720.95
5.6.90.0130.03720.96
5.6.80.0100.04320.40
5.5.350.3370.04320.37
5.5.340.0100.06717.96
5.5.330.0070.08020.20
5.5.320.0230.03720.20
5.5.310.0300.05320.23
5.5.300.0100.08017.98
5.5.290.0030.04717.97
5.5.280.0100.08320.77
5.5.270.0030.08320.79
5.5.260.0070.08320.85
5.5.250.0030.08720.70
5.5.240.0030.06720.06
5.4.450.0530.05319.45
5.4.440.0670.05719.39
5.4.430.0800.05019.33
5.4.420.1100.06319.41
5.4.410.0130.04719.38
5.4.400.0630.05018.89
5.4.390.0800.04319.31
5.4.380.0070.06018.62
5.4.370.0070.06018.77
5.4.360.0170.04718.70
5.4.350.0370.03718.55
5.4.340.0030.06018.70
5.4.320.0160.04912.45
5.4.310.0080.04412.45
5.4.300.0070.05812.45
5.4.290.0080.04112.45
5.4.280.0060.04012.35
5.4.270.0080.03712.34
5.4.260.0050.03912.34
5.4.250.0080.04212.34
5.4.240.0080.03712.35
5.4.230.0110.04012.34
5.4.220.0060.03912.34
5.4.210.0090.05012.34
5.4.200.0070.04312.34
5.4.190.0080.04012.34
5.4.180.0080.05212.33
5.4.170.0080.05212.34
5.4.160.0120.03712.34
5.4.150.0080.04912.34
5.4.140.0060.05512.02
5.4.130.0070.05012.01
5.4.120.0080.05111.96
5.4.110.0060.05311.96
5.4.100.0070.04811.97
5.4.90.0090.03811.96
5.4.80.0040.04211.96
5.4.70.0080.03711.96
5.4.60.0090.03611.96
5.4.50.0060.03911.96
5.4.40.0110.03911.95
5.4.30.0250.04511.95
5.4.20.0080.05311.95
5.4.10.0310.05611.95
5.4.00.0120.03411.44
5.3.290.0160.08212.80
5.3.280.0030.04512.71
5.3.270.0070.04212.72
5.3.260.0130.03912.72
5.3.250.0130.06512.72
5.3.240.0120.05212.72
5.3.230.0090.04712.71
5.3.220.0080.04412.68
5.3.210.0100.06412.68
5.3.200.0110.04112.68
5.3.190.0120.05412.68
5.3.180.0060.04612.67
5.3.170.0140.04012.67
5.3.160.0080.04712.67
5.3.150.0100.04812.67
5.3.140.0150.06512.66
5.3.130.0140.04812.66
5.3.120.0080.06212.66
5.3.110.0080.05712.66
5.3.100.0080.05112.12
5.3.90.0090.03912.09
5.3.80.0050.03912.07
5.3.70.0110.04112.07
5.3.60.0090.04212.06
5.3.50.0070.03612.00
5.3.40.0070.03712.00
5.3.30.0100.03511.95
5.3.20.0090.04811.72
5.3.10.0130.05711.69
5.3.00.0060.05011.68
5.2.170.0060.0419.17
5.2.160.0060.0369.17
5.2.150.0030.0369.18
5.2.140.0080.0299.18
5.2.130.0090.0289.13
5.2.120.0090.0279.14
5.2.110.0030.0369.14
5.2.100.0120.0379.14
5.2.90.0050.0429.14
5.2.80.0050.0369.13
5.2.70.0060.0399.14
5.2.60.0050.0339.09
5.2.50.0040.0419.05
5.2.40.0050.0329.04
5.2.30.0060.0329.01
5.2.20.0040.0319.00
5.2.10.0030.0328.92
5.2.00.0070.0308.78
5.1.60.0030.0258.06
5.1.50.0040.0278.06
5.1.40.0050.0268.04
5.1.30.0080.0268.39
5.1.20.0050.0298.41
5.1.10.0050.0268.14
5.1.00.0040.0338.14
5.0.50.0080.0276.62
5.0.40.0040.0276.48
5.0.30.0050.0356.29
5.0.20.0040.0216.26
5.0.10.0040.0296.24
5.0.00.0060.0376.23
4.4.90.0030.0164.77
4.4.80.0050.0144.75
4.4.70.0030.0224.76
4.4.60.0050.0204.75
4.4.50.0030.0244.77
4.4.40.0050.0314.70
4.4.30.0030.0204.76
4.4.20.0020.0224.84
4.4.10.0070.0174.85
4.4.00.0050.0294.75
4.3.110.0030.0224.67
4.3.100.0040.0204.67
4.3.90.0030.0204.64
4.3.80.0040.0304.58
4.3.70.0040.0194.63
4.3.60.0050.0174.63
4.3.50.0040.0194.63
4.3.40.0030.0304.54
4.3.30.0010.0223.29
4.3.20.0020.0213.26
4.3.10.0040.0183.22
4.3.00.0000.0237.37

preferences:
43.86 ms | 400 KiB | 5 Q