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 $_GET["roman"] = "qwertzuiopasghjklyxvbnmm"; 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.60.0090.00618.56
8.3.50.0180.00521.98
8.3.40.0090.00619.09
8.3.30.0070.00719.32
8.3.20.0040.00420.46
8.3.10.0000.00823.65
8.3.00.0080.00020.81
8.2.180.0120.00317.00
8.2.170.0110.00422.96
8.2.160.0100.00322.14
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0080.00019.49
8.2.110.0060.00320.46
8.2.100.0110.00017.97
8.2.90.0060.00318.27
8.2.80.0000.00818.15
8.2.70.0040.00417.88
8.2.60.0030.00618.29
8.2.50.0040.00418.07
8.2.40.0040.00718.47
8.2.30.0060.00318.21
8.2.20.0000.00817.80
8.2.10.0040.00418.01
8.2.00.0030.00517.89
8.1.280.0100.01025.92
8.1.270.0040.00423.84
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00022.31
8.1.230.0080.00421.02
8.1.220.0060.00317.88
8.1.210.0030.00519.12
8.1.200.0000.01017.63
8.1.190.0040.00417.68
8.1.180.0000.00818.10
8.1.170.0030.00618.84
8.1.160.0080.00022.19
8.1.150.0040.00418.79
8.1.140.0080.00017.65
8.1.130.0080.00017.96
8.1.120.0040.00417.64
8.1.110.0000.00717.58
8.1.100.0000.00717.50
8.1.90.0070.00017.63
8.1.80.0000.00817.61
8.1.70.0000.00717.56
8.1.60.0030.00617.74
8.1.50.0050.00317.67
8.1.40.0000.00817.70
8.1.30.0090.00017.68
8.1.20.0070.00017.64
8.1.10.0030.00517.59
8.1.00.0000.00817.63
8.0.300.0050.00220.16
8.0.290.0040.00417.29
8.0.280.0040.00418.65
8.0.270.0000.00717.27
8.0.260.0000.00616.96
8.0.250.0040.00417.18
8.0.240.0000.00717.19
8.0.230.0000.00817.18
8.0.220.0070.00017.14
8.0.210.0040.00416.98
8.0.200.0030.00317.14
8.0.190.0000.00717.16
8.0.180.0000.00716.97
8.0.170.0040.00417.13
8.0.160.0080.00017.10
8.0.150.0000.00717.08
8.0.140.0050.00217.04
8.0.130.0000.00613.61
8.0.120.0040.00417.01
8.0.110.0040.00417.07
8.0.100.0040.00416.97
8.0.90.0000.00717.10
8.0.80.0100.00717.13
8.0.70.0040.00417.05
8.0.60.0040.00417.16
8.0.50.0040.00416.98
8.0.30.0110.00917.29
8.0.20.0120.01017.40
8.0.10.0050.00317.24
8.0.00.0160.00516.93
7.4.330.0020.00215.03
7.4.320.0000.00716.70
7.4.300.0030.00316.65
7.4.290.0030.00716.55
7.4.280.0030.00316.65
7.4.270.0000.00716.73
7.4.260.0000.00716.59
7.4.250.0040.00416.66
7.4.240.0040.00416.65
7.4.230.0050.00216.84
7.4.220.0060.01216.79
7.4.210.0080.00716.67
7.4.200.0030.00316.54
7.4.190.0040.00416.52
7.4.160.0030.01216.67
7.4.150.0160.00317.40
7.4.140.0100.00917.86
7.4.130.0090.00816.73
7.4.120.0120.00616.67
7.4.110.0060.01116.64
7.4.100.0030.01716.91
7.4.90.0110.00616.53
7.4.80.0070.01019.39
7.4.70.0100.01316.67
7.4.60.0030.01316.65
7.4.50.0000.00816.51
7.4.40.0000.01222.77
7.4.30.0030.01416.50
7.4.10.0070.01115.25
7.4.00.0040.01215.21
7.3.330.0000.00513.21
7.3.320.0060.00013.27
7.3.310.0040.00416.52
7.3.300.0030.00316.32
7.3.290.0030.01216.42
7.3.280.0060.01016.48
7.3.270.0090.00917.40
7.3.260.0040.01316.42
7.3.250.0140.00716.48
7.3.240.0080.01116.57
7.3.230.0100.00716.39
7.3.210.0100.01616.59
7.3.200.0040.01716.72
7.3.190.0100.01316.70
7.3.180.0060.01016.66
7.3.170.0030.01316.54
7.3.160.0060.00916.41
7.3.130.0100.01015.06
7.3.120.0080.01014.92
7.3.110.0060.01315.01
7.3.100.0060.00615.08
7.3.90.0120.00314.96
7.3.80.0070.00715.07
7.3.70.0080.00714.81
7.3.60.0030.00714.82
7.3.50.0060.00814.88
7.3.40.0070.00414.90
7.3.30.0040.00814.85
7.3.20.0070.00716.66
7.3.10.0050.01016.75
7.3.00.0050.00516.62
7.2.330.0040.01416.93
7.2.320.0080.00816.65
7.2.310.0110.00716.79
7.2.300.0060.00916.69
7.2.290.0130.00316.96
7.2.260.0040.01515.32
7.2.250.0020.01415.16
7.2.240.0020.01715.30
7.2.230.0080.00815.07
7.2.220.0080.01015.09
7.2.210.0080.00615.20
7.2.200.0050.01215.06
7.2.190.0050.01015.14
7.2.180.0090.00614.99
7.2.170.0030.01315.32
7.2.160.0060.00615.25
7.2.150.0040.00717.13
7.2.140.0040.00717.11
7.2.130.0090.00016.77
7.2.120.0000.01217.03
7.2.110.0110.00316.77
7.2.100.0000.01217.06
7.2.90.0000.01216.97
7.2.80.0000.00916.55
7.2.70.0110.00416.94
7.2.60.0110.00316.85
7.2.50.0100.00717.01
7.2.40.0090.00617.02
7.2.30.0040.00917.04
7.2.20.0060.00616.95
7.2.10.0060.00316.65
7.2.00.0130.01218.23
7.1.330.0090.00415.71
7.1.320.0100.00615.86
7.1.310.0060.00715.75
7.1.300.0100.00315.82
7.1.290.0070.00515.71
7.1.280.0060.00715.82
7.1.270.0050.00715.69
7.1.260.0050.00715.89
7.1.250.0080.00315.83
7.1.240.0030.00715.80
7.1.230.0060.00615.73
7.1.220.0030.01315.83
7.1.210.0030.01015.88
7.1.200.0070.00715.77
7.1.190.0050.00515.94
7.1.180.0030.01315.70
7.1.170.0040.01215.83
7.1.160.0100.00315.95
7.1.150.0040.00815.80
7.1.140.0040.00715.98
7.1.130.0040.00815.84
7.1.120.0030.01015.78
7.1.110.0030.00915.79
7.1.100.0110.00517.10
7.1.90.0040.00815.98
7.1.80.0070.00715.70
7.1.70.0120.00416.45
7.1.60.0090.00917.64
7.1.50.0040.00516.35
7.1.40.0030.01015.73
7.1.30.0060.00615.62
7.1.20.0030.01015.96
7.1.10.0060.00315.70
7.1.00.0090.03919.07
7.0.330.0060.00615.55
7.0.320.0100.00315.35
7.0.310.0030.00915.40
7.0.300.0060.00915.45
7.0.290.0040.00815.42
7.0.280.0040.00715.48
7.0.270.0040.00815.50
7.0.260.0040.00715.39
7.0.250.0090.00615.49
7.0.240.0060.00615.46
7.0.230.0090.00615.40
7.0.220.0030.00615.31
7.0.210.0040.00815.40
7.0.200.0030.00815.99
7.0.190.0080.00415.43
7.0.180.0070.00715.64
7.0.170.0000.01015.37
7.0.160.0070.00715.24
7.0.150.0040.00815.55
7.0.140.0030.04318.81
7.0.130.0000.01815.27
7.0.120.0040.01115.64
7.0.110.0030.00615.44
7.0.100.0050.02817.82
7.0.90.0080.04017.76
7.0.80.0100.02517.77
7.0.70.0100.03917.60
7.0.60.0030.04617.79
7.0.50.0110.03618.05
7.0.40.0070.04416.80
7.0.30.0100.04316.68
7.0.20.0050.04816.76
7.0.10.0080.03316.74
7.0.00.0070.04316.72
5.6.400.0060.00914.43
5.6.390.0080.00414.14
5.6.380.0090.00914.73
5.6.370.0000.01414.45
5.6.360.0030.00914.79
5.6.350.0030.01114.73
5.6.340.0120.00014.30
5.6.330.0040.01214.30
5.6.320.0140.00014.36
5.6.310.0000.01014.59
5.6.300.0000.01014.53
5.6.290.0090.00614.39
5.6.280.0000.04317.60
5.6.270.0070.00714.38
5.6.260.0030.00614.61
5.6.250.0060.04317.56
5.6.240.0070.03317.63
5.6.230.0020.04817.70
5.6.220.0070.02817.50
5.6.210.0050.03817.45
5.6.200.0060.03217.76
5.6.190.0080.04417.78
5.6.180.0080.04017.85
5.6.170.0150.03317.92
5.6.160.0020.04617.96
5.6.150.0110.03917.77
5.6.140.0070.04917.85
5.6.130.0100.04217.79
5.6.120.0080.04417.86
5.6.110.0150.03517.86
5.6.100.0030.05017.72
5.6.90.0080.04217.86
5.6.80.0040.04417.57
5.6.70.0080.02517.38
5.6.60.0070.02717.40
5.6.50.0050.03217.65
5.6.40.0020.04817.44
5.6.30.0100.03517.53
5.6.20.0120.03717.36
5.6.10.0050.03517.41
5.6.00.0050.02717.33
5.5.380.0110.03217.31
5.5.370.0030.04417.38
5.5.360.0050.03617.25
5.5.350.0080.04417.61
5.5.340.0090.04117.71
5.5.330.0120.04017.71
5.5.320.0040.02717.54
5.5.310.0070.04817.79
5.5.300.0120.04117.62
5.5.290.0130.03817.51
5.5.280.0040.04417.71
5.5.270.0130.02717.55
5.5.260.0120.03217.54
5.5.250.0070.04617.50
5.5.240.0050.04517.41
5.5.230.0080.02617.40
5.5.220.0050.04717.36
5.5.210.0070.04517.32
5.5.200.0080.02017.13
5.5.190.0070.03517.32
5.5.180.0060.04517.27
5.5.170.0100.00714.40
5.5.160.0050.02417.31
5.5.150.0050.03017.50
5.5.140.0070.03317.30
5.5.130.0060.02517.38
5.5.120.0080.02817.30
5.5.110.0090.02517.20
5.5.100.0070.04217.18
5.5.90.0050.02617.04
5.5.80.0080.04017.17
5.5.70.0130.04017.13
5.5.60.0080.03817.29
5.5.50.0030.04317.10
5.5.40.0070.04417.31
5.5.30.0140.03817.31
5.5.20.0010.04117.46
5.5.10.0070.04517.24
5.5.00.0080.04217.12
5.4.450.0100.03615.25
5.4.440.0070.04215.19
5.4.430.0080.03915.38
5.4.420.0080.04115.25
5.4.410.0050.04415.16
5.4.400.0050.04314.95
5.4.390.0050.02315.11
5.4.380.0030.04215.04
5.4.370.0120.03415.09
5.4.360.0030.02815.15
5.4.350.0050.02915.12
5.4.340.0060.03515.14
5.4.330.0060.00311.20
5.4.320.0020.04415.14
5.4.310.0050.03815.17
5.4.300.0050.03615.07
5.4.290.0040.04015.10
5.4.280.0070.03215.07
5.4.270.0080.03815.08
5.4.260.0050.03815.13
5.4.250.0060.03014.94
5.4.240.0060.04015.08
5.4.230.0120.03615.09
5.4.220.0030.03815.01
5.4.210.0050.03315.00
5.4.200.0070.03814.89
5.4.190.0030.03215.05
5.4.180.0060.03014.90
5.4.170.0080.04215.01
5.4.160.0060.02515.10
5.4.150.0050.03915.02
5.4.140.0100.03313.56
5.4.130.0030.02713.70
5.4.120.0110.03413.78
5.4.110.0000.04413.70
5.4.100.0050.04113.72
5.4.90.0060.03713.66
5.4.80.0040.04013.80
5.4.70.0030.04213.72
5.4.60.0090.03213.79
5.4.50.0020.03713.68
5.4.40.0070.03513.71
5.4.30.0080.03313.71
5.4.20.0000.04413.67
5.4.10.0040.03813.78
5.4.00.0040.03313.41
5.3.290.0090.03912.85
5.3.280.0030.04512.81
5.3.270.0060.03712.82
5.3.260.0060.03312.74
5.3.250.0070.03012.75
5.3.240.0070.04112.78
5.3.230.0070.03812.79
5.3.220.0020.04212.73
5.3.210.0030.02112.76
5.3.200.0080.03312.73
5.3.190.0020.04012.79
5.3.180.0070.03612.79
5.3.170.0050.04012.81
5.3.160.0120.03312.73
5.3.150.0050.04012.71
5.3.140.0030.03812.80
5.3.130.0030.04412.78
5.3.120.0090.03712.77
5.3.110.0020.03312.71
5.3.100.0040.03112.54
5.3.90.0070.03812.51
5.3.80.0030.04312.42
5.3.70.0080.04012.46
5.3.60.0030.04012.45
5.3.50.0080.02812.43
5.3.40.0050.04212.46
5.3.30.0090.02812.47
5.3.20.0030.03312.35
5.3.10.0070.01812.35
5.3.00.0050.02812.31

preferences:
37.33 ms | 401 KiB | 5 Q