3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="Ssampl=_e products!@, products#$#, sample"; $keywords = preg_replace("/[^, \w]+/", '',($_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.0040.01118.68
8.3.50.0080.01121.39
8.3.40.0130.00619.09
8.3.30.0070.01319.21
8.3.20.0050.00320.21
8.3.10.0040.00422.09
8.3.00.0040.00420.56
8.2.180.0140.00716.75
8.2.170.0140.00722.96
8.2.160.0070.00719.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00326.16
8.2.120.0080.00019.64
8.2.110.0030.00622.08
8.2.100.0050.00518.09
8.2.90.0000.00818.94
8.2.80.0080.00018.16
8.2.70.0060.00317.88
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0000.00818.34
8.2.30.0040.00418.05
8.2.20.0020.00517.86
8.2.10.0000.00717.79
8.2.00.0060.00617.93
8.1.280.0100.00625.92
8.1.270.0060.00318.68
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0040.00423.86
8.1.230.0110.00018.93
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0070.00317.48
8.1.190.0060.00317.55
8.1.180.0000.00820.48
8.1.170.0030.00618.64
8.1.160.0000.00722.21
8.1.150.0030.00518.66
8.1.140.0030.00617.51
8.1.130.0000.00717.78
8.1.120.0000.00717.54
8.1.110.0000.00917.58
8.1.100.0030.00317.50
8.1.90.0000.00717.47
8.1.80.0070.00017.62
8.1.70.0070.00017.57
8.1.60.0000.00817.77
8.1.50.0000.00717.61
8.1.40.0050.00217.71
8.1.30.0020.00517.67
8.1.20.0030.00517.83
8.1.10.0040.00417.63
8.1.00.0080.00017.70
8.0.300.0060.00318.77
8.0.290.0000.00817.18
8.0.280.0070.00018.46
8.0.270.0000.00717.27
8.0.260.0030.00316.87
8.0.250.0070.00017.06
8.0.240.0000.00917.10
8.0.230.0040.00417.08
8.0.220.0070.00017.02
8.0.210.0070.00016.93
8.0.200.0000.00617.07
8.0.190.0070.00017.11
8.0.180.0050.00316.91
8.0.170.0040.00416.92
8.0.160.0000.00816.96
8.0.150.0070.00016.94
8.0.140.0070.00016.95
8.0.130.0000.00613.50
8.0.120.0060.00317.02
8.0.110.0020.00516.91
8.0.100.0040.00416.90
8.0.90.0060.00317.00
8.0.80.0150.00417.07
8.0.70.0070.00016.89
8.0.60.0080.00017.09
8.0.50.0050.00217.05
8.0.30.0060.01317.13
8.0.20.0130.00517.40
8.0.10.0040.00417.14
8.0.00.0100.00716.84
7.4.330.0000.00515.00
7.4.320.0000.00716.71
7.4.300.0030.00316.68
7.4.290.0050.00216.61
7.4.280.0000.00816.78
7.4.270.0070.00016.76
7.4.260.0000.00716.78
7.4.250.0040.00416.58
7.4.240.0020.00616.80
7.4.230.0000.00716.59
7.4.220.0060.00916.84
7.4.210.0100.00516.75
7.4.200.0000.00716.60
7.4.190.0000.00816.67
7.4.160.0130.00316.80
7.4.150.0120.00917.40
7.4.140.0140.00617.86
7.4.130.0090.00916.69
7.4.120.0130.00516.58
7.4.110.0100.00716.62
7.4.100.0120.00916.69
7.4.90.0110.00816.43
7.4.80.0070.01019.39
7.4.70.0060.00916.75
7.4.60.0140.00416.69
7.4.50.0000.00816.62
7.4.40.0030.01322.77
7.4.30.0080.00816.72
7.4.00.0070.01115.31
7.3.330.0000.00513.25
7.3.320.0030.00313.11
7.3.310.0000.00716.47
7.3.300.0000.00716.31
7.3.290.0140.00016.41
7.3.280.0090.01016.45
7.3.270.0180.00317.40
7.3.260.0060.01216.75
7.3.250.0090.00916.76
7.3.240.0100.00616.54
7.3.230.0210.00516.64
7.3.210.0090.00916.52
7.3.200.0070.01019.39
7.3.190.0140.00716.71
7.3.180.0130.00316.68
7.3.170.0060.01116.81
7.3.160.0060.00916.67
7.3.120.0060.00914.66
7.3.10.0160.00416.71
7.3.00.0150.00616.38
7.2.330.0120.00616.56
7.2.320.0060.01516.59
7.2.310.0160.00616.77
7.2.300.0090.01216.98
7.2.290.0100.00616.71
7.2.130.0130.01317.05
7.2.120.0160.00316.41
7.2.110.0170.01117.04
7.2.100.0160.01016.77
7.2.90.0140.00716.89
7.2.80.0160.00717.02
7.2.70.0250.00317.27
7.2.60.0080.00817.10
7.2.50.0210.00416.45
7.2.40.0140.01417.17
7.2.30.0100.01017.15
7.2.20.0150.00816.82
7.2.10.0170.00816.95
7.2.00.0070.01018.15
7.1.250.0130.00415.29
7.1.100.0030.01018.33
7.1.70.0000.00917.12
7.1.60.0030.02019.82
7.1.50.0070.00416.77
7.1.00.0000.05722.29
7.0.200.0090.00616.87
7.0.140.0030.07321.96
7.0.60.0100.07020.00
7.0.50.0100.08017.82
7.0.40.0100.04720.06
7.0.30.0600.06320.06
7.0.20.0230.05720.21
7.0.10.0000.06020.11
7.0.00.0000.04320.31
5.6.280.0130.06021.09
5.6.210.0030.04320.52
5.6.200.0030.06718.11
5.6.190.0100.07320.80
5.6.180.0270.06320.64
5.6.170.0070.05020.50
5.6.160.0100.06320.71
5.6.150.0000.04318.09
5.6.140.0100.08018.11
5.6.130.0130.07718.09
5.6.120.0100.06720.94
5.6.110.0100.08021.01
5.6.100.0030.06020.99
5.6.90.0100.06021.09
5.6.80.0130.07720.37
5.6.70.4370.04020.38
5.5.350.0070.07320.40
5.5.340.0030.06717.89
5.5.330.0000.06320.19
5.5.320.0230.04020.14
5.5.310.0270.06020.27
5.5.300.0100.07717.98
5.5.290.0130.07317.93
5.5.280.0070.05020.77
5.5.270.0070.08320.86
5.5.260.0130.07720.75
5.5.250.0030.07720.61
5.5.240.0100.07320.27
5.4.450.0900.06019.32
5.4.440.0530.06319.52
5.4.430.0800.06019.09
5.4.420.0030.06719.44
5.4.410.0700.05319.45
5.4.400.0370.06718.77
5.4.390.0400.07318.46
5.4.380.0230.06318.50
5.4.370.0100.05718.59
5.4.360.0600.04718.46
5.4.350.0110.03811.97
5.4.340.0120.04911.97
5.4.320.0100.03712.45
5.4.310.0070.04112.45
5.4.300.0100.03812.45
5.4.290.0070.04412.45
5.4.280.0070.04112.35
5.4.270.0040.03912.35
5.4.260.0070.03912.34
5.4.250.0000.05318.66
5.4.240.0070.05018.98
5.4.230.0200.05718.98
5.4.220.0030.06018.75
5.4.210.0100.06018.81
5.4.200.0130.06018.82
5.4.190.0170.04718.70
5.4.180.0100.07318.98
5.4.170.0000.05318.79
5.4.160.0070.05018.64
5.4.150.0030.05319.00
5.4.140.0030.07016.21
5.4.130.0030.04716.22
5.4.120.0030.04716.18
5.4.110.0070.05016.24
5.4.100.0030.05016.24
5.4.90.0100.06316.38
5.4.80.0030.04716.39
5.4.70.0070.04316.25
5.4.60.0030.05016.27
5.4.50.0070.04316.24
5.4.40.0000.05016.48
5.4.30.0070.04716.43
5.4.20.0030.05016.43
5.4.10.0130.04716.14
5.4.00.0070.04715.69
5.3.290.0090.04112.80
5.3.280.0030.05014.75
5.3.270.0000.05714.59
5.3.260.0130.04714.60
5.3.250.0030.05014.61
5.3.240.0030.05014.30
5.3.230.0100.04714.64
5.3.220.0070.05014.57
5.3.210.0000.05314.58
5.3.200.0100.04314.45
5.3.190.0000.05314.45
5.3.180.0030.07314.44
5.3.170.0030.05014.43
5.3.160.0170.03714.45
5.3.150.0000.05014.56
5.3.140.0130.04014.55
5.3.130.0030.07714.57
5.3.120.0130.04314.55
5.3.110.0070.05714.56
5.3.100.0030.05013.73
5.3.90.0000.05714.03
5.3.80.0100.05714.01
5.3.70.0070.04714.03
5.3.60.0070.05014.01
5.3.50.0000.05313.64
5.3.40.0030.06013.94
5.3.30.0070.04313.95
5.3.20.0030.04713.56
5.3.10.0030.04713.69
5.3.00.0100.04013.68
5.2.170.0100.05011.13
5.2.160.0030.04011.05
5.2.150.0030.05711.06
5.2.140.0030.04011.14
5.2.130.0070.05011.04
5.2.120.0100.04711.09
5.2.110.0000.04011.11
5.2.100.0030.03711.00
5.2.90.0000.04311.11
5.2.80.0000.05011.00
5.2.70.0030.04711.18
5.2.60.0000.06310.88
5.2.50.0030.04010.95
5.2.40.0100.03310.92
5.2.30.0030.04311.08
5.2.20.0070.03710.73
5.2.10.0030.04010.84
5.2.00.0030.04010.60
5.1.60.0000.0379.92
5.1.50.0030.03710.06
5.1.40.0000.0379.94
5.1.30.0070.03710.24
5.1.20.0070.03310.51
5.1.10.0000.0439.84
5.1.00.0070.04710.10
5.0.50.0000.0339.83
5.0.40.0030.0239.83
5.0.30.0000.0479.83
5.0.20.0030.0239.83
5.0.10.0000.0279.83
5.0.00.0030.0379.83
4.4.90.0030.0309.83
4.4.80.0000.0239.83
4.4.70.0030.0279.83
4.4.60.0070.0179.83
4.4.50.0000.0239.83
4.4.40.0070.0409.83
4.4.30.0000.0239.83
4.4.20.0030.0209.83
4.4.10.0070.0179.83
4.4.00.0030.0339.83
4.3.110.0000.0239.83
4.3.100.0030.0179.83
4.3.90.0030.0179.83
4.3.80.0030.0309.83
4.3.70.0000.0209.83
4.3.60.0000.0209.83
4.3.50.0000.0209.83
4.3.40.0000.0339.83
4.3.30.0000.0239.83
4.3.20.0000.0309.83
4.3.10.0000.0239.83
4.3.00.0100.0206.52

preferences:
58.14 ms | 401 KiB | 5 Q