3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = [ 'a' => 2, 'b' => 1, 'c' => 1, 'd' => 3 ]; $lowestValue = min($users); $lowestValueKeys = array_keys($users, $lowestValue); print_r($lowestValueKeys); $lowestUsers = array_intersect_key($users, array_flip($lowestValueKeys)); print_r($lowestUsers); $lowestValue = min($users); $lowestUsers = array_filter($users, function ($v) use ($lowestValue) { return $v === $lowestValue; }); print_r($lowestUsers);

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.70.0140.00716.58
8.3.60.0110.00418.18
8.3.50.0090.00517.35
8.3.40.0110.00418.60
8.3.30.0110.00418.71
8.3.20.0040.00423.48
8.3.10.0040.01220.73
8.3.00.0040.00421.90
8.2.190.0070.01116.61
8.2.180.0100.01025.92
8.2.170.0120.00318.83
8.2.160.0070.00722.96
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00420.88
8.2.110.0120.00919.27
8.2.100.0120.00017.91
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0060.00317.80
8.2.60.0040.00418.09
8.2.50.0040.00419.40
8.2.40.0080.00019.48
8.2.30.0000.00720.32
8.2.20.0030.00617.99
8.2.10.0030.00618.96
8.2.00.0000.00718.01
8.1.280.0070.01025.92
8.1.270.0050.00220.70
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.45
8.1.230.0080.00421.04
8.1.220.0060.00317.74
8.1.210.0000.00819.10
8.1.200.0000.00817.35
8.1.190.0090.00017.22
8.1.180.0080.00018.10
8.1.170.0080.00018.57
8.1.160.0000.00718.91
8.1.150.0040.00418.82
8.1.140.0040.00420.27
8.1.130.0040.00417.46
8.1.120.0000.00717.45
8.1.110.0000.00717.46
8.1.100.0070.00017.45
8.1.90.0080.00017.54
8.1.80.0000.00817.54
8.1.70.0050.00217.50
8.1.60.0050.00317.61
8.1.50.0030.00617.59
8.1.40.0000.00817.43
8.1.30.0050.00317.66
8.1.20.0080.00017.60
8.1.10.0040.00417.47
8.1.00.0040.00417.45
8.0.300.0090.00019.95
8.0.290.0070.00016.63
8.0.280.0050.00218.43
8.0.270.0070.00017.27
8.0.260.0070.00016.80
8.0.250.0050.00316.86
8.0.240.0000.00716.93
8.0.230.0040.00416.93
8.0.220.0040.00416.85
8.0.210.0040.00416.95
8.0.200.0020.00516.85
8.0.190.0040.00416.82
8.0.180.0040.00416.88
8.0.170.0060.00316.80
8.0.160.0080.00016.80
8.0.150.0070.00316.78
8.0.140.0040.00416.73
8.0.130.0000.00713.24
8.0.120.0000.00716.74
8.0.110.0040.00416.78
8.0.100.0030.00516.84
8.0.90.0050.00316.89
8.0.80.0070.01416.86
8.0.70.0000.00816.71
8.0.60.0000.00716.95
8.0.50.0050.00316.79
8.0.30.0120.00917.17
8.0.20.0110.00816.93
8.0.10.0000.00716.80
8.0.00.0130.00816.82
7.4.330.0020.00215.55
7.4.320.0030.00316.51
7.4.300.0000.00616.63
7.4.290.0050.00316.48
7.4.280.0040.00416.45
7.4.270.0040.00416.61
7.4.260.0000.00816.57
7.4.250.0000.00716.56
7.4.240.0040.00416.65
7.4.230.0070.00016.54
7.4.220.0030.00516.61
7.4.210.0030.01316.50
7.4.200.0030.00316.63
7.4.160.0110.00716.53
7.4.140.0110.00617.86
7.4.130.0100.00716.54
7.4.120.0110.01416.49
7.4.110.0090.00916.48
7.4.100.0090.00616.41
7.4.90.0040.01316.34
7.4.80.0140.00919.39
7.4.70.0060.01016.52
7.4.60.0100.00916.43
7.4.50.0030.01316.36
7.4.40.0100.01016.54
7.4.00.0030.01014.80
7.3.330.0000.00613.36
7.3.320.0030.00613.39
7.3.310.0070.00016.42
7.3.300.0000.00616.24
7.3.290.0030.00316.38
7.3.280.0060.01016.39
7.3.260.0110.00716.48
7.3.240.0100.00816.39
7.3.230.0120.00616.41
7.3.210.0120.00616.32
7.3.200.0140.00316.39
7.3.190.0150.00016.36
7.3.180.0120.00616.36
7.3.170.0110.01416.51
7.3.160.0130.00316.28
7.3.50.0080.00714.61
7.3.40.0090.00614.73
7.3.30.0030.01214.69
7.3.20.0070.00716.76
7.3.10.0100.00316.65
7.3.00.0160.00316.46
7.2.330.0030.01316.56
7.2.320.0060.01216.64
7.2.310.0060.01516.76
7.2.300.0130.00316.59
7.2.290.0100.00716.55
7.2.180.0090.00615.23
7.2.170.0040.01014.89
7.2.160.0040.00915.00
7.2.150.0070.00716.87
7.2.140.0030.00917.05
7.2.130.0080.00417.00
7.2.120.0130.01316.84
7.2.110.0030.01016.69
7.2.100.0080.00416.95
7.2.90.0040.01616.79
7.2.80.0090.00316.79
7.2.70.0060.00917.00
7.2.60.0060.00916.97
7.2.50.0090.00616.67
7.2.40.0000.01217.00
7.2.30.0060.01316.78
7.2.20.0120.00017.02
7.2.10.0250.01216.86
7.2.00.0320.00016.84
7.1.280.0080.00615.71
7.1.270.0000.01315.73
7.1.260.0150.00915.73
7.1.250.0090.00315.81

preferences:
56.95 ms | 401 KiB | 5 Q