3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'Арг.ен!тина ма,нит нег$ра', 'S!um summ$us mu,s', 'Арг.ен!тина ма,нит нег$ра'.'S!um summ$us mu,s', ]; foreach($strings as $string) { $string = mb_strtolower($string); $preparedString = preg_replace('/[^\p{Cyrillic}\p{Latin}]/u', '', $string); echo $string.' -> '.$preparedString."\n"; }

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.4.120.0100.00223.87
8.4.110.0080.00618.97
8.4.100.0140.00718.88
8.4.90.0110.00922.13
8.4.80.0130.00719.00
8.4.70.0080.00119.04
8.4.60.0040.00818.92
8.4.50.0100.01020.24
8.4.40.0090.00017.80
8.4.30.0070.01318.66
8.4.20.0170.00318.80
8.4.10.0120.00618.89
8.3.250.0030.00518.66
8.3.240.0090.00817.41
8.3.230.0100.00616.68
8.3.220.0120.00719.02
8.3.210.0100.00916.93
8.3.200.0040.00416.98
8.3.190.0130.00618.94
8.3.180.0100.00818.87
8.3.170.0120.00617.08
8.3.160.0120.00617.19
8.3.150.0060.01216.90
8.3.140.0080.00818.77
8.3.130.0080.00018.67
8.3.120.0110.00818.73
8.3.110.0100.00716.88
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0000.01016.75
8.3.70.0090.00916.75
8.3.60.0170.00318.32
8.3.50.0110.00823.74
8.3.40.0080.00819.12
8.3.30.0150.00018.92
8.3.20.0070.00020.90
8.3.10.0040.00420.35
8.3.00.0000.00720.64
8.2.290.0110.00820.28
8.2.280.0050.00418.55
8.2.270.0100.01017.12
8.2.260.0110.00717.04
8.2.250.0000.00818.78
8.2.240.0050.00519.13
8.2.230.0040.00420.94
8.2.220.0080.00037.54
8.2.210.0060.00926.77
8.2.200.0030.00617.13
8.2.190.0080.00816.88
8.2.180.0080.00618.54
8.2.170.0040.01122.96
8.2.160.0070.01020.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.73
8.2.110.0100.00020.87
8.2.100.0120.00018.28
8.2.90.0060.00318.00
8.2.80.0030.00618.79
8.2.70.0060.00317.75
8.2.60.0030.00617.62
8.2.50.0000.00817.75
8.2.40.0000.00817.93
8.2.30.0040.00419.29
8.2.20.0040.00418.08
8.2.10.0050.00319.48
8.2.00.0030.00519.40
8.1.330.0080.01122.03
8.1.320.0100.00918.00
8.1.310.0100.01016.49
8.1.300.0030.00616.22
8.1.290.0080.00018.88
8.1.280.0150.00025.92
8.1.270.0040.00422.06
8.1.260.0050.00326.35
8.1.250.0090.00028.09
8.1.240.0060.00323.95
8.1.230.0080.00420.85
8.1.220.0050.00318.81
8.1.210.0000.00818.77
8.1.200.0050.00317.73
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0040.00420.86
8.1.150.0000.00819.15
8.1.140.0040.00419.02
8.1.130.0050.00222.08
8.1.120.0000.00717.68
8.1.110.0040.00417.66
8.1.100.0000.00917.63
8.1.90.0000.00717.66
8.1.80.0080.00017.71
8.1.70.0040.00417.69
8.1.60.0040.00417.73
8.1.50.0040.00417.63
8.1.40.0000.00817.77
8.1.30.0030.00617.71
8.1.20.0040.00417.89
8.1.10.0020.00517.74
8.1.00.0040.00417.66
8.0.300.0040.00419.93
8.0.290.0040.00416.88
8.0.280.0070.00018.45
8.0.270.0000.00718.30
8.0.260.0000.00620.08
8.0.250.0070.00017.20
8.0.240.0000.00717.27
8.0.230.0030.00517.20
8.0.220.0040.00417.29
8.0.210.0000.00817.16
8.0.200.0050.00317.27
8.0.190.0030.00617.26
8.0.180.0000.00817.30
8.0.170.0080.00417.21
8.0.160.0030.00517.20
8.0.150.0050.00317.00
8.0.140.0060.00317.14
8.0.130.0030.00313.56
8.0.120.0080.00017.24
8.0.110.0040.00417.21
8.0.100.0000.00817.20
8.0.90.0000.00917.15
8.0.80.0090.00717.21
8.0.70.0000.00717.08
8.0.60.0000.00717.13
8.0.50.0070.00017.06
8.0.30.0040.01417.09
8.0.20.0140.00917.44
8.0.10.0000.00717.06
8.0.00.0170.00717.18
7.4.330.0050.00015.55
7.4.320.0030.00316.74
7.4.300.0000.00716.82
7.4.290.0070.00016.85
7.4.280.0000.00716.77
7.4.270.0040.00416.86
7.4.260.0000.00613.64
7.4.250.0040.00416.82
7.4.240.0020.00516.86
7.4.230.0040.00416.79
7.4.220.0000.00717.00
7.4.210.0090.00616.85
7.4.200.0070.00016.99
7.4.130.0060.01116.84
7.4.120.0060.01316.67
7.4.110.0100.00716.95
7.4.100.0090.00916.56
7.4.90.0070.01016.81
7.4.80.0060.01119.39
7.4.70.0130.00316.80
7.4.60.0060.01016.84
7.4.50.0110.00216.47
7.4.40.0060.01216.91
7.4.30.0080.00816.72
7.4.20.0080.01016.61
7.4.10.0060.01416.71
7.4.00.0090.00916.76
7.3.330.0030.00316.62
7.3.320.0000.00513.46
7.3.310.0040.00416.67
7.3.300.0070.00016.39
7.3.290.0050.01216.61
7.3.260.0160.00716.88
7.3.240.0090.00916.63
7.3.230.0090.00916.73
7.3.210.0100.00716.46
7.3.200.0060.01316.56
7.3.190.0090.00916.83
7.3.180.0100.00716.52
7.3.170.0130.00616.57
7.3.160.0080.00816.81
7.3.150.0050.01116.58
7.3.140.0110.00616.57
7.3.130.0070.01116.66
7.3.120.0070.01416.64
7.3.110.0090.01016.77
7.3.100.0120.00716.65
7.3.90.0050.00716.73
7.3.80.0070.01016.77
7.3.70.0110.00816.64
7.3.60.0100.01016.54
7.3.50.0080.01116.54
7.3.40.0060.01216.58
7.3.30.0090.00716.52
7.3.20.0120.00916.79
7.3.10.0090.01016.72
7.3.00.0220.00816.64
7.2.330.0170.00316.91
7.2.320.0100.00716.98
7.2.310.0080.00816.86
7.2.300.0120.01216.82
7.2.290.0070.01016.78
7.2.280.0070.01216.83
7.2.270.0130.00616.81
7.2.260.0120.00816.82
7.2.250.0080.01116.81
7.2.240.0080.01016.80
7.2.230.0070.01316.88
7.2.220.0070.01116.83
7.2.210.0090.00916.78
7.2.200.0100.00816.72
7.2.190.0100.00916.80
7.2.180.0090.00916.82
7.2.170.0090.01016.90
7.2.160.0080.01316.88
7.2.150.0110.01016.88
7.2.140.0080.01016.90
7.2.130.0080.01516.79
7.2.120.0160.00916.88
7.2.110.0110.00916.87
7.2.100.0100.01016.89
7.2.90.0070.01116.82
7.2.80.0070.01116.80
7.2.70.0120.01016.96
7.2.60.0130.01016.77
7.2.50.0120.00816.87
7.2.40.0110.00716.91
7.2.30.0120.00617.01
7.2.20.0070.01216.84
7.2.10.0110.01116.76
7.2.00.0160.00416.79
7.1.330.0080.00915.70
7.1.320.0110.00815.71
7.1.310.0090.01315.62
7.1.300.0100.00915.83
7.1.290.0120.00715.82
7.1.280.0130.00615.71
7.1.270.0100.00815.63
7.1.260.0090.01115.64
7.1.250.0180.01515.74
7.1.240.0120.00915.66
7.1.230.0060.01315.61
7.1.220.0110.00615.62
7.1.210.0100.00715.71
7.1.200.0150.00315.56
7.1.190.0090.01515.55
7.1.180.0110.00815.74
7.1.170.0110.01215.76
7.1.160.0100.00715.70
7.1.150.0090.01015.71
7.1.140.0170.00715.70
7.1.130.0090.01215.81
7.1.120.0080.01015.66
7.1.110.0080.01015.72
7.1.100.0080.01415.74
7.1.90.0100.01115.82
7.1.80.0120.00615.74
7.1.70.0140.00915.77
7.1.60.0120.00715.76
7.1.50.0080.01115.63
7.1.40.0170.00415.87
7.1.30.0110.01215.80
7.1.20.0130.00515.75
7.1.10.0110.00915.78
7.1.00.0130.00915.63
7.0.330.0110.00915.44
7.0.320.0160.00315.52
7.0.310.0140.00715.53
7.0.300.0120.01215.24
7.0.290.0130.00515.51
7.0.280.0090.01115.34
7.0.270.0360.01015.48
7.0.260.0090.00915.31
7.0.250.0090.00815.31
7.0.240.0110.00915.52
7.0.230.0110.00815.43
7.0.220.0140.00715.44
7.0.210.0090.00915.42
7.0.200.0100.00815.50
7.0.190.0150.00415.57
7.0.180.0160.00615.55
7.0.170.0080.01215.45
7.0.160.0120.01115.39
7.0.150.0120.00715.38
7.0.140.0110.00615.48
7.0.130.0150.00615.38
7.0.120.0140.00715.42
7.0.110.0120.01015.48
7.0.100.0220.00715.34
7.0.90.0160.00515.32
7.0.80.0160.01315.29
7.0.70.0170.00515.23
7.0.60.0080.01215.33
7.0.50.0120.00915.50
7.0.40.0140.00615.24
7.0.30.0130.01015.29
7.0.20.0180.00915.37
7.0.10.0190.00315.40
7.0.00.0140.01015.38
5.6.400.0190.00615.96
5.6.390.0070.01416.04
5.6.380.0120.01415.99
5.6.370.0130.01315.96
5.6.360.0100.01216.03
5.6.350.0090.00916.03
5.6.340.0090.01115.83
5.6.330.0090.00915.96
5.6.320.0140.00815.98
5.6.310.0120.01015.93
5.6.300.0100.01115.95
5.6.290.0130.00815.99
5.6.280.0060.01616.00
5.6.270.0120.00816.16
5.6.260.0140.00915.87
5.6.250.0120.01115.96
5.6.240.0120.01115.94
5.6.230.0180.01116.01
5.6.220.0130.01016.04
5.6.210.0170.00816.03
5.6.200.0090.01316.10
5.6.190.0050.02015.99
5.6.180.0080.01515.98
5.6.170.0140.00815.93
5.6.160.0140.00816.04
5.6.150.0080.01215.82
5.6.140.0110.01715.96
5.6.130.0130.01516.05
5.6.120.0120.01115.89
5.6.110.0160.01115.96
5.6.100.0150.01115.94
5.6.90.0140.00916.00
5.6.80.0110.01315.78
5.6.70.0120.01016.04
5.6.60.0090.01215.88
5.6.50.0140.01215.89
5.6.40.0170.00915.70
5.6.30.0130.01115.94
5.6.20.0180.01015.76
5.6.10.0080.01215.66
5.6.00.0100.01716.08
5.5.380.0120.01316.04
5.5.370.0140.01415.82
5.5.360.0110.01015.81
5.5.350.0140.00715.86
5.5.340.0140.00915.78
5.5.330.0140.01116.17
5.5.320.0140.01315.90
5.5.310.0080.01315.76
5.5.300.0130.01315.87
5.5.290.0170.01015.78
5.5.280.0100.01215.84
5.5.270.0120.00715.79
5.5.260.0130.01215.78
5.5.250.0110.01115.86
5.5.240.0150.01015.83
5.5.230.0110.01315.80
5.5.220.0150.00915.76
5.5.210.0190.01115.96
5.5.200.0130.01115.74
5.5.190.0110.01515.88
5.5.180.0110.01415.84
5.5.170.0060.01515.98
5.5.160.0100.01615.83
5.5.150.0100.01115.89
5.5.140.0090.01715.88
5.5.130.0180.00815.80
5.5.120.0170.00816.10
5.5.110.0110.01315.91
5.5.100.0080.01315.81
5.5.90.0140.00816.02
5.5.80.0110.01015.91
5.5.70.0100.01615.93
5.5.60.0150.01015.85
5.5.50.0190.00615.85
5.5.40.0180.00916.05
5.5.30.0170.00715.99
5.5.20.0130.01216.01
5.5.10.0090.01115.72
5.5.00.0140.01215.90
5.4.450.0080.01312.57
5.4.440.0060.01012.74
5.4.430.0140.00112.74
5.4.420.0100.00512.91
5.4.410.0130.00812.78
5.4.400.0100.00712.66
5.4.390.0080.01112.50
5.4.380.0110.00812.82
5.4.370.0100.01212.68
5.4.360.0090.01312.68
5.4.350.0140.00812.70
5.4.340.0070.00912.73
5.4.330.0110.00912.74
5.4.320.0130.00812.69
5.4.310.0130.00812.72
5.4.300.0120.00612.85
5.4.290.0080.01112.66
5.4.280.0090.00912.66
5.4.270.0100.00812.71
5.4.260.0160.00412.66
5.4.250.0110.00812.67
5.4.240.0100.00612.59
5.4.230.0120.00512.90
5.4.220.0110.01012.74
5.4.210.0130.00712.69
5.4.200.0090.00812.81
5.4.190.0110.00612.71
5.4.180.0130.00612.80
5.4.170.0110.01112.62
5.4.160.0130.00912.40
5.4.150.0130.00812.77
5.4.140.0040.01312.60
5.4.130.0110.00512.64
5.4.120.0070.01212.52
5.4.110.0060.01312.57
5.4.100.0080.00912.62
5.4.90.0110.00912.71
5.4.80.0060.00912.65
5.4.70.0070.00912.66
5.4.60.0130.00712.68
5.4.50.0130.01012.62
5.4.40.0110.00812.74
5.4.30.0110.00512.71
5.4.20.0140.00512.60
5.4.10.0090.00712.69
5.4.00.0150.00412.72
5.3.290.0080.00912.74
5.3.280.0080.01012.65
5.3.270.0070.01312.85
5.3.260.0080.01112.84
5.3.250.0120.00812.77
5.3.240.0120.00912.58
5.3.230.0090.00812.56
5.3.220.0100.00812.64
5.3.210.0070.01112.68
5.3.200.0050.01212.67
5.3.190.0100.00812.74
5.3.180.0090.00912.79
5.3.170.0070.00912.80
5.3.160.0100.00912.73
5.3.150.0110.00812.87
5.3.140.0050.01112.70
5.3.130.0100.00712.75
5.3.120.0050.01312.80
5.3.110.0080.00912.75
5.3.100.0110.00912.75
5.3.90.0130.00912.89
5.3.80.0090.00912.67
5.3.70.0090.00812.64
5.3.60.0070.01012.63
5.3.50.0080.01012.70
5.3.40.0120.00912.63
5.3.30.0060.01412.71
5.3.20.0120.00712.70
5.3.10.0130.00612.38
5.3.00.0070.01312.63
5.2.170.0090.00711.80
5.2.160.0120.00511.78
5.2.150.0070.00711.88
5.2.140.0110.00711.74
5.2.130.0080.00911.77
5.2.120.0060.01011.77
5.2.110.0050.01011.76
5.2.100.0090.00611.73
5.2.90.0040.01311.64
5.2.80.0060.01111.67
5.2.70.0110.00711.68
5.2.60.0050.01011.52
5.2.50.0080.00811.74
5.2.40.0080.00711.82
5.2.30.0120.00511.63
5.2.20.0060.00911.52
5.2.10.0040.00911.47
5.2.00.0090.00311.51
5.1.60.0070.00611.37
5.1.50.0080.00611.37
5.1.40.0090.00411.37
5.1.30.0120.00311.37
5.1.20.0090.00611.37
5.1.10.0080.00811.37
5.1.00.0090.00511.37
5.0.50.0070.00611.37
5.0.40.0030.01011.37
5.0.30.0050.00911.37
5.0.20.0100.00311.37
5.0.10.0030.01011.37
5.0.00.0070.00611.37
4.4.90.0060.00111.37
4.4.80.0050.00311.37
4.4.70.0070.00111.37
4.4.60.0070.00111.37
4.4.50.0050.00211.37
4.4.40.0010.00511.37
4.4.30.0010.00511.37
4.4.20.0050.00411.37
4.4.10.0030.00511.37
4.4.00.0060.00211.37
4.3.110.0030.00711.37
4.3.100.0040.00411.37
4.3.90.0040.00411.37
4.3.80.0050.00211.37
4.3.70.0050.00211.37
4.3.60.0060.00011.37
4.3.50.0050.00511.37
4.3.40.0050.00211.37
4.3.30.0020.00411.37
4.3.20.0060.00211.37
4.3.10.0070.00011.37
4.3.00.0020.00411.37

preferences:
169.63 ms | 403 KiB | 5 Q