3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set('display_errors', TRUE); $loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); date_default_timezone_set('Europe/Berlin'); $string = "B 20:15, H 21:00, H 21:00, H 21:15, M 22:30, H 21:30, R 00:00, R 23:30, M 22:30, M 22:45, M 22:45, H 21:30, R 23:35"; $ergebnis = explode(", ", $string); asort($ergebnis); $ergebnis1 = array_unique($ergebnis, SORT_STRING); $string_neu = ""; foreach($ergebnis1 AS $a){ if (!strpos($string_neu, substr($a, 0, 1))) { $string_neu .= $a .', '; } } echo substr($string_neu, 0, -2);

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.130.0150.01117.88
8.4.120.0140.00620.88
8.4.110.0230.01122.72
8.4.100.0090.00717.87
8.4.90.0270.00517.87
8.4.80.0110.00317.95
8.4.70.0160.00718.24
8.4.60.0160.00617.93
8.4.50.0100.00918.79
8.4.40.0130.01017.97
8.4.30.0170.00319.00
8.4.20.0070.01418.27
8.4.10.0090.00023.83
8.3.260.0120.00716.94
8.3.250.0210.00719.23
8.3.240.0090.00816.96
8.3.230.0160.00917.30
8.3.220.0180.00719.35
8.3.210.0160.00816.93
8.3.200.0160.00917.06
8.3.190.0120.00616.99
8.3.180.0080.00616.99
8.3.170.0130.00021.04
8.3.160.0140.00417.04
8.3.150.0080.00819.32
8.3.140.0040.01117.29
8.3.130.0050.00316.82
8.3.120.0030.00521.02
8.3.110.0160.00016.91
8.3.100.0030.00718.66
8.3.90.0090.00626.77
8.3.80.0040.00417.00
8.3.70.0130.01016.88
8.3.60.0070.00718.93
8.3.50.0170.00320.72
8.3.40.0110.00720.54
8.3.30.0140.00018.84
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0070.00026.16
8.2.290.0060.00320.86
8.2.280.0150.00918.80
8.2.270.0090.00919.28
8.2.260.0040.01416.69
8.2.250.0150.00616.64
8.2.240.0130.00617.02
8.2.230.0060.00320.94
8.2.220.0030.00724.06
8.2.210.0090.00626.77
8.2.200.0060.00618.67
8.2.190.0140.00416.88
8.2.180.0150.00425.92
8.2.170.0110.00319.16
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0100.00021.25
8.2.100.0090.00418.09
8.2.90.0000.00818.00
8.2.80.0030.00619.15
8.2.70.0050.00317.75
8.2.60.0040.00418.00
8.2.50.0030.00518.05
8.2.40.0040.00418.59
8.2.30.0070.00018.30
8.2.20.0040.00419.53
8.2.10.0000.00718.37
8.2.00.0020.00519.49
8.1.330.0120.00716.84
8.1.320.0150.00916.20
8.1.310.0110.00818.46
8.1.300.0060.01218.78
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0060.00324.66
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0110.00022.33
8.1.230.0090.00322.94
8.1.220.0060.00318.04
8.1.210.0050.00318.77
8.1.200.0030.00617.60
8.1.190.0080.00317.73
8.1.180.0070.00318.10
8.1.170.0040.00417.72
8.1.160.0040.00419.33
8.1.150.0030.00618.95
8.1.140.0000.00717.81
8.1.130.0000.00719.39
8.1.120.0050.00317.73
8.1.110.0070.00617.75
8.1.100.0080.00817.79
8.1.90.0080.00817.68
8.1.80.0100.00517.84
8.1.70.0130.00317.77
8.1.60.0120.00617.89
8.1.50.0140.00417.73
8.1.40.0090.00917.82
8.1.30.0090.00917.95
8.1.20.0140.00317.89
8.1.10.0120.00617.73
8.1.00.0180.00017.71
8.0.300.0080.00018.77
8.0.290.0040.00417.13
8.0.280.0070.00018.72
8.0.270.0070.00017.63
8.0.260.0030.00318.81
8.0.250.0030.00317.41
8.0.240.0150.00317.20
8.0.230.0120.00317.12
8.0.220.0120.00217.26
8.0.210.0100.00517.25
8.0.200.0150.00017.16
8.0.190.0070.00717.18
8.0.180.0110.00517.16
8.0.170.0130.00317.09
8.0.160.0130.00317.18
8.0.150.0140.00017.07
8.0.140.0140.00016.97
8.0.130.0100.00517.18
8.0.120.0090.00617.19
8.0.110.0070.00717.14
8.0.100.0120.00217.16
8.0.90.0000.01417.17
8.0.80.0040.01117.07
8.0.70.0130.00217.13
8.0.60.0050.01017.07
8.0.50.0120.00317.09
8.0.30.0120.00317.20
8.0.20.0150.00017.18
8.0.10.0050.00917.27
7.4.330.0050.00015.55
7.4.320.0110.00516.77
7.4.300.0090.00616.77
7.4.290.0090.00616.70
7.4.280.0060.01116.76
7.4.270.0170.00016.79
7.4.260.0160.00016.84
7.4.250.0150.00316.80
7.4.240.0160.00016.62
7.4.230.0090.00616.81
7.4.220.0120.00216.67
7.4.210.0040.00816.71
7.4.200.0030.00616.66
7.4.190.0070.00516.71
7.4.180.0100.00516.86
7.4.160.0110.00316.76
7.4.150.0090.00316.57
7.4.140.0070.00416.54
7.4.130.0080.00416.64
7.4.120.0110.00016.68
7.4.110.0060.00616.62
7.4.100.0080.00416.50
7.4.90.0100.00316.70
7.4.80.0080.00416.68
7.4.70.0060.00616.57
7.4.60.0000.01216.52
7.4.50.0120.00016.33
7.4.40.0110.00016.44
7.4.30.0060.00616.73
7.4.20.0040.00916.44
7.4.10.0100.00316.57
7.4.00.0080.00316.47

preferences:
35.55 ms | 403 KiB | 5 Q