3v4l.org

run code in 300+ PHP versions simultaneously
<?php $random_string = function($length) { $bag = str_split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'); $string = ''; while ($length--) { $string .= $bag[array_rand($bag)]; } return $string; }; $client_id = $random_string(16); $client_secret = base_64(hash('sha256', uniqid(microtime(1), true))); var_dump($client_id, $client_secret);

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.3.10.0100.00316.48
7.3.00.0070.00716.50
7.2.130.0070.01116.71
7.2.120.0090.00916.74
7.2.110.0000.01416.91
7.2.100.0070.00716.93
7.2.90.0030.01316.91
7.2.80.0090.00617.03
7.2.70.0100.00016.97
7.2.60.0040.01116.86
7.2.50.0000.01216.88
7.2.40.0000.01017.01
7.2.30.0100.00317.17
7.2.20.0090.00916.94
7.2.10.0050.00516.97
7.2.00.0050.01017.91
7.1.250.0060.00315.67
7.1.70.0030.00316.86
7.1.60.0140.00419.32
7.1.50.0040.00717.02
7.1.00.0000.08022.44
7.0.200.0000.01016.55
7.0.140.0030.07322.07
7.0.60.0100.05019.98
7.0.50.0030.05317.87
7.0.40.0070.05719.98
7.0.30.0330.07020.09
7.0.20.0330.07720.20
7.0.10.0130.04720.30
7.0.00.0100.04720.05
5.6.280.0100.06721.03
5.6.210.0070.07720.48
5.6.200.0070.08318.18
5.6.190.0070.08020.60
5.6.180.0500.03320.47
5.6.170.0300.08020.46
5.6.160.0230.05720.46
5.6.150.0130.07318.16
5.6.140.0070.08318.14
5.6.130.0100.03318.13
5.6.120.0000.06320.93
5.6.110.0100.08720.98
5.6.100.0100.06020.98
5.6.90.0170.07721.10
5.6.80.0000.04020.48
5.5.350.0170.08020.32
5.5.340.0030.08018.02
5.5.330.0070.08020.43
5.5.320.0430.07720.34
5.5.310.0200.03720.53
5.5.300.0070.06717.98
5.5.290.0070.06317.93
5.5.280.0070.07020.86
5.5.270.0030.09020.75
5.5.260.0100.08320.96
5.5.250.0130.07720.78
5.5.240.0130.05720.07
5.4.450.0330.05719.17
5.4.440.0730.07019.65
5.4.430.0670.06019.55
5.4.420.0930.06019.19
5.4.410.1270.07019.41
5.4.400.1100.04718.88
5.4.390.0870.05719.23
5.4.380.0670.05018.75
5.4.370.0500.06018.51
5.4.360.0230.06018.50
5.4.350.0300.05718.47
5.4.340.0400.05018.79
5.4.320.0050.03612.52
5.4.310.0050.03712.51
5.4.300.0070.03412.51
5.4.290.0090.03412.50
5.4.280.0050.03512.40
5.4.270.0060.03712.40
5.4.260.0030.04012.41
5.4.250.0100.03312.40
5.4.240.0070.03512.40
5.4.230.0060.03812.40
5.4.220.0070.03612.40
5.4.210.0030.03812.39
5.4.200.0060.03712.39
5.4.190.0040.03912.39
5.4.180.0070.03612.39
5.4.170.0070.03412.41
5.4.160.0030.03912.40
5.4.150.0060.03512.39
5.4.140.0070.03512.08
5.4.130.0070.03812.06
5.4.120.0070.04212.02
5.4.110.0040.03612.02
5.4.100.0040.03612.02
5.4.90.0060.03712.02
5.4.80.0030.03912.02
5.4.70.0030.03712.02
5.4.60.0030.03712.02
5.4.50.0050.03512.02
5.4.40.0030.03812.00
5.4.30.0070.03512.00
5.4.20.0060.03512.00
5.4.10.0040.03512.00
5.4.00.0060.03411.49
5.3.290.0040.04012.80
5.3.280.0040.03812.71
5.3.270.0040.04012.72
5.3.260.0040.04012.72
5.3.250.0040.04612.72
5.3.240.0050.04212.72
5.3.230.0050.04012.71
5.3.220.0070.03512.68
5.3.210.0060.03712.68
5.3.200.0010.04012.68
5.3.190.0060.03712.68
5.3.180.0050.03712.67
5.3.170.0040.03812.67
5.3.160.0070.03612.67
5.3.150.0050.04312.67
5.3.140.0040.03712.66
5.3.130.0080.04012.65
5.3.120.0120.04912.66
5.3.110.0090.05112.66
5.3.100.0110.04712.13
5.3.90.0040.04112.11
5.3.80.0060.03612.10
5.3.70.0040.03912.10
5.3.60.0050.03812.09
5.3.50.0020.04012.03
5.3.40.0070.03412.03
5.3.30.0040.03611.99
5.3.20.0090.03711.77
5.3.10.0050.03811.74
5.3.00.0060.03511.72
5.2.170.0020.0339.18
5.2.160.0050.0289.18
5.2.150.0020.0329.18
5.2.140.0040.0309.18
5.2.130.0040.0299.14
5.2.120.0030.0299.13
5.2.110.0030.0309.14
5.2.100.0030.0299.14
5.2.90.0080.0259.14
5.2.80.0030.0329.14
5.2.70.0070.0289.14
5.2.60.0040.0309.09
5.2.50.0050.0309.05
5.2.40.0030.0309.03
5.2.30.0130.0299.01
5.2.20.0030.0299.00
5.2.10.0040.0288.93
5.2.00.0030.0318.78
5.1.60.0070.0218.07
5.1.50.0040.0248.06
5.1.40.0070.0208.05
5.1.30.0060.0238.40
5.1.20.0030.0308.42
5.1.10.0050.0248.14
5.1.00.0040.0268.14
5.0.50.0020.0226.63
5.0.40.0020.0206.48
5.0.30.0030.0316.29
5.0.20.0040.0186.27
5.0.10.0020.0216.23
5.0.00.0040.0306.23
4.4.90.0040.0144.78
4.4.80.0030.0154.76
4.4.70.0030.0154.75
4.4.60.0000.0174.76
4.4.50.0020.0154.77
4.4.40.0010.0274.71
4.4.30.0010.0174.76
4.4.20.0040.0134.84
4.4.10.0040.0134.85
4.4.00.0040.0234.76
4.3.110.0040.0144.67
4.3.100.0030.0144.66
4.3.90.0040.0134.63
4.3.80.0020.0244.58
4.3.70.0010.0154.63
4.3.60.0050.0124.63
4.3.50.0020.0164.63
4.3.40.0030.0234.54
4.3.30.0030.0143.29
4.3.20.0040.0143.26
4.3.10.0020.0153.22
4.3.00.0100.0276.85

preferences:
41.68 ms | 400 KiB | 5 Q