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 = base64_encode(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.120.0000.01614.53
7.3.110.0040.00414.91
7.3.100.0090.00615.01
7.3.90.0030.01014.52
7.3.80.0040.00815.16
7.3.70.0040.01014.78
7.3.60.0030.01014.76
7.3.50.0030.01014.72
7.3.40.0130.00014.75
7.3.30.0030.01014.40
7.3.20.0060.00916.34
7.3.10.0040.01416.68
7.3.00.0000.01216.64
7.2.240.0000.01315.16
7.2.230.0030.01215.20
7.2.220.0060.00814.92
7.2.210.0090.00914.98
7.2.200.0130.00314.98
7.2.190.0090.00614.79
7.2.180.0140.00315.12
7.2.170.0060.00914.75
7.2.160.0140.00315.17
7.2.150.0160.00016.98
7.2.140.0030.00616.86
7.2.130.0060.00916.86
7.2.120.0030.01416.68
7.2.110.0070.00717.01
7.2.100.0030.01316.66
7.2.90.0030.01316.66
7.2.80.0030.01017.04
7.2.70.0110.00417.04
7.2.60.0150.00416.58
7.2.50.0040.01216.86
7.2.40.0060.01016.88
7.2.30.0040.01116.96
7.2.20.0040.01117.03
7.2.10.0080.00617.01
7.2.00.0050.01018.26
7.1.330.0070.00715.92
7.1.320.0030.01015.88
7.1.310.0000.01315.76
7.1.300.0130.00315.77
7.1.290.0090.00615.84
7.1.280.0030.01415.88
7.1.270.0120.00415.78
7.1.260.0080.00815.83
7.1.250.0130.00315.89
7.1.70.0030.00817.15
7.1.60.0090.00617.22
7.1.50.0110.01116.63
7.1.00.0070.07322.36
7.0.200.0000.01616.88
7.0.140.0030.07722.07
7.0.60.0030.04019.93
7.0.50.0000.04317.89
7.0.40.0030.07720.23
7.0.30.0230.05320.30
7.0.20.0200.05720.23
7.0.10.0000.05320.18
7.0.00.0100.05020.05
5.6.280.0000.07721.07
5.6.210.0070.07320.71
5.6.200.0070.04318.14
5.6.190.0130.04720.61
5.6.180.0500.07320.34
5.6.170.0330.07020.46
5.6.160.0000.04320.46
5.6.150.0000.07018.19
5.6.140.0070.04018.18
5.6.130.0030.08718.14
5.6.120.0070.04020.96
5.6.110.0230.06321.11
5.6.100.0030.04021.00
5.6.90.0030.04021.00
5.6.80.0130.07320.38
5.5.350.0130.09020.41
5.5.340.0130.07017.97
5.5.330.0030.05720.44
5.5.320.0270.03720.32
5.5.310.0270.07320.51
5.5.300.0070.04317.98
5.5.290.0130.06018.04
5.5.280.0100.08020.89
5.5.270.0100.07320.73
5.5.260.0130.07720.64
5.5.250.0070.06020.70
5.5.240.0170.03720.18
5.4.450.0300.05719.39
5.4.440.0370.06719.52
5.4.430.0730.05319.63
5.4.420.1130.05319.38
5.4.410.1200.05019.29
5.4.400.0800.04319.15
5.4.390.0730.05319.01
5.4.380.0330.05018.53
5.4.370.0270.06318.78
5.4.360.0370.06018.52
5.4.350.0330.06718.57
5.4.340.0230.05718.78
5.4.320.0030.04012.51
5.4.310.0050.05012.51
5.4.300.0080.03812.51
5.4.290.0090.03412.51
5.4.280.0060.03412.40
5.4.270.0080.04112.41
5.4.260.0100.03812.40
5.4.250.0110.03912.40
5.4.240.0080.03712.41
5.4.230.0060.04212.39
5.4.220.0050.03712.39
5.4.210.0040.03912.40
5.4.200.0050.04012.39
5.4.190.0110.03412.39
5.4.180.0050.03712.39
5.4.170.0040.03812.40
5.4.160.0070.03612.40
5.4.150.0050.03712.39
5.4.140.0070.04212.08
5.4.130.0050.04412.07
5.4.120.0050.03812.03
5.4.110.0080.03412.02
5.4.100.0080.03412.02
5.4.90.0050.03712.02
5.4.80.0070.03512.02
5.4.70.0050.03512.02
5.4.60.0040.03512.02
5.4.50.0090.03512.01
5.4.40.0060.03412.00
5.4.30.0040.03812.00
5.4.20.0030.03812.00
5.4.10.0060.03312.00
5.4.00.0090.03311.49
5.3.290.0050.04112.80
5.3.280.0070.03712.71
5.3.270.0040.04012.72
5.3.260.0040.04012.72
5.3.250.0050.03712.72
5.3.240.0070.03512.72
5.3.230.0060.03812.71
5.3.220.0110.03312.68
5.3.210.0060.04012.68
5.3.200.0050.03712.68
5.3.190.0130.03712.68
5.3.180.0080.03512.67
5.3.170.0080.03512.67
5.3.160.0050.03912.67
5.3.150.0070.03712.68
5.3.140.0070.03612.66
5.3.130.0060.03812.66
5.3.120.0070.03812.66
5.3.110.0050.03912.66
5.3.100.0120.03112.13
5.3.90.0030.04012.11
5.3.80.0070.03712.10
5.3.70.0070.03712.10
5.3.60.0060.03712.09
5.3.50.0040.03812.04
5.3.40.0040.03912.04
5.3.30.0050.03611.99
5.3.20.0020.03911.77
5.3.10.0050.03511.73
5.3.00.0090.03311.72
5.2.170.0040.0319.18
5.2.160.0060.0279.18
5.2.150.0040.0309.18
5.2.140.0030.0319.18
5.2.130.0090.0249.14
5.2.120.0030.0309.14
5.2.110.0060.0279.14
5.2.100.0060.0279.14
5.2.90.0050.0299.14
5.2.80.0080.0269.14
5.2.70.0030.0319.14
5.2.60.0040.0309.09
5.2.50.0030.0309.05
5.2.40.0050.0289.04
5.2.30.0050.0299.02
5.2.20.0040.0299.01
5.2.10.0050.0288.93
5.2.00.0020.0318.78
5.1.60.0070.0218.07
5.1.50.0060.0238.06
5.1.40.0080.0218.05
5.1.30.0060.0298.39
5.1.20.0030.0288.42
5.1.10.0050.0258.14
5.1.00.0020.0288.14
5.0.50.0030.0226.62
5.0.40.0020.0216.48
5.0.30.0040.0306.29
5.0.20.0040.0196.27
5.0.10.0030.0206.23
5.0.00.0040.0306.23
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0030.0254.70
4.4.30.0020.0174.76
4.4.20.0030.0154.84
4.4.10.0060.0124.85
4.4.00.0040.0234.76
4.3.110.0020.0164.67
4.3.100.0050.0144.67
4.3.90.0040.0134.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0020.0184.63
4.3.40.0010.0254.54
4.3.30.0020.0153.28
4.3.20.0040.0133.26
4.3.10.0020.0153.22
4.3.00.0070.0206.85

preferences:
35.51 ms | 400 KiB | 5 Q