3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 16; list($usec, $sec) = explode(' ', microtime()); mt_srand((float) $sec + ((float) $usec * 100000)); $inputs = array_merge(range('z','a'),range(0,9),range('A','Z')); for($i=0; $i<$length; $i++) { $key .= $inputs{mt_rand(0,61)}; } return strtoupper($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.10.0030.01314.61
7.4.00.0030.01315.13
7.3.130.0040.01214.89
7.3.120.0110.00414.91
7.3.110.0120.00314.65
7.3.100.0060.00814.71
7.3.90.0110.00514.74
7.3.80.0040.00714.95
7.3.70.0030.01114.82
7.3.60.0090.00514.74
7.3.50.0070.00614.82
7.3.40.0050.00914.64
7.3.30.0040.00914.77
7.3.20.0080.00916.43
7.3.10.0060.00916.53
7.3.00.0090.00516.69
7.2.260.0070.01115.36
7.2.250.0100.00715.04
7.2.240.0050.00815.09
7.2.230.0120.00515.17
7.2.220.0060.00915.29
7.2.210.0050.01015.18
7.2.200.0090.00515.07
7.2.190.0020.01415.05
7.2.180.0030.01014.93
7.2.170.0110.00315.02
7.2.160.0080.01014.78
7.2.150.0090.00616.85
7.2.140.0030.01416.82
7.2.130.0050.00916.91
7.2.120.0060.00716.88
7.2.110.0040.00916.95
7.2.100.0080.00516.87
7.2.90.0050.00816.88
7.2.80.0050.00816.83
7.2.70.0060.00816.87
7.2.60.0040.00916.92
7.2.50.0060.00816.88
7.2.40.0060.00616.81
7.2.30.0070.00716.88
7.2.20.0050.00917.05
7.2.10.0060.00916.85
7.2.00.0100.00517.43
7.1.330.0040.01115.77
7.1.320.0030.01015.54
7.1.310.0070.00715.82
7.1.300.0090.00615.86
7.1.290.0060.00615.70
7.1.280.0070.00715.92
7.1.270.0060.00915.70
7.1.260.0050.00715.81
7.1.250.0060.00615.66
7.1.240.0030.01415.77
7.1.230.0080.00015.80
7.1.220.0070.01015.77
7.1.210.0070.00715.68
7.1.200.0100.00716.01
7.1.190.0070.00715.99
7.1.180.0000.01115.86
7.1.170.0070.00715.88
7.1.160.0140.00015.50
7.1.150.0070.00715.70
7.1.140.0100.00315.87
7.1.130.0030.00915.85
7.1.120.0090.00615.82
7.1.110.0040.00715.82
7.1.100.0080.00716.97
7.1.90.0040.00815.66
7.1.80.0070.00715.88
7.1.70.0130.01215.69
7.1.60.0220.01224.68
7.1.50.0220.01324.50
7.1.40.0230.01124.28
7.1.30.0450.01224.36
7.1.20.0290.00924.32
7.1.10.0130.00915.36
7.1.00.0100.01015.35
7.0.330.0060.00615.21
7.0.320.0030.01015.43
7.0.310.0000.01215.55
7.0.300.0030.01015.41
7.0.290.0040.00415.39
7.0.280.0070.00315.21
7.0.270.0070.00415.18
7.0.260.0030.00915.13
7.0.250.0030.01015.64
7.0.240.0080.00015.55
7.0.230.0040.00415.55
7.0.220.0000.01115.55
7.0.210.0100.00315.47
7.0.200.0130.01215.27
7.0.190.0140.01015.26
7.0.180.0190.01014.93
7.0.170.0110.01215.01
7.0.160.0160.00915.07
7.0.150.0120.01314.95
7.0.140.0140.00815.13
7.0.130.0170.00715.13
7.0.120.0150.00815.18
7.0.110.0110.01315.11
7.0.100.0130.01215.14
7.0.90.0130.00914.85
7.0.80.0130.01115.12
7.0.70.0170.00615.05
7.0.60.0130.00814.99
7.0.50.0120.00815.08
7.0.40.0150.00914.12
7.0.30.0180.00914.10
7.0.20.0200.00813.94
7.0.10.0170.00914.08
7.0.00.0160.00714.01
5.6.400.0150.00014.24
5.6.390.0030.01014.32
5.6.380.0030.00914.29
5.6.370.0090.00314.29
5.6.360.0040.01114.34
5.6.350.0030.00714.74
5.6.340.0030.01014.45
5.6.330.0100.00314.53
5.6.320.0040.00814.78
5.6.310.0030.00514.36
5.6.300.0060.00914.50
5.6.290.0040.00414.31
5.6.280.0080.00614.79
5.6.270.0030.00614.53
5.6.260.0000.01214.18
5.6.250.0030.01214.60
5.6.240.0030.01314.34
5.6.230.0070.00714.22
5.6.220.0030.00614.69
5.6.210.0040.00714.26
5.6.200.0120.00614.63
5.6.190.0070.01014.29
5.6.180.0030.01314.48
5.6.170.0080.00814.27
5.6.160.0100.00314.34
5.6.150.0000.01314.20
5.6.140.0030.01214.33
5.6.130.0100.00314.16
5.6.120.0030.01014.53
5.6.110.0030.00614.16
5.6.100.0000.00914.29
5.6.90.0060.00614.32
5.6.80.0060.00914.51
5.6.70.0030.01214.57
5.6.60.0060.00614.30
5.6.50.0040.00714.38
5.6.40.0030.00914.41
5.6.30.0060.00614.17
5.6.20.0090.00314.56
5.6.10.0040.01114.13
5.6.00.0000.00814.43

preferences:
32.85 ms | 401 KiB | 5 Q