3v4l.org

run code in 300+ PHP versions simultaneously
<?php function authorform_form_alter_custom_sort($a,$b){ $orderPL = array('A','Ą','B','C','Ć','D','E','Ę','F','G','H','I','J','K','L','Ł','M','N','Ń','O','Ó','P','Q','R','S','Ś','T','U','V','W','X','Y','Z','Ź','Ż', 'a','ą','b','c','ć','d','e','ę','f','g','h','i','j','k','l','ł','m','n','ń','o','ó','p','q','r','s','ś','t','u','v','w','x','y','z','ź','ż'); if ($a == $b) { return 0; } if (mb_substr($a, 0, 1, 'utf-8') == mb_substr($b, 0, 1, 'utf-8')) { return authorform_form_alter_custom_sort(substr($a, 1),substr($b, 1)); } return (array_search($a, $orderPL) < array_search($b, $orderPL)) ? -1 : 1; } authorform_form_alter_custom_sort("Olko","Pietraśko");

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.0210.00316.63
8.3.50.0110.00422.13
8.3.40.0140.00718.43
8.3.30.0110.00418.85
8.3.20.0040.00420.24
8.3.10.0040.00421.73
8.3.00.0000.00819.26
8.2.180.0080.00816.50
8.2.170.0170.00322.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.66
8.2.110.0090.00019.39
8.2.100.0180.00317.68
8.2.90.0080.00021.13
8.2.80.0000.00818.79
8.2.70.0060.00317.50
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00417.98
8.2.20.0080.00017.69
8.2.10.0050.00518.08
8.2.00.0000.00817.56
8.1.280.0150.00025.92
8.1.270.0060.00320.65
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0070.00720.89
8.1.220.0080.00017.78
8.1.210.0030.00618.88
8.1.200.0030.00617.38
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0080.00018.51
8.1.160.0050.00218.95
8.1.150.0000.00818.80
8.1.140.0050.00317.37
8.1.130.0070.00017.84
8.1.120.0030.00317.52
8.1.110.0000.00717.46
8.1.100.0040.00417.43
8.1.90.0070.00017.46
8.1.80.0040.00417.48
8.1.70.0030.00317.45
8.1.60.0030.00517.57
8.1.50.0030.00617.57
8.1.40.0040.00417.54
8.1.30.0040.00417.72
8.1.20.0030.00617.71
8.1.10.0030.00617.49
8.1.00.0000.00717.42
8.0.300.0040.00420.11
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0030.00317.32
8.0.260.0030.00317.32
8.0.250.0030.00316.90
8.0.240.0040.00416.94
8.0.230.0040.00416.91
8.0.220.0000.00816.98
8.0.210.0000.00716.95
8.0.200.0030.00317.04
8.0.190.0000.00717.02
8.0.180.0000.00717.00
8.0.170.0040.00416.95
8.0.160.0000.00816.96
8.0.150.0070.00016.92
8.0.140.0070.00016.82
8.0.130.0040.00413.36
8.0.120.0030.00516.91
8.0.110.0040.00416.86
8.0.100.0040.00416.98
8.0.90.0040.00416.99
8.0.80.0100.00716.93
8.0.70.0040.00416.91
8.0.60.0000.00816.82
8.0.50.0070.00016.81
8.0.30.0140.01017.06
8.0.20.0100.01017.40
8.0.10.0040.00317.03
8.0.00.0120.00516.72
7.4.330.0050.00015.08
7.4.320.0030.00316.41
7.4.300.0080.00016.59
7.4.290.0030.00516.61
7.4.280.0060.00316.37
7.4.270.0000.00616.43
7.4.260.0030.00316.61
7.4.250.0000.00716.46
7.4.240.0030.00316.61
7.4.230.0030.00316.39
7.4.220.0120.00616.47
7.4.210.0070.00716.63
7.4.200.0070.00016.50
7.4.160.0060.00916.59
7.4.150.0140.00417.40
7.4.140.0080.01117.86
7.4.130.0100.00716.52
7.4.120.0080.00916.50
7.4.110.0090.00916.62
7.4.100.0100.00716.64
7.4.90.0080.00916.46
7.4.80.0090.00919.39
7.4.70.0070.01616.48
7.4.60.0130.00316.30
7.4.50.0030.00316.67
7.4.40.0090.00616.38
7.4.30.0120.00916.52
7.4.00.0070.01015.01
7.3.330.0000.00613.28
7.3.320.0090.00413.07
7.3.310.0070.00016.20
7.3.300.0030.00316.17
7.3.290.0080.00716.32
7.3.280.0090.00716.33
7.3.270.0160.00317.40
7.3.260.0040.01316.55
7.3.250.0100.00716.41
7.3.240.0170.00616.44
7.3.230.0150.00616.39
7.3.210.0060.01016.54
7.3.200.0100.01019.39
7.3.190.0110.00416.45
7.3.180.0100.00716.57
7.3.170.0080.01216.64
7.3.160.0160.00316.54
7.2.330.0030.01316.58
7.2.320.0080.01616.51
7.2.310.0220.03216.27
7.2.300.0140.01016.30
7.2.290.0110.00716.60
7.1.100.0080.00818.14
7.1.70.0030.00617.23
7.1.60.0070.01819.46
7.1.50.0000.01517.00
7.1.00.0070.07322.30
7.0.200.0040.00416.61
7.0.140.0030.07722.09
7.0.60.0070.07719.84
7.0.50.0030.08717.99
7.0.40.0070.07320.23
7.0.30.0230.04320.12
7.0.20.0300.07020.19
7.0.10.0200.06320.35
7.0.00.0100.08720.32
5.6.280.0000.04721.01
5.6.210.0100.08320.52
5.6.200.0030.08018.25
5.6.190.0000.09020.67
5.6.180.0300.03320.55
5.6.170.0200.04020.46
5.6.160.0030.04720.57
5.6.150.0030.07318.25
5.6.140.0070.04318.18
5.6.130.0130.07718.21
5.6.120.0100.05320.95
5.6.110.0070.05021.04
5.6.100.0100.06021.00
5.6.90.0030.04021.14
5.6.80.0070.04020.55
5.6.70.0230.08320.43
5.5.350.0070.08320.45
5.5.340.0070.04018.08
5.5.330.0000.09020.43
5.5.320.0000.04320.38
5.5.310.0230.03720.51
5.5.300.0000.04318.01
5.5.290.0130.08017.98
5.5.280.0030.07020.79
5.5.270.0130.08020.66
5.5.260.0130.08020.82
5.5.250.0200.07320.52
5.5.240.0100.08020.25
5.4.450.0670.05019.34
5.4.440.0670.05319.61
5.4.430.0800.05319.58
5.4.420.0130.05319.46
5.4.410.0730.06319.07
5.4.400.0230.05318.52
5.4.390.0130.07318.75
5.4.380.0100.07018.55
5.4.370.0200.05318.71
5.4.360.0270.06018.52
5.4.350.0330.06718.54
5.4.340.0270.05018.78
5.4.320.0270.04718.77
5.4.310.0200.07018.63
5.4.300.0230.05318.52
5.4.290.0230.05718.63
5.4.280.0230.07018.54
5.4.270.0200.06018.73
5.4.260.0170.05718.51
5.4.250.0230.05718.61
5.4.240.0200.05718.77
5.4.230.0170.06718.53
5.4.220.0430.05718.82
5.4.210.0270.05018.50
5.4.200.0170.05716.54
5.4.190.0200.06318.74
5.4.180.0170.05718.74
5.4.170.0230.05318.77
5.4.160.0100.05718.73
5.4.150.0230.05018.59
5.4.140.0170.06016.31
5.4.130.0200.04716.31
5.4.120.0100.06316.20
5.4.110.0230.06016.31
5.4.100.0270.06316.44
5.4.90.0270.06316.30
5.4.80.0170.04716.20
5.4.70.0170.05016.41
5.4.60.0270.04316.25
5.4.50.0200.05016.39
5.4.40.0170.05316.26
5.4.30.0230.04316.27
5.4.20.0130.06016.16
5.4.10.0300.05316.25
5.4.00.0170.05715.67
5.3.290.0130.05714.79
5.3.280.0130.05714.63
5.3.270.0300.06314.66
5.3.260.0230.07314.61
5.3.250.0100.06014.79
5.3.240.0200.05714.67
5.3.230.0230.05014.73
5.3.220.0200.07014.68
5.3.210.0100.06714.71
5.3.200.0230.05714.69
5.3.190.0170.05314.75
5.3.180.0270.05014.75
5.3.170.0170.07314.64
5.3.160.0130.05314.61
5.3.150.0170.05714.57
5.3.140.0300.06314.61
5.3.130.0200.07014.60
5.3.120.0070.08014.61
5.3.110.0100.06314.73
5.3.100.0270.05314.23
5.3.90.0330.05314.07
5.3.80.0200.06714.15
5.3.70.0270.05714.09
5.3.60.0400.04714.09
5.3.50.0330.05314.03
5.3.40.0270.06014.05
5.3.30.0070.08013.96
5.3.20.0130.05713.74
5.3.10.0200.04313.73
5.3.00.0200.05013.79
5.2.170.0130.04711.21
5.2.160.0230.05011.20
5.2.150.0100.06711.38
5.2.140.0170.05711.28
5.2.130.0200.03311.15
5.2.120.0200.05011.36
5.2.110.0070.06011.12
5.2.100.0130.04011.23
5.2.90.0200.04311.34
5.2.80.0030.05011.15
5.2.70.0030.05711.22
5.2.60.0170.04711.10
5.2.50.0170.05711.16
5.2.40.0070.06011.16
5.2.30.0170.05311.02
5.2.20.0200.05011.08
5.2.10.0170.04310.90
5.2.00.0200.03710.75
5.1.60.0130.03010.12
5.1.50.0070.04010.05
5.1.40.0100.03710.00
5.1.30.0000.04710.56
5.1.20.0200.04710.48
5.1.10.0130.03710.17
5.1.00.0070.05010.23
5.0.50.0030.0338.59
5.0.40.0070.0338.62
5.0.30.0000.0638.33
5.0.20.0070.0338.32
5.0.10.0000.0478.23
5.0.00.0100.0538.23
4.4.90.0070.0305.93
4.4.80.0030.0276.01
4.4.70.0130.0135.91
4.4.60.0130.0176.02
4.4.50.0100.0205.92
4.4.40.0030.0405.89
4.4.30.0070.0205.95
4.4.20.0030.0276.02
4.4.10.0070.0306.05
4.4.00.0070.0436.02
4.3.110.0100.0205.84
4.3.100.0070.0205.85
4.3.90.0030.0235.82
4.3.80.0100.0305.82
4.3.70.0030.0275.90
4.3.60.0070.0275.85
4.3.50.0030.0335.81
4.3.40.0000.0435.79
4.3.30.0100.0234.64
4.3.20.0000.0334.60
4.3.10.0000.0304.53
4.3.00.0070.0236.93

preferences:
48.38 ms | 401 KiB | 5 Q