3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conta = '123 123.321-23'; // Casa tudo que não é numero \D e substitui por nada echo preg_replace('/\D/', '', $conta);

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.140.0110.00817.10
8.3.130.0080.00018.32
8.3.120.0080.00020.66
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0030.00619.36
8.3.70.0140.00716.63
8.3.60.0160.00018.30
8.3.50.0170.01517.17
8.3.40.0040.01119.09
8.3.30.0110.00318.66
8.3.20.0040.00419.15
8.3.10.0040.00420.91
8.3.00.0000.00819.40
8.2.250.0000.00916.83
8.2.240.0120.00317.03
8.2.230.0050.00522.58
8.2.220.0040.00437.54
8.2.210.0140.00026.77
8.2.200.0060.00318.88
8.2.190.0110.00418.41
8.2.180.0120.00318.36
8.2.170.0120.00322.96
8.2.160.0140.00420.94
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.95
8.2.120.0040.00426.35
8.2.110.0070.00421.05
8.2.100.0070.00418.03
8.2.90.0040.00420.31
8.2.80.0030.00520.48
8.2.70.0000.00917.75
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00519.88
8.2.30.0050.00318.06
8.2.20.0040.00418.08
8.2.10.0080.00017.89
8.2.00.0030.00519.27
8.1.300.0150.00318.56
8.1.290.0090.00030.84
8.1.280.0130.00725.92
8.1.270.0080.00023.97
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.18
8.1.230.0040.00721.04
8.1.220.0060.00317.79
8.1.210.0030.00618.91
8.1.200.0080.00317.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00518.73
8.1.160.0040.00418.89
8.1.150.0040.00418.73
8.1.140.0000.00717.64
8.1.130.0000.00719.02
8.1.120.0070.00017.53
8.1.110.0000.00817.46
8.1.100.0000.00717.55
8.1.90.0000.00817.51
8.1.80.0000.00817.61
8.1.70.0030.00317.47
8.1.60.0040.00417.73
8.1.50.0040.00417.61
8.1.40.0040.00717.62
8.1.30.0050.00317.72
8.1.20.0030.00617.72
8.1.10.0040.00417.63
8.1.00.0050.00517.45
8.0.300.0000.00720.04
8.0.290.0080.00016.88
8.0.280.0070.00018.46
8.0.270.0070.00017.15
8.0.260.0030.00317.32
8.0.250.0000.00817.10
8.0.240.0040.00417.07
8.0.230.0030.00317.03
8.0.220.0000.00716.93
8.0.210.0030.00316.89
8.0.200.0060.00016.98
8.0.190.0000.00817.01
8.0.180.0070.00416.85
8.0.170.0040.00417.00
8.0.160.0000.00816.95
8.0.150.0030.00716.85
8.0.140.0030.00516.86
8.0.130.0030.00313.35
8.0.120.0040.00416.84
8.0.110.0070.00016.78
8.0.100.0000.00716.81
8.0.90.0080.00016.85
8.0.80.0090.01116.96
8.0.70.0050.00216.81
8.0.60.0050.00316.84
8.0.50.0040.00416.88
8.0.30.0130.00417.04
8.0.20.0090.01017.49
8.0.10.0000.00717.08
8.0.00.0100.01016.89
7.4.330.0040.00015.55
7.4.320.0000.00616.57
7.4.300.0030.00316.57
7.4.290.0000.00716.65
7.4.280.0000.00716.78
7.4.270.0030.00316.65
7.4.260.0060.00316.50
7.4.250.0040.00416.77
7.4.240.0030.00316.76
7.4.230.0070.00016.63
7.4.220.0000.00716.83
7.4.210.0060.01116.73
7.4.200.0030.00316.55
7.4.160.0100.00616.60
7.4.140.0100.00917.86
7.4.130.0120.00616.49
7.4.120.0090.00816.65
7.4.110.0100.00716.49
7.4.100.0070.01616.43
7.4.90.0170.00016.59
7.4.80.0070.01119.39
7.4.70.0030.01316.39
7.4.60.0150.00916.43
7.4.50.0030.01216.48
7.4.40.0060.01016.59
7.4.00.0110.00715.25
7.3.330.0050.00013.18
7.3.320.0040.00413.21
7.3.310.0000.00716.37
7.3.300.0030.00316.30
7.3.290.0000.00616.30
7.3.280.0050.01316.27
7.3.260.0060.01216.33
7.3.240.0070.00916.38
7.3.230.0140.00716.73
7.3.210.0060.01116.39
7.3.200.0040.01416.30
7.3.190.0130.00316.58
7.3.180.0140.00316.55
7.3.170.0120.00416.57
7.3.160.0070.01016.39
7.3.00.0080.00316.65
7.2.330.0070.01416.67
7.2.320.0130.00616.77
7.2.310.0130.00416.42
7.2.300.0090.00916.49
7.2.290.0150.00716.77
7.2.130.0040.01117.11
7.2.120.0050.00517.15
7.2.110.0060.00616.98
7.2.100.0060.00616.63
7.2.90.0040.00816.99
7.2.80.0090.00617.02
7.2.70.0040.00716.87
7.2.60.4940.00516.14
7.2.50.1570.00616.12
7.2.40.0320.00816.29
7.2.30.0090.01016.31
7.2.20.0100.00916.15
7.2.10.0080.00716.17
7.2.00.0070.01116.25
7.1.250.0070.00315.78
7.1.240.0000.00815.63
7.1.230.0030.00715.98
7.1.220.0030.00715.67
7.1.210.0040.00816.03
7.1.200.0030.00815.74
7.1.190.0040.00415.77
7.1.180.0030.00615.85
7.1.170.0650.00614.95
7.1.160.0190.01116.38
7.1.150.0130.00916.50
7.1.140.0100.00616.24
7.1.130.0090.00816.39
7.1.120.0170.00916.41
7.1.110.0240.01016.20
7.1.100.5260.01016.05
7.1.90.6480.01116.26
7.1.80.4740.01016.22
7.1.70.4200.00615.54
7.1.60.3990.01324.66
7.1.50.4920.01424.29
7.1.40.3570.00924.29
7.1.30.3290.01124.22
7.1.20.4360.00924.45
7.1.10.4670.00715.35
7.1.00.2940.00715.46
7.0.330.0040.00714.97
5.6.380.0060.00614.26

preferences:
15.29 ms | 403 KiB | 5 Q