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 = "\u003Cp\u003E\u0420\u0430\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043c\u0435\u0434\u0430 \u0441 \u043f\u043b\u043e\u0434\u0430\u043c\u0438 \u044f\u0433\u043e\u0434 \u0438 \u0440\u0430\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u044d\u043a\u0441\u0442\u0440\u0430\u043a\u0442\u0430\u043c\u0438. \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0444\u0438\u0442\u043e\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0430 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0432\u0438\u0440\u0443\u0441\u043d\u043e\u0435"; 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.3.60.0120.00618.20
8.3.50.0130.00721.08
8.3.40.0110.00718.60
8.3.30.0110.00418.59
8.3.20.0040.00420.17
8.3.10.0030.00520.52
8.3.00.0000.00820.77
8.2.180.0040.01216.63
8.2.170.0090.00622.96
8.2.160.0060.01519.03
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00419.34
8.2.120.0040.00426.35
8.2.110.0060.00321.16
8.2.100.0040.00817.63
8.2.90.0030.00619.05
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0050.00518.03
8.2.50.0040.00418.10
8.2.40.0000.00720.58
8.2.30.0000.00719.36
8.2.20.0000.00817.57
8.2.10.0000.00718.14
8.2.00.0000.00718.01
8.1.280.0160.00625.92
8.1.270.0040.00423.74
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0060.00322.73
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.00
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0050.00318.59
8.1.160.0050.00220.86
8.1.150.0040.00418.80
8.1.140.0000.00719.40
8.1.130.0050.00217.64
8.1.120.0030.00317.49
8.1.110.0000.00717.39
8.1.100.0000.00717.39
8.1.90.0000.00817.29
8.1.80.0070.00017.45
8.1.70.0030.00317.39
8.1.60.0000.00817.50
8.1.50.0000.00817.42
8.1.40.0040.00417.42
8.1.30.0000.00817.52
8.1.20.0000.00717.69
8.1.10.0000.00817.54
8.1.00.0000.00917.49
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.45
8.0.270.0070.00017.27
8.0.260.0090.00017.31
8.0.250.0000.00716.89
8.0.240.0030.00316.92
8.0.230.0080.00016.91
8.0.220.0070.00016.82
8.0.210.0040.00416.77
8.0.200.0070.00016.75
8.0.190.0050.00316.84
8.0.180.0040.00416.82
8.0.170.0050.00316.77
8.0.160.0000.00716.79
8.0.150.0000.00716.75
8.0.140.0070.00016.77
8.0.130.0000.00613.20
8.0.120.0000.00716.84
8.0.110.0040.00416.83
8.0.100.0000.00816.87
8.0.90.0000.00716.84
8.0.80.0060.00916.77
8.0.70.0050.00316.68
8.0.60.0040.00416.72
8.0.50.0040.00416.76
8.0.30.0090.00616.98
8.0.20.0110.00717.40
8.0.10.0040.00416.85
8.0.00.0080.01116.74
7.4.330.0000.00515.08
7.4.320.0000.00916.61
7.4.300.0070.00016.42
7.4.290.0000.00716.59
7.4.280.0030.00516.65
7.4.270.0060.00316.52
7.4.260.0040.00416.40
7.4.250.0050.00316.57
7.4.240.0030.00516.57
7.4.230.0000.00716.62
7.4.220.0060.01516.62
7.4.210.0090.00616.61
7.4.200.0000.00716.32
7.4.160.0030.02116.30
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0170.00616.57
7.4.120.0110.00716.50
7.4.110.0080.01116.47
7.4.100.0120.00916.42
7.4.90.0190.00316.36
7.4.80.0130.00319.39
7.4.70.0070.01016.37
7.4.60.0110.00916.54
7.4.50.0060.01316.49
7.4.40.0150.00316.56
7.4.30.0100.00716.36
7.4.00.0040.01415.09
7.3.330.0000.00513.25
7.3.320.0070.00013.09
7.3.310.0000.00716.31
7.3.300.0030.00316.24
7.3.290.0000.00616.27
7.3.280.0110.00716.25
7.3.270.0110.00717.40
7.3.260.0080.01116.30
7.3.250.0060.01216.33
7.3.240.0100.01116.25
7.3.230.0100.00716.39
7.3.210.0150.00616.45
7.3.200.0090.00916.49
7.3.190.0060.01216.51
7.3.180.0150.00316.29
7.3.170.0040.01916.54
7.3.160.0040.01116.20
7.3.10.0050.00816.62
7.3.00.0090.00616.57
7.2.330.0090.00916.83
7.2.320.0090.00916.91
7.2.310.0060.01116.71
7.2.300.0070.01116.44
7.2.290.0030.01316.45
7.2.130.0060.00916.94
7.2.120.0060.00917.01
7.2.110.0100.00016.83
7.2.100.0100.00316.86
7.2.90.0040.00716.70
7.2.80.0100.00716.88
7.2.70.0040.01116.95
7.2.60.0060.00916.66
7.2.50.0070.00317.00
7.2.40.0110.00316.59
7.2.30.0040.00717.02
7.2.20.0040.01116.97
7.2.10.0060.00916.95
7.2.00.0040.01118.22
7.1.250.0000.01415.52
7.1.200.0030.01015.86
7.1.100.1920.00715.96
7.1.70.0030.00716.86
7.1.60.0090.01219.22
7.1.00.0070.07022.57
7.0.200.0060.00316.83
7.0.60.0070.09021.87
7.0.50.0100.04017.94
7.0.40.0730.07320.46
7.0.30.0770.07020.02
7.0.20.0500.06320.33
7.0.10.0470.06720.16
7.0.00.0730.06020.33
5.6.280.0100.06720.96
5.6.210.0100.08320.50
5.6.200.0070.03718.25
5.6.190.0370.08020.56
5.6.180.0170.05720.61
5.6.170.0870.05320.83
5.6.160.0630.06020.59
5.6.150.0630.06020.37
5.6.140.0630.06320.41
5.6.130.0800.05720.20
5.6.120.0700.06320.58
5.6.110.0830.06320.39
5.6.100.0670.07720.16
5.6.90.0600.08020.46
5.6.80.0670.05719.58
5.6.70.0570.05719.81
5.6.60.0330.06319.77
5.6.50.0570.06019.56
5.6.40.0370.07319.86
5.6.30.0730.06019.86
5.6.20.0670.05019.85
5.6.10.0830.07019.75
5.6.00.0930.07719.82
5.5.350.0400.06020.32
5.5.340.0030.06717.98
5.5.330.0770.06020.46
5.5.320.0330.06020.62
5.5.310.0100.07020.33
5.5.300.0400.06720.24
5.5.290.0670.06020.26
5.5.280.0700.07320.27
5.5.270.0630.06320.21
5.5.260.0570.06020.09
5.5.250.0570.06720.08
5.5.240.0130.06019.71
5.5.230.0570.05719.35
5.5.220.0230.06319.35
5.5.210.0570.06319.38
5.5.200.0470.05719.72
5.5.190.0630.05719.71
5.5.180.0670.05019.62
5.5.160.0800.05719.39
5.5.150.1000.08319.55
5.5.140.1200.07319.54
5.5.130.1070.07019.38
5.5.120.0930.06319.75
5.5.110.0770.06019.61
5.5.100.0800.07019.49
5.5.90.0830.06319.29
5.5.80.0830.06319.45
5.5.70.0870.05719.61
5.5.60.0670.05719.22
5.5.50.0930.06719.21
5.5.40.0930.07719.16
5.5.30.0600.04319.21
5.5.20.0770.05019.47
5.5.10.0800.04719.32
5.5.00.0630.04719.45

preferences:
81.48 ms | 401 KiB | 5 Q