3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('content-type: text/html;charset=utf8'); mb_language('uni'); mb_internal_encoding('UTF-8'); ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="/font/stylesheet.css"/> <title>Roman Corstek To Cyrillic Corstek</title> </head> <body style="font-family: 'dejavusans', sans-serif"> <h1>Roman Corstek To Cyrillic Corstek</h1> <p>This webpage uses the font 'DejaVu Sans', unless your browser does not support web fonts (all modern web browsers do) because it renders Cyrillic Corstek Glyphs the best, and because it's free and doesn't come with a restrictive <a href="http://www.fontsquirrel.com/license/DejaVu-Sans">license</a>. If you would like to download a copy for yourself click <a href="http://www.fontsquirrel.com/fonts/DejaVu-Sans">here</a>.</p> <p>Enter your roman text below:</p> <form action="cyrillic-roman.php"> <textarea cols="50" rows="10" name="roman"> </textarea> <br/> <input type="submit"> </form> <?php if($_GET['roman'] != "") { ?> <h2>Conversion:</h2> <p><b>You entered:</b></p> <p><?php echo $_GET['roman']; ?></p> <p><b>Which in the Cyrillic Corstek Alphabet is:</b></p> <p> <?php $output = $_GET['roman']; //A With Macron $output = str_replace("Ā", "Ă", $output); $output = str_replace("ā", "ă", $output); //B $output = str_replace("B", "Б", $output); $output = str_replace("b", "б", $output); //V $output = str_replace("V", "В", $output); $output = str_replace("v", "в", $output); //G $output = str_replace("G", "Г", $output); $output = str_replace("g", "г", $output); //D $output = str_replace("D", "Д", $output); $output = str_replace("d", "д", $output); //Œ $output = str_replace("Œ", "Ё", $output); $output = str_replace("œ", "ё", $output); //Ž $output = str_replace("Ž", "Ж", $output); $output = str_replace("ž", "ж", $output); //Í $output = str_replace("Í", "И", $output); $output = str_replace("í", "и", $output); //J $output = str_replace("J", "Й", $output); $output = str_replace("j", "й", $output); //K $output = str_replace("K", "К", $output); $output = str_replace("k", "к", $output); //L $output = str_replace("L", "Л", $output); $output = str_replace("l", "л", $output); //M $output = str_replace("M", "М", $output); $output = str_replace("m", "м", $output); //N $output = str_replace("N", "Н", $output); $output = str_replace("n", "н", $output); //Ó $output = str_replace("Ó", "Ŏ", $output); $output = str_replace("ó", "ŏ", $output); //E $output = str_replace("E", "Э", $output); $output = str_replace("e", "э", $output); //Ŋ $output = str_replace("Ŋ", "Ң", $output); $output = str_replace("ŋ", "ң", $output); //Ñ $output = str_replace("Ñ", "Н̆", $output); $output = str_replace("ñ", "н̆", $output); //P $output = str_replace("P", "П", $output); $output = str_replace("p", "п", $output); //R $output = str_replace("R", "Р", $output); $output = str_replace("r", "р", $output); //Ů $output = str_replace("Ů", "У", $output); $output = str_replace("ů", "у", $output); //F $output = str_replace("F", "Ф", $output); $output = str_replace("f", "ф", $output); //S $output = str_replace("S", "Ц", $output); $output = str_replace("s", "ц", $output); //Č $output = str_repalce("Č", "Ч", $output); $output = str_replace("č", "ч", $output); //Š $output = str_replace("Š", "Ш", $output); $output = str_replace("š", "ш", $output); //H $output = str_replace("H", "Һ", $output); $output = str_replace("h", "һ", $output); //Þ $output = str_replace("Þ", "Ө", $output); $output = str_replace("þ", "ө", $output); //Q $output = str_replace("Q", "Қ", $output); $output = str_replace("q", "қ", $output); //U $output = str_replace("U", "Ұ", $output); $output = str_replace("u", "ұ", $output); //W $output = str_replace("W", "Ю", $output); $output = str_replace("w", "ю", $output); //Ď $output = str_replace("Ď", "Ь", $output); $output = str_replace("ď", "ь", $output); //Ť $output = str_replace("Ť", "Ъ", $output); $output = str_replace("ť", "ъ", $output); //Ī $output = str_replace("Ī", "V", $output); $output = str_replace("ī", "v", $output); //É $output = str_replace("É", "Ѣ", $output); $output = str_repalce("é", "ѣ", $output); //Y $output = str_replace("Y", "Е", $output); $output = str_replace("y", "е", $output); //Ğ $output = str_replace("Ğ", "Җ", $output); $output = str_repalce("ğ", "җ", $output); //Z $output = str_replace("Z", "З", $output); $output = str_replace("z", "з", $output); echo $output; ?> <?php } ?>\ </body> </html>

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.40.0060.01018.79
8.3.30.0090.00618.62
8.3.20.0030.00619.00
8.3.10.0130.00318.89
8.3.00.0060.00319.50
8.2.170.0070.00722.96
8.2.160.0140.00319.09
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0020.00520.88
8.2.110.0050.00520.99
8.2.100.0080.00417.97
8.2.90.0040.00419.38
8.2.80.0000.00817.97
8.2.70.0030.00617.88
8.2.60.0030.00618.05
8.2.50.0050.00318.07
8.2.40.0000.00918.22
8.2.30.0040.00417.95
8.2.20.0040.00717.91
8.2.10.0030.00517.88
8.2.00.0040.00417.76
8.1.270.0090.00023.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00422.25
8.1.230.0060.00622.69
8.1.220.0080.00017.77
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0080.00020.29
8.1.160.0040.00419.10
8.1.150.0080.00018.67
8.1.140.0050.00317.56
8.1.130.0070.00017.52
8.1.120.0000.00717.56
8.1.110.0070.00017.52
8.1.100.0050.00317.50
8.1.90.0000.00717.44
8.1.80.0040.00417.53
8.1.70.0050.00317.49
8.1.60.0040.00417.65
8.1.50.0080.00017.46
8.1.40.0030.00517.61
8.1.30.0000.00817.74
8.1.20.0030.00517.74
8.1.10.0060.00317.52
8.1.00.0030.00517.47
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.52
8.0.270.0000.00717.30
8.0.260.0030.00316.96
8.0.250.0000.00717.02
8.0.240.0000.00717.14
8.0.230.0050.00217.08
8.0.220.0040.00416.99
8.0.210.0040.00416.98
8.0.200.0040.00417.08
8.0.190.0070.00017.00
8.0.180.0100.00016.95
8.0.170.0040.00416.97
8.0.160.0050.00317.06
8.0.150.0040.00416.88
8.0.140.0070.00016.88
8.0.130.0050.00013.45
8.0.120.0040.00417.02
8.0.110.0000.00717.09
8.0.100.0040.00417.07
8.0.90.0040.00416.83
8.0.80.0160.00017.08
8.0.70.0050.00316.92
8.0.60.0000.00916.86
8.0.50.0060.00317.06
8.0.30.0170.00317.23
8.0.20.0130.00717.27
8.0.10.0040.00417.04
8.0.00.0070.01216.90
7.4.330.0000.00513.05
7.4.320.0030.00316.54
7.4.300.0020.00516.72
7.4.290.0070.00016.59
7.4.280.0030.00516.59
7.4.270.0070.00016.56
7.4.260.0050.00013.25
7.4.250.0000.00816.59
7.4.240.0030.00316.47
7.4.230.0030.00616.47
7.4.220.0030.01616.45
7.4.210.0100.01016.55
7.4.200.0000.00916.61
7.4.190.0000.00916.56
7.4.160.0110.00516.52
7.4.150.0070.01116.71
7.4.140.0110.00716.57
7.4.130.0170.00916.70
7.4.120.0110.00716.88
7.4.110.0090.01216.78
7.4.100.0110.01116.67
7.4.90.0120.00616.73
7.4.80.0120.00819.39
7.4.70.0040.01616.50
7.4.60.0160.00016.57
7.4.50.0000.00616.68
7.4.40.0100.00716.49
7.4.30.0130.00416.79
7.4.00.0030.00915.13
7.3.330.0030.00313.37
7.3.320.0050.00013.34
7.3.310.0030.00516.27
7.3.300.0050.00216.47
7.3.290.0070.00716.43
7.3.280.0090.00916.46
7.3.270.0180.00016.47
7.3.260.0080.00816.66
7.3.250.0110.01016.63
7.3.240.0070.01616.52
7.3.230.0060.01216.49
7.3.210.0100.00716.47
7.3.200.0130.00616.49
7.3.190.0110.01116.59
7.3.180.0140.00716.37
7.3.170.0060.01316.66
7.3.160.0080.01416.46
7.3.120.0080.00915.10
7.3.110.0000.01614.85
7.3.100.0070.00714.84
7.3.90.0030.00614.91
7.3.80.0030.01014.83
7.3.70.0070.00815.04
7.3.60.0030.00615.01
7.3.50.0000.01514.75
7.3.40.0080.00814.84
7.3.30.0060.00914.88
7.3.20.0060.00616.73
7.3.10.0060.00916.41
7.3.00.0000.01616.52
7.2.330.0100.00716.41
7.2.320.0130.01016.74
7.2.310.0130.01016.54
7.2.300.0150.00916.86
7.2.290.0090.00916.60
7.2.250.0130.00614.98
7.2.240.0000.01515.14
7.2.230.0000.01414.81
7.2.220.0040.01115.10
7.2.210.0060.00615.14
7.2.200.0030.01115.11
7.2.190.0120.00315.00
7.2.180.0000.01515.23
7.2.170.0060.01014.99
7.2.00.0070.00719.22
7.1.330.0040.01115.91
7.1.320.0080.00615.63
7.1.310.0000.01315.77
7.1.300.0130.00015.64
7.1.290.0130.00315.58
7.1.280.0060.00915.79
7.1.270.0110.00415.70
7.1.260.0120.00015.76
7.1.100.0300.00017.63
7.1.70.0070.00417.13
7.1.60.0090.01519.30
7.1.50.0070.00716.64
7.1.00.0070.07322.31
7.0.200.0050.00516.65
7.0.140.0030.05722.11
7.0.120.0000.07021.96
7.0.100.0070.03720.16
7.0.90.0000.08020.11
7.0.80.0000.05020.00
7.0.70.0070.03720.05
7.0.60.0000.04720.19
7.0.50.0030.05320.45
7.0.40.0070.08020.11
7.0.30.0070.08320.14
7.0.20.0130.07720.15
7.0.10.0070.05720.14
7.0.00.0100.04720.04
5.6.280.0170.06320.94
5.6.250.0130.03020.68
5.6.240.0000.04720.66
5.6.230.0000.05020.65
5.6.220.0030.05720.79
5.6.210.0030.04020.52
5.6.200.0030.05021.10
5.6.190.0030.05020.98
5.6.180.0030.08321.17
5.6.170.0070.07321.08
5.6.160.0130.06021.13
5.6.150.0170.07021.08
5.6.140.0100.07321.13
5.6.130.0030.08721.09
5.6.120.0170.07021.15
5.6.110.0130.06321.21
5.6.100.0170.07021.21
5.6.90.0100.05720.99
5.6.80.0170.06320.48
5.6.70.0130.07020.47
5.6.60.0130.03720.47
5.6.50.0170.06020.52
5.6.40.0200.06020.45
5.6.30.0200.06320.59
5.6.20.0100.04320.45
5.6.10.0100.07720.52
5.6.00.0130.07720.39
5.5.380.0000.04320.47
5.5.370.0070.03720.50
5.5.360.0070.03720.44
5.5.350.0030.04720.50
5.5.340.0070.04720.80
5.5.330.0100.03720.88
5.5.320.0070.07020.86
5.5.310.0070.04320.85
5.5.300.0070.05720.83
5.5.290.0100.07320.96
5.5.280.0070.07020.96
5.5.270.0070.07320.78
5.5.260.0000.08720.87
5.5.250.0100.07720.59
5.5.240.0070.04720.04
5.5.230.0100.07720.20
5.5.220.0070.07320.24
5.5.210.0070.05320.23
5.5.200.0100.07720.14
5.5.190.0070.08320.20
5.5.180.0070.07720.26
5.5.160.0070.08020.32
5.5.150.0100.03720.29
5.5.140.0130.07720.32
5.5.130.0030.07020.20
5.5.120.0070.08320.32
5.5.110.0130.07320.23
5.5.100.0070.05720.21
5.5.90.0100.07320.18
5.5.80.0070.07020.22
5.5.70.0130.06019.99
5.5.60.0100.06720.21
5.5.50.0030.07020.16
5.5.40.0100.08020.08
5.5.30.0130.07320.09
5.5.20.0000.08020.11
5.5.10.0100.07320.10
5.5.00.0070.08020.15
5.4.450.0100.05719.11
5.4.440.0070.07319.47
5.4.430.0070.07319.30
5.4.420.0070.03319.41
5.4.410.0070.03719.24
5.4.400.0030.07319.15
5.4.390.0100.04319.13
5.4.380.0070.04018.79
5.4.370.0130.07319.04
5.4.360.0100.07718.90
5.4.350.0070.08318.90
5.4.340.0130.06719.06
5.4.320.0070.07319.16
5.4.310.0030.08019.07
5.4.300.0130.04718.80
5.4.290.0030.05018.90
5.4.280.0070.05318.90
5.4.270.0070.07319.12
5.4.260.0170.06719.06
5.4.250.0100.04019.22
5.4.240.0000.05318.95
5.4.230.0130.06018.89
5.4.220.0070.08019.04
5.4.210.0070.07019.11
5.4.200.0070.05318.89
5.4.190.0030.07319.02
5.4.180.0030.06319.22
5.4.170.0100.07718.89
5.4.160.0030.07019.21
5.4.150.0170.07019.10
5.4.140.0070.06316.34
5.4.130.0070.05316.38
5.4.120.0100.07016.18
5.4.110.0070.07716.36
5.4.100.0100.07316.39
5.4.90.0130.04316.46
5.4.80.0030.07316.34
5.4.70.0070.07316.38
5.4.60.0070.06716.25
5.4.50.0070.07016.43
5.4.40.0030.04016.29
5.4.30.0070.07016.23
5.4.20.0030.07716.44
5.4.10.0030.04716.42
5.4.00.0030.06715.79
5.3.290.0200.06314.55
5.3.280.0100.07314.46
5.3.270.0130.07714.61
5.3.260.0130.06014.64
5.3.250.0100.07014.62
5.3.240.0100.04014.66
5.3.230.0070.07714.64
5.3.220.0070.07014.61
5.3.210.0070.06314.52
5.3.200.0000.05014.61
5.3.190.0130.06714.57
5.3.180.0070.04014.45
5.3.170.0100.06714.57
5.3.160.0030.07314.52
5.3.150.0030.07714.57
5.3.140.0100.06714.57
5.3.130.0070.06714.53
5.3.120.0070.05014.60
5.3.110.0070.07014.55
5.3.100.0170.07014.03
5.3.90.0070.07714.06
5.3.80.0170.04314.05
5.3.70.0130.06013.83
5.3.60.0130.06714.02
5.3.50.0100.07013.85
5.3.40.0100.05713.77
5.3.30.0130.06313.91
5.3.20.0030.07313.60
5.3.10.0070.04713.66
5.3.00.0030.04713.68

preferences:
48.81 ms | 400 KiB | 5 Q