3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!\@, products#$#\, sample "; $keywords = preg_replace("/\n/", "",($_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.0110.00718.55
8.3.50.0110.00822.08
8.3.40.0090.00619.14
8.3.30.0100.00319.27
8.3.20.0050.00220.22
8.3.10.0080.00023.65
8.3.00.0040.00420.95
8.2.180.0040.01118.41
8.2.170.0140.00322.96
8.2.160.0120.00318.95
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00720.56
8.2.110.0110.00022.13
8.2.100.0080.00318.09
8.2.90.0020.00519.26
8.2.80.0050.00517.97
8.2.70.0000.00817.75
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0060.00919.99
8.2.30.0040.00418.29
8.2.20.0040.00417.76
8.2.10.0040.00418.26
8.2.00.0000.00817.79
8.1.280.0110.00325.92
8.1.270.0050.00523.81
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.77
8.1.230.0070.00419.09
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0030.00617.25
8.1.190.0000.01117.38
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0070.00022.03
8.1.150.0070.00018.81
8.1.140.0070.00017.51
8.1.130.0070.00017.75
8.1.120.0040.00417.52
8.1.110.0050.00317.65
8.1.100.0000.00717.61
8.1.90.0000.00717.60
8.1.80.0070.00017.57
8.1.70.0080.00017.63
8.1.60.0000.00717.73
8.1.50.0000.00817.50
8.1.40.0060.00317.68
8.1.30.0030.00617.82
8.1.20.0030.00617.79
8.1.10.0000.00817.58
8.1.00.0040.00417.63
8.0.300.0070.00018.77
8.0.290.0040.00417.17
8.0.280.0000.00718.37
8.0.270.0070.00017.23
8.0.260.0000.00817.14
8.0.250.0030.00317.11
8.0.240.0000.00917.08
8.0.230.0040.00416.95
8.0.220.0030.00317.02
8.0.210.0050.00317.03
8.0.200.0040.00417.05
8.0.190.0030.00417.05
8.0.180.0040.00417.03
8.0.170.0080.00017.12
8.0.160.0070.00017.08
8.0.150.0040.00316.90
8.0.140.0030.00616.88
8.0.130.0000.00513.41
8.0.120.0000.00817.01
8.0.110.0040.00417.06
8.0.100.0050.00316.80
8.0.90.0050.00316.86
8.0.80.0070.01017.03
8.0.70.0040.00417.04
8.0.60.0000.00717.05
8.0.50.0000.00716.92
8.0.30.0090.00917.19
8.0.20.0130.00517.40
8.0.10.0020.00516.94
8.0.00.0070.01117.13
7.4.330.0000.00515.25
7.4.320.0000.00616.65
7.4.300.0060.00016.66
7.4.290.0000.00716.71
7.4.280.0030.00316.68
7.4.270.0030.00316.59
7.4.260.0050.00316.68
7.4.250.0050.00316.77
7.4.240.0030.00316.77
7.4.230.0040.00416.54
7.4.220.0110.00816.73
7.4.210.0090.00716.76
7.4.200.0070.00016.84
7.4.190.0070.00016.84
7.4.160.0150.00916.70
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0120.00816.55
7.4.120.0060.01116.72
7.4.110.0080.00816.84
7.4.100.0110.00716.78
7.4.90.0070.01116.66
7.4.80.0100.01219.39
7.4.70.0030.01416.77
7.4.60.0130.01016.54
7.4.50.0000.00516.65
7.4.40.0120.00616.69
7.4.30.0130.00316.66
7.4.00.0090.00614.81
7.3.330.0050.00013.24
7.3.320.0050.00013.27
7.3.310.0000.00716.25
7.3.300.0040.00416.40
7.3.290.0110.00616.46
7.3.280.0100.00516.40
7.3.270.0030.01417.40
7.3.260.0060.01116.75
7.3.250.0140.00716.63
7.3.240.0100.00716.62
7.3.230.0060.01016.55
7.3.210.0100.00716.66
7.3.200.0090.01419.39
7.3.190.0100.00716.69
7.3.180.0110.00716.46
7.3.170.0030.01216.54
7.3.160.0110.00516.70
7.3.120.0170.00014.70
7.2.330.0220.01616.83
7.2.320.0060.01216.88
7.2.310.0090.00916.76
7.2.300.0090.00916.90
7.2.290.0140.00416.75
7.2.00.0040.01119.57
7.1.100.0040.00717.75
7.1.70.0040.01117.06
7.1.60.0090.00919.46
7.1.50.0220.00616.89
7.1.00.0030.07722.34
7.0.200.0000.00716.87
7.0.140.0030.07322.08
7.0.60.0100.07720.02
7.0.50.0130.04317.83
7.0.40.0100.07720.16
7.0.30.0230.07320.18
7.0.20.0300.06020.19
7.0.10.0130.04320.32
7.0.00.0130.07020.02
5.6.280.0130.06320.86
5.6.210.0100.08020.64
5.6.200.0070.08718.21
5.6.190.0000.04720.43
5.6.180.0570.07020.35
5.6.170.0330.06020.71
5.6.160.0100.08020.54
5.6.150.0030.08318.12
5.6.140.0070.08318.08
5.6.130.0000.07018.11
5.6.120.0030.06320.98
5.6.110.0130.06321.01
5.6.100.0100.06320.98
5.6.90.0100.05321.11
5.6.80.0030.06020.38
5.5.350.0200.03020.32
5.5.340.0000.05017.95
5.5.330.0030.05720.40
5.5.320.0200.06320.20
5.5.310.0600.05020.29
5.5.300.0130.07717.89
5.5.290.0000.04317.92
5.5.280.0000.04320.96
5.5.270.0130.08020.71
5.5.260.0030.08720.79
5.5.250.0070.08320.56
5.5.240.0030.03720.18
5.4.450.0630.05319.48
5.4.440.0600.05319.13
5.4.430.0830.06019.63
5.4.420.0730.04319.26
5.4.410.0070.05719.38
5.4.400.1100.05319.09
5.4.390.0870.06019.27
5.4.380.0000.06718.72
5.4.370.0100.05718.52
5.4.360.0070.05718.66
5.4.350.0200.04718.72
5.4.340.0130.05318.78
5.4.320.0040.03812.45
5.4.310.0100.04812.45
5.4.300.0080.04112.45
5.4.290.0150.07312.45
5.4.280.0100.05112.35
5.4.270.0080.06112.34
5.4.260.0100.06512.34
5.4.250.0180.06812.34
5.4.240.0180.06612.35
5.4.230.0130.06212.34
5.4.220.0140.04112.34
5.4.210.0200.07212.34
5.4.200.0200.06712.34
5.4.190.0960.11312.34
5.4.180.0160.07412.34
5.4.170.0080.05612.35
5.4.160.0240.07012.34
5.4.150.0290.09812.34
5.4.140.0110.06312.02
5.4.130.0150.05812.01
5.4.120.0110.07911.96
5.4.110.0240.08611.96
5.4.100.0070.05311.96
5.4.90.0110.07611.96
5.4.80.0170.03811.96
5.4.70.0140.04211.96
5.4.60.0210.07211.96
5.4.50.0100.03711.96
5.4.40.0080.03711.95
5.4.30.0080.04011.95
5.4.20.0070.05811.95
5.4.10.0130.03411.95
5.4.00.0110.03711.44
5.3.290.0080.05412.80
5.3.280.0080.03912.71
5.3.270.0050.04812.73
5.3.260.0070.06312.72
5.3.250.0150.03412.72
5.3.240.0090.05312.72
5.3.230.0080.04312.70
5.3.220.0100.05312.68
5.3.210.0100.05612.68
5.3.200.0110.07412.68
5.3.190.0100.04112.68
5.3.180.0110.08112.68
5.3.170.0140.06912.67
5.3.160.0290.08812.68
5.3.150.0090.05512.68
5.3.140.0090.07012.66
5.3.130.0150.05612.66
5.3.120.0120.07512.66
5.3.110.0100.06012.66
5.3.100.0160.06312.12
5.3.90.0230.10012.08
5.3.80.0120.07412.07
5.3.70.0110.05312.08
5.3.60.0090.05012.07
5.3.50.0050.03912.00
5.3.40.0080.03812.00
5.3.30.0100.03511.94
5.3.20.0070.03811.72
5.3.10.0080.04211.69
5.3.00.0100.03711.68
5.2.170.0070.0299.18
5.2.160.0060.0299.18
5.2.150.0070.0359.18
5.2.140.0070.0339.17
5.2.130.0080.0349.14
5.2.120.0170.0729.13
5.2.110.0100.0429.14
5.2.100.0110.0459.14
5.2.90.0050.0499.14
5.2.80.0070.0499.14
5.2.70.0100.0529.13
5.2.60.0090.0719.09
5.2.50.0050.0409.05
5.2.40.0100.0539.04
5.2.30.0050.0559.01
5.2.20.0270.0829.00
5.2.10.0110.0628.92
5.2.00.0180.0468.77
5.1.60.0100.0338.07
5.1.50.0120.0588.06
5.1.40.0110.0648.04
5.1.30.0180.0568.39
5.1.20.0200.0578.41
5.1.10.0230.0568.14
5.1.00.0170.0518.14
5.0.50.0140.0476.61
5.0.40.0070.0296.48
5.0.30.0060.0496.29
5.0.20.0060.0306.26
5.0.10.0120.0506.24
5.0.00.0120.0686.23
4.4.90.0070.0394.78
4.4.80.0040.0414.76
4.4.70.0070.0354.75
4.4.60.0170.0304.76
4.4.50.0030.0214.77
4.4.40.0080.0444.71
4.4.30.0100.0314.76
4.4.20.0100.0414.85
4.4.10.0060.0254.85
4.4.00.0050.0334.76
4.3.110.0040.0174.67
4.3.100.0050.0174.66
4.3.90.0030.0444.63
4.3.80.0100.0754.59
4.3.70.0120.0364.63
4.3.60.0040.0294.63
4.3.50.0090.0364.63
4.3.40.0130.0804.54
4.3.30.0050.0613.29
4.3.20.0030.0573.26
4.3.10.0120.0443.21
4.3.00.0130.0207.32

preferences:
37.43 ms | 401 KiB | 5 Q