3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Escape_win ($path) { $path = strtoupper ($path); return strtr($path, array("\U0430"=>"а", "\U0431"=>"б", "\U0432"=>"в", "\U0433"=>"г", "\U0434"=>"д", "\U0435"=>"е", "\U0451"=>"ё", "\U0436"=>"ж", "\U0437"=>"з", "\U0438"=>"и", "\U0439"=>"й", "\U043A"=>"к", "\U043B"=>"л", "\U043C"=>"м", "\U043D"=>"н", "\U043E"=>"о", "\U043F"=>"п", "\U0440"=>"р", "\U0441"=>"с", "\U0442"=>"т", "\U0443"=>"у", "\U0444"=>"ф", "\U0445"=>"х", "\U0446"=>"ц", "\U0447"=>"ч", "\U0448"=>"ш", "\U0449"=>"щ", "\U044A"=>"ъ", "\U044B"=>"ы", "\U044C"=>"ь", "\U044D"=>"э", "\U044E"=>"ю", "\U044F"=>"я", "\U0410"=>"А", "\U0411"=>"Б", "\U0412"=>"В", "\U0413"=>"Г", "\U0414"=>"Д", "\U0415"=>"Е", "\U0401"=>"Ё", "\U0416"=>"Ж", "\U0417"=>"З", "\U0418"=>"И", "\U0419"=>"Й", "\U041A"=>"К", "\U041B"=>"Л", "\U041C"=>"М", "\U041D"=>"Н", "\U041E"=>"О", "\U041F"=>"П", "\U0420"=>"Р", "\U0421"=>"С", "\U0422"=>"Т", "\U0423"=>"У", "\U0424"=>"Ф", "\U0425"=>"Х", "\U0426"=>"Ц", "\U0427"=>"Ч", "\U0428"=>"Ш", "\U0429"=>"Щ", "\U042A"=>"Ъ", "\U042B"=>"Ы", "\U042C"=>"Ь", "\U042D"=>"Э", "\U042E"=>"Ю", "\U042F"=>"Я")); } $str = "\u0410\u043f\u0438\u0432\u0438\u0442"; print Escape_win ($str); ?>

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.20.0140.00717.56
8.4.10.0080.00317.30
8.3.150.0120.00917.17
8.3.140.0060.00916.61
8.3.130.0070.00316.60
8.3.120.0070.01118.82
8.3.110.0030.00716.50
8.3.100.0040.01224.06
8.3.90.0080.00026.77
8.3.80.0000.01018.18
8.3.70.0160.00018.43
8.3.60.0110.00718.41
8.3.50.0080.00921.98
8.3.40.0070.00718.71
8.3.30.0110.00418.53
8.3.20.0040.00420.30
8.3.10.0040.00420.57
8.3.00.0080.00020.53
8.2.260.0030.00619.11
8.2.250.0080.00018.42
8.2.240.0040.00418.79
8.2.230.0080.00020.94
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0030.00616.63
8.2.190.0180.00316.58
8.2.180.0090.00616.38
8.2.170.0090.00622.96
8.2.160.0120.00619.03
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00719.36
8.2.120.0070.00026.35
8.2.110.0060.00322.25
8.2.100.0060.00617.84
8.2.90.0040.00417.90
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0000.00818.05
8.2.50.0000.00818.10
8.2.40.0000.00720.64
8.2.30.0070.00019.46
8.2.20.0040.00417.66
8.2.10.0000.00718.13
8.2.00.0070.00018.06
8.1.310.0110.00716.69
8.1.300.0120.00320.16
8.1.290.0090.00018.88
8.1.280.0040.01125.92
8.1.270.0040.00423.79
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0040.00422.47
8.1.230.0080.00420.98
8.1.220.0030.00617.74
8.1.210.0060.00318.89
8.1.200.0050.00517.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00518.61
8.1.160.0000.00720.75
8.1.150.0040.00418.85
8.1.140.0040.00419.41
8.1.130.0070.00017.65
8.1.120.0000.00717.42
8.1.110.0000.00717.33
8.1.100.0040.00417.38
8.1.90.0050.00317.33
8.1.80.0040.00417.43
8.1.70.0000.00717.39
8.1.60.0030.00717.48
8.1.50.0060.00317.53
8.1.40.0040.00417.50
8.1.30.0000.00817.62
8.1.20.0020.00517.60
8.1.10.0070.00717.50
8.1.00.0040.00417.51
8.0.300.0070.00020.00
8.0.290.0040.00416.59
8.0.280.0030.00318.36
8.0.270.0000.00717.23
8.0.260.0000.00617.29
8.0.250.0030.00316.94
8.0.240.0000.00717.03
8.0.230.0030.00616.78
8.0.220.0030.00316.88
8.0.210.0000.00716.85
8.0.200.0020.00516.82
8.0.190.0040.00416.96
8.0.180.0070.00016.89
8.0.170.0080.00016.75
8.0.160.0000.00816.81
8.0.150.0000.00816.75
8.0.140.0000.00816.71
8.0.130.0030.00313.33
8.0.120.0040.00416.86
8.0.110.0000.00716.85
8.0.100.0050.00316.91
8.0.90.0000.00716.67
8.0.80.0040.01216.84
8.0.70.0000.00716.71
8.0.60.0030.00516.73
8.0.50.0050.00316.82
8.0.30.0070.01117.13
8.0.20.0110.00917.40
8.0.10.0000.00716.99
8.0.00.0080.01116.62
7.4.330.0060.00015.08
7.4.320.0080.00016.47
7.4.300.0000.00716.55
7.4.290.0000.00616.60
7.4.280.0080.00016.52
7.4.270.0040.00416.51
7.4.260.0030.00716.52
7.4.250.0000.00816.57
7.4.240.0070.00016.51
7.4.230.0000.00716.41
7.4.220.0090.00916.61
7.4.210.0120.00916.55
7.4.200.0000.00716.36
7.4.160.0100.01016.58
7.4.150.0100.00717.40
7.4.140.0040.01517.86
7.4.130.0090.00916.51
7.4.120.0080.00816.63
7.4.110.0130.00316.56
7.4.100.0070.01016.45
7.4.90.0110.00616.58
7.4.80.0030.01319.39
7.4.70.0130.01016.55
7.4.60.0110.00716.36
7.4.50.0030.01016.39
7.4.40.0100.00616.63
7.4.30.0100.00716.59
7.4.00.0000.01515.04
7.3.330.0030.00313.25
7.3.320.0030.00313.23
7.3.310.0070.00016.14
7.3.300.0000.00716.13
7.3.290.0060.01216.24
7.3.280.0070.01016.25
7.3.270.0070.01117.40
7.3.260.0110.00716.44
7.3.250.0110.00816.51
7.3.240.0150.00316.29
7.3.230.0080.00816.39
7.3.210.0120.00616.32
7.3.200.0100.00616.27
7.3.190.0120.00616.60
7.3.180.0080.00816.57
7.3.170.0050.01316.40
7.3.160.0100.00716.44
7.2.330.0170.00016.30
7.2.320.0120.00416.39
7.2.310.0030.01416.70
7.2.300.0100.00716.73
7.2.290.0100.01016.75
7.2.60.0030.00717.01
7.2.00.0030.00919.43
7.1.200.0030.01015.74
7.1.100.0030.00617.93
7.1.70.0030.00317.29
7.1.60.0080.00317.21
7.1.00.0030.07322.31
7.0.200.0070.01116.76
7.0.100.0130.08020.00
7.0.90.0100.08319.92
7.0.80.0130.08019.88
7.0.70.0200.06320.13
7.0.60.0070.08720.00
7.0.50.0030.07020.30
7.0.40.0100.08320.14
7.0.30.0070.08720.22
7.0.20.0070.08720.16
7.0.10.0030.09020.10
7.0.00.0000.06720.04
5.6.280.0070.07021.16
5.6.250.0170.07020.61
5.6.240.0070.06020.54
5.6.230.0100.10020.55
5.6.220.0070.07720.55
5.6.210.0030.05020.67
5.6.200.0170.07321.06
5.6.190.0070.08021.09
5.6.180.0100.07321.04
5.6.170.0070.08721.07
5.6.160.0070.04020.99
5.6.150.0070.07320.97
5.6.140.0030.08320.99
5.6.130.0070.06321.04
5.6.120.0030.08321.04
5.6.110.0070.08021.06
5.6.100.0170.03321.13
5.6.90.0070.06320.96
5.6.80.0100.07720.42
5.6.70.0070.07720.48
5.6.60.0030.08020.42
5.6.50.0030.08020.45
5.6.40.0170.06720.46
5.6.30.0130.07020.41
5.6.20.0070.08020.52
5.6.10.0230.07020.41
5.6.00.0070.07320.50
5.5.380.0070.08320.39
5.5.370.0130.09020.57
5.5.360.0070.08020.39
5.5.350.0070.04720.47
5.5.340.0070.04020.83
5.5.330.0030.08720.86
5.5.320.0030.08320.83
5.5.310.0130.08020.89
5.5.300.0100.06720.81
5.5.290.0030.07720.67
5.5.280.0030.05320.68
5.5.270.0070.08020.79
5.5.260.0000.07720.90
5.5.250.0100.03320.73
5.5.240.0070.08320.16
5.5.230.0100.05720.25
5.5.220.0000.08720.23
5.5.210.0030.08020.18
5.5.200.0030.07720.27
5.5.190.0130.07720.02
5.5.180.0100.08020.30
5.5.160.0070.08320.16
5.5.150.0070.08020.28
5.5.140.0100.07720.21
5.5.130.0170.07720.24
5.5.120.0070.07720.11
5.5.110.0030.05020.18
5.5.100.0030.07320.21
5.5.90.0070.04320.14
5.5.80.0130.07020.20
5.5.70.0070.05320.08
5.5.60.0070.08020.06
5.5.50.0070.06720.09
5.5.40.0130.05320.13
5.5.30.0100.05720.11
5.5.20.0230.06320.18
5.5.10.0100.07320.07
5.5.00.0030.05720.14

preferences:
74.09 ms | 403 KiB | 5 Q