3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aryNo = array( 0 => 34, 1 => 34, 2 => 51, 3 => 12, 4 => 12, 5 => 12, 6 => 56, 7 => 876, 8 => 453, 9 => 43, 10 => 12 ); $b = array_keys($aryNo, min($aryNo)); //Here only can get 1 value. // Taking a random KEY from $b $key = array_rand($b); // Taking a KEY from $aryNo which is under `$key` echo $b[$key]; // Taking a VALUE from `$aryNo` which is under `$b[$key]` echo $aryNo[$b[$key]];

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)
7.4.50.0110.00916.30
7.4.40.0070.01016.71
7.4.30.0000.01716.31
7.4.20.0040.01516.48
7.4.10.0070.01116.55
7.4.00.0060.01016.47
7.3.290.2240.01212.44
7.3.170.0090.01216.34
7.3.160.0070.01516.38
7.3.150.0090.01316.60
7.3.140.0180.00516.22
7.3.130.0080.00816.61
7.3.120.0080.00816.27
7.3.110.0110.01116.11
7.3.100.0110.01116.45
7.3.90.0090.00616.42
7.3.80.0080.01116.13
7.3.70.0030.01316.20
7.3.60.0090.01116.22
7.3.50.0100.00516.32
7.3.40.0120.00616.30
7.3.30.0080.00816.29
7.3.20.0100.00716.27
7.3.10.0150.00716.34
7.3.00.0120.00616.32
7.2.290.0060.01216.34
7.2.280.0190.00016.39
7.2.270.0110.01116.34
7.2.260.0100.00716.36
7.2.250.0130.01016.39
7.2.240.0130.01016.36
7.2.230.0100.00716.63
7.2.220.0130.00316.63
7.2.210.0090.01216.39
7.2.200.0100.01016.39
7.2.190.0000.01816.46
7.2.180.0080.01116.32
7.2.170.0090.00616.53
7.2.160.0100.00716.55
7.2.150.0160.01016.48
7.2.140.0190.00616.59
7.2.130.0090.00916.45
7.2.120.0060.01216.60
7.2.110.0100.01016.46
7.2.100.0120.00616.61
7.2.90.0130.00416.64
7.2.80.0150.00316.66
7.2.70.0090.00916.36
7.2.60.0160.00316.60
7.2.50.0080.01116.49
7.2.40.0080.00916.53
7.2.30.0160.00316.55
7.2.20.0130.00416.67
7.2.10.0050.01316.46
7.2.00.0120.00616.36

preferences:
48.57 ms | 403 KiB | 5 Q