3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = "Clean this copy of invalid non ASCII äócharacters."; $output = preg_replace('/[^(\x20-\x7F)]*/','', $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.0200.00018.55
8.3.50.0140.00522.09
8.3.40.0150.00018.79
8.3.30.0090.00919.10
8.3.20.0060.00320.10
8.3.10.0040.00420.69
8.3.00.0050.00317.63
8.2.180.0070.00716.88
8.2.170.0100.00722.96
8.2.160.0110.00320.52
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00422.06
8.2.110.0030.00620.34
8.2.100.0120.00318.16
8.2.90.0000.00819.13
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00819.26
8.2.20.0040.00417.84
8.2.10.0040.00418.05
8.2.00.0040.00418.02
8.1.280.0070.00725.92
8.1.270.0040.00422.13
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0070.00419.10
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0120.00018.36
8.1.160.0000.00722.04
8.1.150.0040.00418.85
8.1.140.0040.00417.56
8.1.130.0030.00317.89
8.1.120.0000.00717.64
8.1.110.0040.00417.52
8.1.100.0050.00317.44
8.1.90.0000.00717.55
8.1.80.0030.00317.54
8.1.70.0020.00517.50
8.1.60.0000.00917.64
8.1.50.0070.00317.63
8.1.40.0030.00517.56
8.1.30.0030.00617.66
8.1.20.0040.00417.75
8.1.10.0030.00517.56
8.1.00.0000.00817.60
8.0.300.0070.00018.77
8.0.290.0030.00516.88
8.0.280.0070.00018.43
8.0.270.0040.00417.34
8.0.260.0000.00617.20
8.0.250.0030.00317.15
8.0.240.0030.00317.19
8.0.230.0040.00417.10
8.0.220.0070.00016.93
8.0.210.0050.00216.93
8.0.200.0030.00317.14
8.0.190.0070.00017.14
8.0.180.0020.00517.10
8.0.170.0050.00317.12
8.0.160.0030.00417.05
8.0.150.0030.00417.08
8.0.140.0060.00316.98
8.0.130.0000.00713.43
8.0.120.0000.00717.05
8.0.110.0000.00717.00
8.0.100.0070.00017.02
8.0.90.0070.00016.99
8.0.80.0090.00916.93
8.0.70.0050.00217.15
8.0.60.0040.00417.01
8.0.50.0000.00717.07
8.0.30.0170.00517.22
8.0.20.0140.00917.40
8.0.10.0040.00417.14
8.0.00.0090.00917.01
7.4.330.0050.00015.11
7.4.320.0070.00016.70
7.4.300.0000.00716.76
7.4.290.0060.00016.68
7.4.280.0120.00016.72
7.4.270.0030.00316.55
7.4.260.0030.00316.73
7.4.250.0000.00716.48
7.4.240.0020.00516.73
7.4.230.0070.00016.78
7.4.220.0130.01316.79
7.4.210.0110.00416.70
7.4.200.0000.00716.49
7.4.160.0070.00716.53
7.4.150.0070.01117.40
7.4.140.0180.00317.86
7.4.130.0100.00816.56
7.4.120.0130.00616.72
7.4.110.0140.00316.60
7.4.100.0070.01016.39
7.4.90.0130.01016.48
7.4.80.0060.01218.80
7.4.70.0070.01116.72
7.4.60.0030.01316.61
7.4.50.0050.00316.31
7.4.40.0080.00816.57
7.4.30.0040.01216.54
7.4.00.0110.00715.08
7.3.330.0060.00013.10
7.3.320.0020.00213.14
7.3.310.0030.00316.46
7.3.300.0040.00416.42
7.3.290.0270.00016.33
7.3.280.0100.00816.41
7.3.270.0060.01117.40
7.3.260.0060.01016.30
7.3.250.0110.01016.47
7.3.240.0100.00616.65
7.3.230.0120.01216.39
7.3.210.0130.00716.33
7.3.200.0090.01019.39
7.3.190.0170.00016.72
7.3.180.0100.00716.25
7.3.170.0030.01316.38
7.3.160.0100.01316.34
7.2.330.0190.00316.92
7.2.320.0060.01116.88
7.2.310.0040.01216.76
7.2.300.0110.00616.70
7.2.290.0070.01416.66
7.2.00.0030.01319.66
7.1.100.0000.01218.35
7.1.70.0040.00417.41
7.1.60.0070.01519.32
7.1.50.0070.01717.19
7.1.00.0100.07022.32
7.0.200.0040.00416.98
7.0.140.0130.06322.04
7.0.60.0100.08019.85
7.0.50.0070.08717.81
7.0.40.0100.04020.23
7.0.30.0300.06320.33
7.0.20.0270.07320.45
7.0.10.0100.06020.01
7.0.00.0030.05720.18
5.6.280.0000.07721.08
5.6.210.0030.07320.56
5.6.200.0030.04018.16
5.6.190.0070.04020.34
5.6.180.0370.04320.32
5.6.170.0200.04320.38
5.6.160.0070.06020.61
5.6.150.0030.05718.18
5.6.140.0070.05318.15
5.6.130.0070.08018.11
5.6.120.0100.08320.90
5.6.110.0070.04720.88
5.6.100.0030.07721.10
5.6.90.0070.05320.96
5.6.80.0030.04020.37
5.5.350.0130.07320.46
5.5.340.0130.04318.02
5.5.330.0000.07020.20
5.5.320.0270.04320.19
5.5.310.0300.07020.41
5.5.300.0070.03718.01
5.5.290.0030.07317.95
5.5.280.0100.08020.95
5.5.270.0000.08320.82
5.5.260.0230.07020.78
5.5.250.0100.06320.77
5.5.240.0130.07020.26
5.4.450.1030.06019.46
5.4.440.0970.05319.47
5.4.430.0830.05019.23
5.4.420.0670.00019.53
5.4.410.0630.00019.04
5.4.400.0630.00019.03
5.4.390.0630.00019.05
5.4.380.0500.07318.47
5.4.370.0470.07018.56
5.4.360.0230.05718.70
5.4.350.0370.04318.62
5.4.340.0330.05718.50
5.4.320.0070.03512.46
5.4.310.0060.04212.45
5.4.300.0040.03812.45
5.4.290.0100.03912.45
5.4.280.0070.03912.35
5.4.270.0090.03612.34
5.4.260.0040.04112.35
5.4.250.0070.04012.35
5.4.240.0040.04912.34
5.4.230.0040.03912.34
5.4.220.0030.03812.34
5.4.210.0010.03912.34
5.4.200.0070.03812.34
5.4.190.0040.03812.33
5.4.180.0060.04212.34
5.4.170.0050.03612.34
5.4.160.0080.03312.34
5.4.150.0090.03712.34
5.4.140.0040.03812.02
5.4.130.0080.03212.01
5.4.120.0050.03511.97
5.4.110.0070.03511.96
5.4.100.0050.03611.96
5.4.90.0060.03611.96
5.4.80.0040.03811.96
5.4.70.0040.03811.95
5.4.60.0070.03311.96
5.4.50.0060.03511.96
5.4.40.0070.03311.95
5.4.30.0060.04611.95
5.4.20.0050.03611.95
5.4.10.0050.03611.94
5.4.00.0060.03511.43
5.3.290.0060.03912.80
5.3.280.0070.03812.70
5.3.270.0090.04512.72
5.3.260.0060.03912.72
5.3.250.0070.03612.72
5.3.240.0030.03912.71
5.3.230.0060.04212.71
5.3.220.0090.03312.68
5.3.210.0050.04012.68
5.3.200.0060.03712.68
5.3.190.0080.04012.68
5.3.180.0060.03612.67
5.3.170.0050.03612.67
5.3.160.0080.03712.67
5.3.150.0080.04212.67
5.3.140.0080.04412.66
5.3.130.0070.04812.66
5.3.120.0050.04312.66
5.3.110.0050.04112.66
5.3.100.0040.03812.12
5.3.90.0080.03512.08
5.3.80.0070.03512.07
5.3.70.0030.03912.07
5.3.60.0070.03512.06
5.3.50.0040.04012.00
5.3.40.0100.03612.00
5.3.30.0080.03911.94
5.3.20.0050.03811.72
5.3.10.0050.03711.69
5.3.00.0080.04111.67
5.2.170.0060.0319.18
5.2.160.0040.0309.18
5.2.150.0050.0359.18
5.2.140.0020.0329.17
5.2.130.0080.0369.14
5.2.120.0050.0299.14
5.2.110.0060.0279.14
5.2.100.0010.0319.13
5.2.90.0070.0319.13
5.2.80.0010.0359.13
5.2.70.0060.0299.13
5.2.60.0040.0369.09
5.2.50.0060.0309.05
5.2.40.0030.0319.04
5.2.30.0080.0279.01
5.2.20.0010.0339.00
5.2.10.0030.0308.92
5.2.00.0050.0308.77
5.1.60.0050.0268.06
5.1.50.0010.0288.06
5.1.40.0080.0268.04
5.1.30.0030.0278.39
5.1.20.0050.0278.41
5.1.10.0040.0278.13
5.1.00.0040.0348.13
5.0.50.0060.0206.61
5.0.40.0050.0186.48
5.0.30.0040.0316.29
5.0.20.0040.0266.26
5.0.10.0030.0236.24
5.0.00.0020.0316.23
4.4.90.0020.0154.78
4.4.80.0040.0144.76
4.4.70.0040.0144.75
4.4.60.0020.0174.75
4.4.50.0020.0204.77
4.4.40.0020.0284.71
4.4.30.0010.0194.76
4.4.20.0030.0164.85
4.4.10.0040.0164.85
4.4.00.0010.0284.76
4.3.110.0040.0214.67
4.3.100.0040.0164.67
4.3.90.0050.0164.64
4.3.80.0060.0244.58
4.3.70.0030.0184.63
4.3.60.0030.0164.63
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0010.0213.27
4.3.20.0020.0163.25
4.3.10.0000.0203.22
4.3.00.0130.00716.39

preferences:
33.2 ms | 401 KiB | 5 Q