3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "MOZAİK"; function TurkishFix($inputText) { $search = array('ç', 'Ç', 'ğ', 'Ğ', 'ı', 'İ', 'ö', 'Ö', 'ş', 'Ş', 'ü', 'Ü'); $replace = array('c', 'C', 'g', 'G', 'i', 'I', 'o', 'O', 's', 'S', 'u', 'U'); $outputText=str_replace($search, $replace, $inputText); return $outputText; } $string = TurkishFix($var); echo mb_strtolower($string);

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.0110.00418.18
8.3.50.0140.00717.98
8.3.40.0030.01718.71
8.3.30.0000.01518.54
8.3.20.0080.00021.82
8.3.10.0040.00421.71
8.3.00.0030.00517.46
8.2.180.0120.00916.63
8.2.170.0110.00322.96
8.2.160.0030.01221.25
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00718.09
8.2.120.0080.00026.35
8.2.110.0060.00319.31
8.2.100.0060.00617.91
8.2.90.0060.00317.75
8.2.80.0000.00818.73
8.2.70.0040.00417.63
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0030.00618.14
8.2.20.0040.00418.11
8.2.10.0040.00419.20
8.2.00.0050.00218.06
8.1.270.0040.00418.82
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00719.52
8.1.230.0080.00420.95
8.1.220.0060.00317.79
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0040.00418.95
8.1.150.0050.00218.89
8.1.140.0000.00718.89
8.1.130.0000.00820.08
8.1.120.0000.00717.49
8.1.110.0000.00717.49
8.1.100.0030.00617.48
8.1.90.0050.00317.38
8.1.80.0030.00717.38
8.1.70.0000.00717.39
8.1.60.0030.00517.61
8.1.50.0000.00817.51
8.1.40.0030.00617.61
8.1.30.0000.00817.73
8.1.20.0030.00617.63
8.1.10.0000.00717.51
8.1.00.0040.00417.44
8.0.300.0000.00918.77
8.0.290.0000.00716.75
8.0.280.0030.00618.48
8.0.270.0000.00717.23
8.0.260.0040.00418.55
8.0.250.0000.00716.94
8.0.240.0030.00516.88
8.0.230.0040.00416.96
8.0.220.0000.00716.88
8.0.210.0040.00416.96
8.0.200.0040.00416.84
8.0.190.0070.00016.91
8.0.180.0000.00716.91
8.0.170.0060.00316.84
8.0.160.0070.00416.90
8.0.150.0070.00016.86
8.0.140.0050.00216.82
8.0.130.0030.00313.28
8.0.120.0030.00516.82
8.0.110.0000.00816.88
8.0.100.0050.00316.84
8.0.90.0050.00216.76
8.0.80.0080.01016.88
8.0.70.0110.00416.92
8.0.60.0140.00016.86
8.0.50.0060.00916.77
8.0.30.0110.00616.91
8.0.20.0110.00816.93
8.0.10.0070.00816.95
8.0.00.0090.00916.90
7.4.330.0000.00515.55
7.4.320.0000.00616.64
7.4.300.0000.00616.48
7.4.290.0070.00316.51
7.4.280.0000.00916.65
7.4.270.0030.00316.62
7.4.260.0030.00316.66
7.4.250.0000.00816.49
7.4.240.0000.00716.50
7.4.230.0000.00816.67
7.4.220.0000.00816.78
7.4.210.0020.01216.73
7.4.200.0090.00616.69
7.4.190.0070.00716.54
7.4.180.0110.00316.66
7.4.160.0080.00816.56
7.4.150.0070.01116.64
7.4.140.0080.00716.99
7.4.130.0040.01116.46
7.4.120.0070.00816.58
7.4.110.0050.01116.58
7.4.100.0030.01316.62
7.4.90.0090.00816.43
7.4.80.0090.00817.54
7.4.70.0100.00916.60
7.4.60.0090.00816.58
7.4.50.0080.01016.51
7.4.40.0060.01216.42
7.4.30.0080.00916.49
7.4.20.0060.01116.52
7.4.10.0100.00715.88
7.4.00.0060.01115.76
7.3.330.0000.00513.16
7.3.320.0030.00313.23
7.3.310.0040.00416.19
7.3.300.0040.00416.16
7.3.290.0000.00716.24
7.3.280.0070.00916.29
7.3.270.0080.00816.31
7.3.260.0090.01016.36
7.3.250.0060.00816.23
7.3.240.0110.00716.43
7.3.230.0060.00916.36
7.3.220.0050.01116.20
7.3.210.0100.00716.12
7.3.200.0080.00916.26
7.3.190.0080.00916.15
7.3.180.0060.00816.30
7.3.170.0090.00816.20
7.3.160.0100.00816.22
7.3.150.0120.00716.21
7.3.140.0020.01216.17
7.3.130.0060.00915.69
7.3.120.0100.00615.71
7.3.110.0020.01315.65
7.3.100.0010.01415.76
7.3.90.0070.00815.93
7.3.80.0090.00515.50
7.3.70.0060.00815.58
7.3.60.0050.00915.61
7.3.50.0090.00515.54
7.3.40.0060.00915.53
7.3.30.0080.00615.63
7.3.20.0120.00615.98
7.3.10.0380.00615.74
7.3.00.0130.00815.72
7.2.340.0150.01116.36
7.2.330.0130.01116.49
7.2.320.0130.00916.47
7.2.310.0130.01016.37
7.2.300.0160.01116.41
7.2.290.0150.01216.46
7.2.280.0390.01116.37
7.2.270.0240.00816.34
7.2.260.0200.00615.99
7.2.250.0130.01015.95
7.2.240.0160.00715.95
7.2.230.0150.00915.81
7.2.220.0160.00715.89
7.2.210.0120.00915.73
7.2.200.0130.00715.75
7.2.190.0180.00715.79
7.2.180.0130.01015.76
7.2.170.0140.00915.78
7.2.160.0120.00815.73
7.2.150.0130.00916.24
7.2.140.0160.00516.22
7.2.130.0190.01016.14
7.2.120.0200.00816.06
7.2.110.0200.01016.06
7.2.100.0190.00816.13
7.2.90.0220.00616.03
7.2.80.0190.00916.00
7.2.70.0180.00715.95
7.2.60.0200.00616.00
7.2.50.0250.00415.99
7.2.40.0220.00616.14
7.2.30.0180.00716.06
7.2.20.0210.00615.98
7.2.10.0220.00615.99
7.2.00.0200.00816.09
7.1.330.0230.00615.59
7.1.320.0320.00815.60
7.1.310.0130.00815.23
7.1.300.0120.01015.22
7.1.290.0150.00815.23
7.1.280.0110.00915.12
7.1.270.0160.01015.15
7.1.260.0130.00715.17
7.1.250.0220.00814.88
7.1.240.0360.00815.19
7.1.230.0160.00815.14
7.1.220.0140.00815.16
7.1.210.0140.00815.16
7.1.200.0100.01215.13
7.1.190.0130.00815.12
7.1.180.0120.00915.17
7.1.170.0140.00715.13
7.1.160.0150.00715.11
7.1.150.0140.00915.10
7.1.140.0120.01015.14
7.1.130.0150.00915.13
7.1.120.0160.00815.14
7.1.110.0150.00815.21
7.1.100.0160.00515.17
7.1.90.0260.00815.16
7.1.80.0130.00915.23
7.1.70.0140.01015.07
7.1.60.0130.01015.17
7.1.50.0150.00615.21
7.1.40.0140.00815.26
7.1.30.0110.01215.22
7.1.20.0130.00715.20
7.1.10.0160.00615.15
7.1.00.0140.00815.22
5.4.450.0070.00812.84

preferences:
68.7 ms | 400 KiB | 5 Q