3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = "Clean :this; [c<op=y of i>nv\al?id@ non AS]CII äóchar^acters."; $output = preg_replace('/[\x00-\x1F]|[\x21-\x2C]|[\x3A-\x40]|[\x5B-\x5E]|[\x7B-\x7D]|[\x80-\xBF]|[\x2B0-\x36F]|[\x2000-\x2BFF]|[\x2E00-\x2E7F]/','', $output); echo($output);

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.00718.55
8.3.50.0100.01021.08
8.3.40.0070.00718.88
8.3.30.0100.00720.25
8.3.20.0040.00420.25
8.3.10.0040.00422.05
8.3.00.0040.00422.56
8.2.180.0070.01118.16
8.2.170.0070.00722.96
8.2.160.0090.00622.08
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00520.75
8.2.110.0070.00322.25
8.2.100.0080.00417.91
8.2.90.0040.00418.96
8.2.80.0040.00419.38
8.2.70.0080.00017.72
8.2.60.0030.00717.91
8.2.50.0090.00018.07
8.2.40.0000.00818.22
8.2.30.0080.00019.51
8.2.20.0000.00717.79
8.2.10.0020.00517.72
8.2.00.0050.00317.77
8.1.280.0070.01025.92
8.1.270.0050.00324.02
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.00923.97
8.1.230.0050.00519.00
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00717.16
8.1.180.0040.00418.89
8.1.170.0080.00018.59
8.1.160.0030.00718.88
8.1.150.0040.00418.69
8.1.140.0070.00017.37
8.1.130.0000.00917.83
8.1.120.0000.00717.48
8.1.110.0030.00617.43
8.1.100.0000.00717.42
8.1.90.0040.00417.30
8.1.80.0000.00717.32
8.1.70.0030.00317.37
8.1.60.0040.00417.52
8.1.50.0040.00417.50
8.1.40.0040.00417.46
8.1.30.0040.00417.44
8.1.20.0030.00517.56
8.1.10.0070.00017.48
8.1.00.0070.00317.42
8.0.300.0070.00018.77
8.0.290.0040.00417.02
8.0.280.0070.00018.37
8.0.270.0030.00317.32
8.0.260.0000.00616.89
8.0.250.0000.00616.94
8.0.240.0030.00516.93
8.0.230.0030.00316.96
8.0.220.0000.00816.92
8.0.210.0030.00316.89
8.0.200.0000.00616.97
8.0.190.0000.00716.98
8.0.180.0040.00416.80
8.0.170.0000.00716.87
8.0.160.0030.00316.83
8.0.150.0030.00316.83
8.0.140.0040.00416.75
8.0.130.0000.00613.37
8.0.120.0000.00716.74
8.0.110.0000.00816.80
8.0.100.0000.00716.71
8.0.90.0000.00816.91
8.0.80.0070.00716.95
8.0.70.0080.00016.94
8.0.60.0040.00416.72
8.0.50.0040.00416.87
8.0.30.0100.00817.25
8.0.20.0130.00617.40
8.0.10.0000.00716.83
8.0.00.0130.00916.59
7.4.330.0020.00215.00
7.4.320.0060.00016.55
7.4.300.0000.00716.52
7.4.290.0030.00316.61
7.4.280.0090.00016.50
7.4.270.0000.00716.42
7.4.260.0030.00313.20
7.4.250.0040.00416.46
7.4.240.0040.00416.58
7.4.230.0070.00016.62
7.4.220.0060.01316.64
7.4.210.0040.01016.53
7.4.200.0030.00316.58
7.4.190.0000.00716.78
7.4.160.0060.01016.56
7.4.150.0140.00317.40
7.4.140.0120.00817.86
7.4.130.0090.00916.59
7.4.120.0100.00716.70
7.4.110.0100.01016.48
7.4.100.0070.01016.57
7.4.90.0100.00716.25
7.4.80.0080.00819.39
7.4.70.0060.00916.63
7.4.60.0100.01316.31
7.4.50.0040.00416.46
7.4.40.0040.01522.77
7.4.30.0180.00316.48
7.4.00.0030.01014.97
7.3.330.0000.00613.17
7.3.320.0040.00413.25
7.3.310.0030.00316.33
7.3.300.0000.00716.08
7.3.290.0070.00716.41
7.3.280.0100.00616.29
7.3.270.0100.00717.40
7.3.260.0110.00616.50
7.3.250.0090.01316.33
7.3.240.0110.01116.22
7.3.230.0030.01316.53
7.3.210.0060.01116.30
7.3.200.0070.01319.39
7.3.190.0090.00916.30
7.3.180.0080.01316.61
7.3.170.0120.01216.54
7.3.160.0060.01016.42
7.3.120.0120.00615.05
7.3.10.0110.00316.26
7.3.00.0070.00716.25
7.2.330.0140.00416.41
7.2.320.0160.00816.59
7.2.310.0050.01116.70
7.2.300.0110.01116.56
7.2.290.0200.00316.70
7.2.130.0030.00916.57
7.2.120.0080.00616.61
7.2.110.0120.00016.38
7.2.100.0080.00616.87
7.2.90.0040.01116.68
7.2.80.0090.01316.72
7.2.70.0100.01016.90
7.2.60.0100.00716.66
7.2.50.0090.00916.87
7.2.40.0190.00616.21
7.2.30.0160.00316.60
7.2.20.0080.00816.48
7.2.10.0070.00716.70
7.2.00.0060.00618.00
7.1.250.0070.00315.63
7.1.200.0060.00615.92
7.1.100.0030.01018.13
7.1.70.0000.00717.15
7.1.60.0060.01919.32
7.1.50.0150.00617.09
7.1.00.0000.03722.44
7.0.200.0070.00016.93
7.0.140.0000.07722.09
7.0.100.0100.07719.95
7.0.90.0130.07719.94
7.0.80.0270.08019.99
7.0.70.0030.08719.87
7.0.60.0170.07319.98
7.0.50.0130.06720.31
7.0.40.0270.06320.04
7.0.30.0070.09020.07
7.0.20.0030.08720.11
7.0.10.0030.05320.10
7.0.00.0030.05020.02
5.6.280.0030.07021.11
5.6.250.0030.08320.65
5.6.240.0030.06020.57
5.6.230.0100.08020.65
5.6.220.0070.07720.57
5.6.210.0100.08020.74
5.6.200.0070.08321.02
5.6.190.0070.08721.13
5.6.180.0100.04721.02
5.6.170.0030.05721.00
5.6.160.0170.06021.13
5.6.150.0030.08721.13
5.6.140.0070.06720.99
5.6.130.0130.07720.94
5.6.120.0070.04721.07
5.6.110.0030.09021.00
5.6.100.0070.07321.03
5.6.90.0030.05321.01
5.6.80.0100.08320.43
5.6.70.0200.09020.38
5.6.60.0100.06720.39
5.6.50.0070.04720.44
5.6.40.0030.07020.43
5.6.30.0070.08020.41
5.6.20.0130.07720.47
5.6.10.0100.08020.38
5.6.00.0030.05020.50
5.5.380.0070.08320.50
5.5.370.0070.08720.34
5.5.360.0100.08320.38
5.5.350.0100.08020.34
5.5.340.0130.08020.82
5.5.330.0070.09020.89
5.5.320.0070.08020.89
5.5.310.0100.07720.86
5.5.300.0200.08320.88
5.5.290.0070.09020.86
5.5.280.0100.06320.85
5.5.270.0000.04720.62
5.5.260.0070.05020.91
5.5.250.0070.04020.56
5.5.240.0100.07320.15
5.5.230.0130.07320.10
5.5.220.0070.08020.18
5.5.210.0100.04320.23
5.5.200.0130.06720.22
5.5.190.0130.03320.07
5.5.180.0130.06320.24
5.5.160.0030.05320.25
5.5.150.0030.05720.20
5.5.140.0070.04320.26
5.5.130.0070.06720.13
5.5.120.0200.07020.23
5.5.110.0000.08720.22
5.5.100.0100.08020.16
5.5.90.0130.04020.14
5.5.80.0130.07320.07
5.5.70.0130.07720.10
5.5.60.0130.03719.99
5.5.50.0070.07720.04
5.5.40.0070.05020.02
5.5.30.0100.03720.04
5.5.20.0030.04020.07
5.5.10.0000.04320.04
5.5.00.0070.03719.93
5.4.450.0130.06719.38
5.4.440.0070.04019.35
5.4.430.0200.06319.26
5.4.420.0030.05319.29
5.4.410.0000.08319.14
5.4.400.0070.08019.14
5.4.390.0070.08019.13
5.4.380.0030.08019.03
5.4.370.0200.06318.90
5.4.360.0100.07019.03
5.4.350.0070.07319.14
5.4.340.0030.05319.00
5.4.320.0170.06719.09
5.4.310.0100.06019.02
5.4.300.0130.06718.81
5.4.290.0070.04718.80
5.4.280.0070.07719.22
5.4.270.0000.06719.09
5.4.260.0070.07319.02
5.4.250.0100.06719.12
5.4.240.0100.07319.09
5.4.230.0100.07019.07
5.4.220.0030.05319.13
5.4.210.0070.05718.78
5.4.200.0100.03319.09
5.4.190.0030.04719.21
5.4.180.0070.03718.77
5.4.170.0000.04718.89
5.4.160.0030.03719.02
5.4.150.0000.04018.96
5.4.140.0000.03716.26
5.4.130.0000.03716.28
5.4.120.0030.03716.26
5.4.110.0000.03716.39
5.4.100.0100.06716.22
5.4.90.0030.03316.20
5.4.80.0070.03316.34
5.4.70.0030.03316.25
5.4.60.0030.03316.35
5.4.50.0070.03316.18
5.4.40.0000.04016.37
5.4.30.0070.03316.24
5.4.20.0070.03316.34
5.4.10.0030.03716.41
5.4.00.0030.03315.81
5.3.290.0100.04314.48
5.3.280.0070.07314.46
5.3.270.0000.04014.55
5.3.260.0070.04714.43
5.3.250.0030.03714.59
5.3.240.0030.03714.43
5.3.230.0000.04014.55
5.3.220.0000.04014.42
5.3.210.0030.03714.43
5.3.200.0100.02714.47
5.3.190.0030.03714.43
5.3.180.0030.04014.52
5.3.170.0130.02714.41
5.3.160.0030.03714.42
5.3.150.0070.03314.53
5.3.140.0030.03714.37
5.3.130.0000.04014.53
5.3.120.0030.03314.52
5.3.110.0000.04014.54
5.3.100.0000.04713.90
5.3.90.0030.03713.85
5.3.80.0030.03313.97
5.3.70.0030.03714.00
5.3.60.0070.03313.86
5.3.50.0070.04013.85
5.3.40.0000.04713.95
5.3.30.0030.04013.76
5.3.20.0030.04013.63
5.3.10.0030.03713.43
5.3.00.0070.04313.62
5.2.170.0000.03010.98
5.2.160.0030.03010.98
5.2.150.0030.03311.19
5.2.140.0000.03011.13
5.2.130.0000.03011.17
5.2.120.0030.03311.09
5.2.110.0000.03011.05
5.2.100.0030.02711.09
5.2.90.0000.02710.96
5.2.80.0030.03011.11
5.2.70.0000.03010.94
5.2.60.0030.03010.86
5.2.50.0000.03010.84
5.2.40.0000.03011.07
5.2.30.0000.05310.98
5.2.20.0000.03010.95
5.2.10.0000.03010.80
5.2.00.0000.03010.73
5.1.60.0030.02310.48
5.1.50.0030.02710.48
5.1.40.0000.02010.48
5.1.30.0070.02010.48
5.1.20.0030.02310.48
5.1.10.0030.02710.48
5.1.00.0000.02710.48
5.0.50.0030.01710.48
5.0.40.0000.02010.48
5.0.30.0030.03010.48
5.0.20.0030.01710.48
5.0.10.0030.04310.48
5.0.00.0100.05010.48
4.4.90.0000.01310.48
4.4.80.0000.01710.48
4.4.70.0000.01710.48
4.4.60.0000.01710.48
4.4.50.0000.01710.48
4.4.40.0000.02710.48
4.4.30.0000.01710.48
4.4.20.0070.01310.48
4.4.10.0030.01310.48
4.4.00.0030.02310.48
4.3.110.0000.01710.48
4.3.100.0000.01710.48
4.3.90.0070.03010.48
4.3.80.0030.03310.48
4.3.70.0070.03010.48
4.3.60.0030.03310.48
4.3.50.0000.02310.48
4.3.40.0000.04010.48
4.3.30.0000.03710.48
4.3.20.0000.02010.48
4.3.10.0070.01310.48
4.3.00.0000.03710.48

preferences:
36.9 ms | 401 KiB | 5 Q