3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lotteryMachine = range(1, 49); for ($i=1;$i<=7;$i++) {shuffle($lotteryMachine);} $lotteryResult = array_slice($lotteryMachine, 0, 6); sort($lotteryResult); print date("Y-m-d") . " 六合彩搞珠結果: " ; foreach ($lotteryResult as $drawnNumber) { echo $drawnNumber . " "; } ?>

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.0.90.0030.00516.91
8.0.80.0080.00816.96
8.0.70.0090.00816.92
8.0.60.0080.00916.89
8.0.50.0090.00816.87
8.0.30.0100.00916.92
8.0.20.0110.00916.99
8.0.10.0120.00817.10
8.0.00.0120.00917.12
7.4.230.0000.00816.36
7.4.220.0040.00316.65
7.4.210.0070.00816.62
7.4.200.0090.00816.62
7.4.190.0080.00816.67
7.4.180.0090.00816.66
7.4.160.0110.00816.63
7.4.150.0120.00916.62
7.4.140.0110.00916.59
7.4.130.0110.00816.59
7.4.120.0120.00816.57
7.4.110.0120.00916.51
7.4.100.0120.00816.57
7.4.90.0110.00816.53
7.4.80.0110.00916.56
7.4.70.0110.00816.56
7.4.60.0120.00816.57
7.4.50.0120.00816.49
7.4.40.0120.00816.46
7.4.30.0120.00816.51
7.4.20.0120.00816.51
7.4.10.0110.00916.45
7.4.00.0110.00816.40
7.3.300.0090.00016.36
7.3.290.0070.00816.30
7.3.280.0100.00816.30
7.3.270.0110.00816.36
7.3.260.0110.00816.40
7.3.250.0110.00816.44
7.3.240.0120.00816.46
7.3.230.0110.00916.42
7.3.220.0120.00916.41
7.3.210.0120.00816.38
7.3.200.0110.00816.40
7.3.190.0120.00816.41
7.3.180.0110.00816.42
7.3.170.0120.00816.41
7.3.160.0120.00816.41
7.3.150.0120.00816.42
7.3.140.0130.00916.42
7.3.130.0120.00916.36
7.3.120.0110.00916.25
7.3.110.0120.00816.19
7.3.100.0120.00816.05
7.3.90.0110.00816.12
7.3.80.0110.00816.03
7.3.70.0110.00816.04
7.3.60.0110.00816.08
7.3.50.0110.00816.09
7.3.40.0110.00816.07
7.3.30.0110.00816.07
7.3.20.0120.00916.24
7.3.10.0140.00816.16
7.3.00.0140.00816.17
7.2.340.0170.00916.64
7.2.330.0160.00916.65
7.2.320.0160.00916.64
7.2.310.0170.00916.62
7.2.300.0160.00916.65
7.2.290.0160.00916.64
7.2.280.0180.00816.65
7.2.270.0180.01016.65
7.2.260.0170.00916.59
7.2.250.0160.00916.52
7.2.240.0170.00816.46
7.2.230.0160.00916.35
7.2.220.0150.00916.28
7.2.210.0150.00916.27
7.2.200.0150.00916.32
7.2.190.0150.00916.26
7.2.180.0140.00916.28
7.2.170.0150.00816.30
7.2.160.0150.00816.29
7.2.150.0180.00916.47
7.2.140.0170.00916.49
7.2.130.0180.00916.54
7.2.120.0190.01016.50
7.2.110.0180.00916.52
7.2.100.0180.01016.50
7.2.90.0170.00916.44
7.2.80.0210.00916.43
7.2.70.0200.00916.46
7.2.60.0170.01016.43
7.2.50.0190.00916.42
7.2.40.0190.01016.48
7.2.30.0190.01016.48
7.2.20.0190.00916.44
7.2.10.0190.00916.43
7.2.00.0190.00916.44
7.1.330.0190.00815.63
7.1.320.0190.00815.45
7.1.310.0200.00815.44
7.1.300.0190.00815.42
7.1.290.0170.00815.45
7.1.280.0180.00815.42
7.1.270.0170.00815.44
7.1.260.0160.00815.45
7.1.250.0190.00915.36
7.1.240.0200.00815.73
7.1.230.0190.00815.77
7.1.220.0180.00915.77
7.1.210.0210.00915.77
7.1.200.0180.00815.77
7.1.190.0170.00815.76
7.1.180.0180.00815.72
7.1.170.0180.00815.71
7.1.160.0180.00915.72
7.1.150.0200.00815.71
7.1.140.0180.00815.73
7.1.130.0180.00815.70
7.1.120.0200.00815.72
7.1.110.0180.00915.75
7.1.100.0180.00915.73
7.1.90.0190.00815.74
7.1.80.0180.00815.81
7.1.70.0180.00815.65
7.1.60.0180.00915.79
7.1.50.0180.00815.79
7.1.40.0170.00815.82
7.1.30.0180.00815.77
7.1.20.0170.00915.74
7.1.10.0160.00815.75
7.1.00.0190.00815.70

preferences:
38.07 ms | 401 KiB | 5 Q