3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bcrypt = password_hash('blabla', PASSWORD_DEFAULT); $sha256 = hash_hmac('sha512', $bcrypt, $bcrypt); var_dump($bcrypt, $sha256);

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.2.60.0070.07016.77
7.2.00.0060.06819.20
7.1.200.0070.06515.70
7.1.100.0030.07017.83
7.1.70.0030.06417.04
7.1.60.0170.11319.32
7.1.50.0070.06816.87
7.1.00.0030.16722.48
7.0.200.0360.05916.64
7.0.140.0070.15721.99
7.0.60.0130.15719.96
7.0.50.0070.16017.80
7.0.40.0170.11020.23
7.0.30.0300.15720.13
7.0.20.0270.14320.09
7.0.10.0100.14320.16
7.0.00.0070.11720.10
5.6.280.0000.16020.77
5.6.210.0100.16020.60
5.6.200.0100.09718.22
5.6.190.0130.13020.60
5.6.180.3400.10320.49
5.6.170.0230.10720.55
5.6.160.0030.10320.54
5.6.150.0070.14318.18
5.6.140.0030.10318.12
5.6.130.0070.10018.11
5.6.120.0030.12021.02
5.6.110.0070.09721.02
5.6.100.0130.14321.02
5.6.90.0100.12320.91
5.6.80.0100.09020.43
5.6.70.4470.09720.34
5.5.350.0070.10720.37
5.5.340.0100.15717.98
5.5.330.0070.14020.49
5.5.320.0330.11020.25
5.5.310.0230.15720.23
5.5.300.0030.11318.06
5.5.290.0070.09318.08
5.5.280.0030.14720.89
5.5.270.0100.16320.79
5.5.260.0130.13720.84
5.5.250.0070.12320.69
5.5.240.0230.13720.25
5.4.450.0800.06319.58
5.4.440.0770.06719.27
5.4.430.0900.05319.46
5.4.420.0730.06019.60
5.4.410.0700.06719.36
5.4.400.0730.05319.16
5.4.390.0730.05718.78
5.4.380.0630.06018.80
5.4.370.0900.06718.99
5.4.360.0800.05318.94
5.4.350.0930.04719.29
5.4.340.0060.03911.97
5.4.320.0080.03512.45
5.4.310.0060.03712.45
5.4.300.0100.03312.45
5.4.290.0080.03512.45
5.4.280.0060.03512.34
5.4.270.0080.03412.35
5.4.260.0090.03512.34
5.4.250.0080.03512.34
5.4.240.0110.03012.35
5.4.230.0060.03712.34
5.4.220.0100.03812.34
5.4.210.0060.03612.34
5.4.200.0070.04112.34
5.4.190.0050.03612.33
5.4.180.0080.03412.33
5.4.170.0090.03912.35
5.4.160.0050.03912.34
5.4.150.0060.03612.34
5.4.140.0070.03812.02
5.4.130.0130.02912.01
5.4.120.0070.03411.96
5.4.110.0060.03611.96
5.4.100.0050.03711.96
5.4.90.0070.03511.97
5.4.80.0050.03711.96
5.4.70.0060.03711.96
5.4.60.0060.03611.96
5.4.50.0080.03311.96
5.4.40.0070.03311.95
5.4.30.0060.03811.95
5.4.20.0040.04011.95
5.4.10.0080.03211.95
5.4.00.0090.03611.44
5.3.290.0040.04812.80
5.3.280.0090.03412.71
5.3.270.0050.04012.72
5.3.260.0080.03712.72
5.3.250.0050.03912.72
5.3.240.0080.03412.72
5.3.230.0050.03812.71
5.3.220.0090.03912.68
5.3.210.0080.04112.68
5.3.200.0070.03612.68
5.3.190.0050.03812.68
5.3.180.0050.03712.67
5.3.170.0070.03412.67
5.3.160.0050.03712.67
5.3.150.0070.03412.68
5.3.140.0070.03512.66
5.3.130.0060.03812.66
5.3.120.0070.03612.66
5.3.110.0080.04212.66
5.3.100.0060.03612.12
5.3.90.0020.04012.09
5.3.80.0040.03712.07
5.3.70.0060.03512.08
5.3.60.0050.04012.06
5.3.50.0070.03412.00
5.3.40.0080.03512.00
5.3.30.0070.03311.94
5.3.20.0070.03411.73
5.3.10.0050.03511.70
5.3.00.0070.03511.68
5.2.170.0060.0299.18
5.2.160.0050.0359.18
5.2.150.0050.0309.18
5.2.140.0080.0289.18
5.2.130.0040.0299.14
5.2.120.0020.0319.14
5.2.110.0050.0299.15
5.2.100.0080.0249.14
5.2.90.0050.0279.14
5.2.80.0050.0299.13
5.2.70.0040.0309.14
5.2.60.0040.0309.09
5.2.50.0050.0299.06
5.2.40.0070.0279.04
5.2.30.0050.0289.01
5.2.20.0040.0289.00
5.2.10.0060.0258.92
5.2.00.0050.0298.78
5.1.60.0050.0238.06
5.1.50.0030.0288.06
5.1.40.0010.0278.04
5.1.30.0040.0268.39
5.1.20.0040.0258.42
5.1.10.0020.0278.14
5.1.00.0060.0248.14
5.0.50.0030.0206.62
5.0.40.0020.0206.48
5.0.30.0030.0316.29
5.0.20.0030.0196.26
5.0.10.0060.0176.24
5.0.00.0040.0296.23
4.4.90.0000.0174.78
4.4.80.0030.0154.76
4.4.70.0020.0164.75
4.4.60.0010.0234.76
4.4.50.0040.0164.77
4.4.40.0050.0224.71
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0060.0114.67
4.3.90.0050.0124.64
4.3.80.0040.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0154.63
4.3.50.0040.0164.63
4.3.40.0050.0234.54
4.3.30.0040.0143.28
4.3.20.0030.0153.26
4.3.10.0010.0173.22
4.3.00.0200.0276.71

preferences:
37.51 ms | 401 KiB | 5 Q