3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "MOZAİK"; function transliterateTurkishChars($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 = transliterateTurkishChars($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.0150.00016.63
8.3.50.0120.00918.16
8.3.40.0030.01218.67
8.3.30.0110.00418.53
8.3.20.0040.00421.85
8.3.10.0050.00321.71
8.3.00.0080.00017.50
8.2.180.0090.00616.63
8.2.170.0120.00322.96
8.2.160.0080.00621.10
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00219.77
8.2.110.0000.00822.15
8.2.100.0060.00617.85
8.2.90.0090.00017.61
8.2.80.0030.00517.97
8.2.70.0000.00817.80
8.2.60.0000.00918.16
8.2.50.0040.00418.10
8.2.40.0000.00821.20
8.2.30.0000.00819.13
8.2.20.0040.00417.97
8.2.10.0000.00719.18
8.2.00.0030.00518.13
8.1.280.0200.00025.92
8.1.270.0050.00318.87
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.80
8.1.230.0030.00720.84
8.1.220.0080.00017.76
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.13
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0070.00018.89
8.1.150.0070.00018.89
8.1.140.0000.00718.80
8.1.130.0050.00320.01
8.1.120.0020.00517.47
8.1.110.0030.00517.35
8.1.100.0000.00717.51
8.1.90.0030.00317.43
8.1.80.0000.00917.45
8.1.70.0030.00617.48
8.1.60.0000.00817.67
8.1.50.0040.00417.46
8.1.40.0000.00917.54
8.1.30.0040.00417.65
8.1.20.0040.00417.61
8.1.10.0000.00817.55
8.1.00.0040.00417.52
8.0.300.0040.00420.09
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0030.00317.38
8.0.260.0060.00018.50
8.0.250.0030.00317.04
8.0.240.0070.00017.01
8.0.230.0000.00716.97
8.0.220.0070.00016.86
8.0.210.0000.00716.80
8.0.200.0030.00316.95
8.0.190.0000.00716.88
8.0.180.0000.00916.91
8.0.170.0030.00616.88
8.0.160.0030.00617.00
8.0.150.0000.00716.80
8.0.140.0050.00316.81
8.0.130.0030.00313.36
8.0.120.0000.00716.84
8.0.110.0000.00716.79
8.0.100.0000.00716.79
8.0.90.0040.00416.78
8.0.80.0120.00716.90
8.0.70.0000.00716.91
8.0.60.0000.00716.68
8.0.50.0070.00016.89
8.0.30.0060.01116.91
8.0.20.0110.00817.15
8.0.10.0040.00416.82
8.0.00.0120.00616.85
7.4.330.0050.00015.55
7.4.320.0070.00016.60
7.4.300.0040.00416.57
7.4.290.0090.00016.66
7.4.280.0040.00416.54
7.4.270.0070.00016.57
7.4.260.0070.00016.65
7.4.250.0000.00716.63
7.4.240.0030.00316.55
7.4.230.0000.00716.73
7.4.220.0000.00816.69
7.4.210.0090.00616.63
7.4.200.0050.00316.64
7.4.140.0140.00517.86
7.4.130.0030.01516.50
7.4.120.0060.01516.66
7.4.110.0070.01416.42
7.4.100.0170.00016.40
7.4.90.0120.00616.54
7.4.80.0080.00819.39
7.4.70.0110.00616.42
7.4.60.0120.00416.41
7.4.50.0040.01116.39
7.4.40.0070.01116.61
7.4.00.0070.00815.11
7.3.330.0000.00613.32
7.3.320.0000.00613.37
7.3.310.0040.00416.32
7.3.300.0000.00716.21
7.3.290.0000.00716.29
7.3.280.0060.00916.25
7.3.260.0140.00616.41
7.3.240.0120.00716.44
7.3.230.0100.00716.43
7.3.210.0130.00316.57
7.3.200.0060.01416.34
7.3.190.0120.00916.38
7.3.180.0040.01216.30
7.3.170.0130.00316.35
7.3.160.0030.01716.45
7.3.120.0080.00914.88
7.3.110.0080.01014.59
7.3.100.0130.00614.82
7.3.90.0050.00714.91
7.3.80.0070.00914.97
7.3.70.0050.01114.80
7.3.60.0140.00214.73
7.3.50.0050.01114.46
7.3.40.0080.00714.87
7.3.30.0070.00714.65
7.3.20.0060.00416.69
7.3.10.0190.00715.90
7.3.00.0160.00815.94
7.2.330.0060.01716.40
7.2.320.0030.01316.64
7.2.310.0090.00916.80
7.2.300.0120.00616.60
7.2.290.0070.01516.52
7.2.250.0070.01115.04
7.2.240.0070.01014.85
7.2.230.0030.01215.10
7.2.220.0000.01614.82
7.2.210.0030.01414.88
7.2.200.0080.00815.01
7.2.190.0050.01015.03
7.2.180.0020.01414.93
7.2.170.0080.00415.01
7.2.160.0030.01214.93
7.2.150.0100.00316.98
7.2.140.0040.00816.93
7.2.130.0250.00516.07
7.2.120.0280.00315.96
7.2.110.0220.00816.02
7.2.100.0320.00315.98
7.2.90.0260.01015.93
7.2.80.0270.00515.91
7.2.70.0300.00816.10
7.2.60.0280.00516.04
7.2.50.0280.00216.01
7.2.40.0250.00315.91
7.2.30.0300.01016.04
7.2.20.0330.00816.08
7.2.10.0230.00816.12
7.2.00.0230.01216.01
7.1.330.0060.01015.90
7.1.320.0060.00815.69
7.1.310.0060.00815.60
7.1.300.0030.01015.71
7.1.290.0110.00315.83
7.1.280.0060.00615.65
7.1.270.0050.00615.87
7.1.260.0030.01215.82
7.1.250.0630.00114.80
7.1.240.0070.00715.94
7.1.230.0070.00415.93
7.1.220.0040.00815.80
7.1.210.0060.00315.79
7.1.200.0060.00915.76
7.1.190.0070.00715.65
7.1.180.0100.00715.68
7.1.170.0090.00615.74
7.1.160.0040.00815.63
7.1.150.0060.00915.66
7.1.140.0040.00415.59
7.1.130.0070.00415.60
7.1.120.0040.01115.79
7.1.110.0000.00915.63
7.1.100.0000.00815.84
7.1.90.0000.01015.93
7.1.80.0120.00315.64
7.1.70.0030.00615.88
7.1.60.0050.00515.97
7.1.50.0000.01315.68
7.1.40.0030.01015.80
7.1.30.0030.00715.58
7.1.20.0030.01015.73
7.1.10.0070.00715.88
7.1.00.0060.00315.49

preferences:
69.37 ms | 400 KiB | 5 Q