3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 0 => 2, 1 => 7, 2 => 5, 3 => 2, 4 => 2, 5 => 3 ]; echo array_rand(array_flip(array_keys ($a, min($a))));

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.30.0120.00716.78
8.0.20.0190.00916.81
8.0.10.0190.01016.93
8.0.00.0150.00916.90
7.4.160.0210.01016.44
7.4.150.0160.01316.49
7.4.140.0180.01316.36
7.4.130.0140.01016.40
7.4.120.0140.01416.32
7.4.110.0160.01216.41
7.4.100.0160.00916.43
7.4.90.0180.01016.25
7.4.80.0160.00916.40
7.4.70.0170.01116.36
7.4.60.0180.00716.32
7.4.50.0190.00716.29
7.4.40.0190.00916.23
7.4.30.0160.01116.31
7.4.20.0190.00816.47
7.4.10.0270.00316.36
7.4.00.0060.01415.98
7.3.280.0120.00516.21
7.3.270.0180.01216.16
7.3.260.0250.00416.05
7.3.250.0170.01116.12
7.3.240.0200.00416.15
7.3.230.0150.01016.11
7.3.220.0280.00416.06
7.3.210.0130.01316.03
7.3.200.0170.00916.05
7.3.190.0170.01016.05
7.3.180.0200.00716.02
7.3.170.0120.01216.03
7.3.160.0170.00816.04
7.3.150.0170.01216.08
7.3.140.0120.01216.07
7.3.130.0120.01016.10
7.3.120.0100.00815.61
7.3.110.0120.01215.61
7.3.100.0110.01015.69
7.3.90.0130.00515.43
7.3.80.0100.00715.35
7.3.70.0080.01015.49
7.3.60.0070.01015.50
7.3.50.0110.00615.49
7.3.40.0100.00615.42
7.3.30.0080.00715.45
7.3.20.0120.01015.95
7.3.10.0150.00615.88
7.3.00.0350.00715.98
7.2.340.0220.00916.21
7.2.330.0230.00716.18
7.2.320.0150.01316.17
7.2.310.0220.01016.17
7.2.300.0210.00716.22
7.2.290.0250.00716.15
7.2.280.0230.00916.20
7.2.270.0240.01016.20
7.2.260.0210.01216.15
7.2.250.0260.00915.73
7.2.240.0160.01215.70
7.2.230.0190.01015.74
7.2.220.0150.01115.66
7.2.210.0170.01015.49
7.2.200.0160.00815.63
7.2.190.0130.00815.61
7.2.180.0160.01015.57
7.2.170.0080.01315.63
7.2.160.0200.00815.94
7.2.150.0200.00815.93
7.2.140.0180.01015.90
7.2.130.0230.00816.03
7.2.120.0260.01016.03
7.2.110.0200.00715.96
7.2.100.0180.00815.91
7.2.90.0180.01115.97
7.2.80.0220.00915.89
7.2.70.0130.01615.93
7.2.60.0500.01115.92
7.2.50.0190.01015.95
7.2.40.0270.00616.00
7.2.30.0160.01315.91
7.2.20.0160.01115.92
7.2.10.0170.01015.90
7.2.00.0110.01616.01
7.1.330.0220.00615.62
7.1.320.0150.00915.09
7.1.310.0160.00715.07
7.1.300.0160.00715.16
7.1.290.0160.00615.10
7.1.280.0140.00915.14
7.1.270.0240.00815.15
7.1.260.0150.00915.08
7.1.250.0200.00814.86
7.1.240.0240.01215.34
7.1.230.0160.01115.45
7.1.220.0210.01015.51
7.1.210.0200.01315.49
7.1.200.0200.01015.48
7.1.190.0220.00915.46
7.1.180.0190.01215.41
7.1.170.0190.00915.45
7.1.160.0220.01115.41
7.1.150.0190.00815.39
7.1.140.0210.01015.47
7.1.130.0230.00815.37
7.1.120.0190.01115.43
7.1.110.0220.00815.31
7.1.100.0230.00515.30
7.1.90.0250.00815.37
7.1.80.0160.01215.38
7.1.70.0190.01215.30
7.1.60.0220.00915.41
7.1.50.0200.00715.46
7.1.40.0500.00915.43
7.1.30.0210.00715.45
7.1.20.0270.00915.44
7.1.10.0190.00915.41
7.1.00.0180.01215.33

preferences:
49.28 ms | 403 KiB | 5 Q