3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "meow"; $b = $a . "\0woef"; $a = hash_hmac('sha512', $a, 'boegaboe', true); $b = hash_hmac('sha512', $b, 'boegaboe', true); var_dump( $a, $b, password_hash($a, PASSWORD_BCRYPT, ['salt' => 'boeschrikboeschrikboe!', 'cost' => 12]), password_hash($b, PASSWORD_BCRYPT, ['salt' => 'boeschrikboeschrikboe!', 'cost' => 12]) );

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.80.0100.48316.25
7.2.60.0030.49216.65
7.2.00.0030.50519.47
7.1.200.0000.49315.82
7.1.100.0030.52317.81
7.1.70.0000.49017.14
7.1.60.0100.55819.70
7.1.50.0000.55117.04
7.1.00.0070.55022.31
7.0.200.0100.47716.79
7.0.140.0130.54021.92
7.0.80.0400.56719.93
7.0.70.0430.58019.91
7.0.60.0300.55319.87
7.0.50.0370.53320.28
7.0.40.0070.58020.10
7.0.30.0070.58320.05
7.0.20.0130.57720.13
7.0.10.0100.57720.09
7.0.00.0100.58320.02
5.6.280.0070.56321.13
5.6.230.0030.61320.75
5.6.220.0070.43720.66
5.6.210.0100.43720.66
5.6.200.0070.59021.05
5.6.190.0430.43021.11
5.6.180.0000.44720.94
5.6.170.0070.46721.05
5.6.160.0030.46321.05
5.6.150.0100.43720.98
5.6.140.0030.58721.04
5.6.130.0170.58320.88
5.6.120.0170.56321.10
5.6.110.0070.52721.04
5.6.100.0070.58720.93
5.6.90.0070.60320.93
5.6.80.0100.52720.27
5.6.70.0100.58720.49
5.6.60.0100.52720.40
5.6.50.0100.58020.49
5.6.40.0030.59020.34
5.6.30.0730.51720.40
5.6.20.0030.58320.36
5.6.10.0170.57320.29
5.6.00.0030.47020.45
5.5.370.0100.56320.44
5.5.360.0070.58320.34
5.5.350.0100.59020.45
5.5.340.0100.57020.86
5.5.330.0100.60320.91
5.5.320.0070.57720.80
5.5.310.0200.55720.73
5.5.300.0000.53320.86
5.5.290.0100.53720.88
5.5.280.0070.54720.77
5.5.270.0100.47720.80
5.5.260.0030.45720.93
5.5.250.0130.55020.69
5.5.240.0030.44320.30
5.5.230.0100.59020.29
5.5.220.0070.59720.23
5.5.210.0170.57720.17
5.5.200.0070.55020.15
5.5.190.0070.50320.24
5.5.180.0030.57320.08
5.5.160.0100.59320.07
5.5.150.0070.44320.12
5.5.140.0070.52720.21
5.5.130.0000.47020.27
5.5.120.0100.54720.26
5.5.110.0070.49320.20
5.5.100.0000.51320.11
5.5.90.0000.46319.94
5.5.80.0000.55320.16
5.5.70.0030.45319.92
5.5.60.0030.50020.00
5.5.50.0070.50320.05
5.5.40.0030.44320.14
5.5.30.0170.56319.92
5.5.20.0100.53720.04
5.5.10.0070.60020.03
5.5.00.0070.53020.10
5.4.450.0030.07319.41
5.4.440.0170.07319.27
5.4.430.0030.04319.46
5.4.420.0070.03719.39
5.4.410.0100.07319.29
5.4.400.0030.05319.03
5.4.390.0070.07719.23
5.4.380.0200.06319.16
5.4.370.0030.06319.14
5.4.360.0030.08019.13
5.4.350.0200.04019.13
5.4.340.0030.05719.11
5.4.320.0100.08019.06
5.4.310.0070.03318.94
5.4.300.0030.05319.22
5.4.290.0000.04018.96
5.4.280.0030.04019.23
5.4.270.0100.03018.96
5.4.260.0030.03719.05
5.4.250.0070.04719.22
5.4.240.0000.05319.05
5.4.230.0100.02318.82
5.4.220.0000.04018.77
5.4.210.0100.07719.11
5.4.200.0030.04019.11
5.4.190.0070.03019.11
5.4.180.0130.07019.10
5.4.170.0100.07018.89
5.4.160.0170.06318.87
5.4.150.0170.06019.01
5.4.140.0000.05316.35
5.4.130.0030.07716.28
5.4.120.0030.06716.25
5.4.110.0000.05316.21
5.4.100.0030.05016.42
5.4.90.0070.07316.43
5.4.80.0000.04716.42
5.4.70.0000.05016.32
5.4.60.0100.06316.35
5.4.50.0130.04316.27
5.4.40.0100.07016.28
5.4.30.0130.03016.39
5.4.20.0000.04016.19
5.4.10.0070.03716.32
5.4.00.0100.07315.73
5.3.290.0030.04314.68
5.3.280.0030.03714.42
5.3.270.0070.07314.59
5.3.260.0070.07714.61
5.3.250.0170.05714.59
5.3.240.0070.05014.43
5.3.230.0100.05314.59
5.3.220.0130.07714.48
5.3.210.0100.04314.38
5.3.200.0230.05314.43
5.3.190.0270.02714.55
5.3.180.0100.07714.42
5.3.170.0100.07014.54
5.3.160.0170.06714.56
5.3.150.0030.04314.47
5.3.140.0000.05314.54
5.3.130.0070.07714.41
5.3.120.0100.07314.37
5.3.110.0030.06714.39
5.3.100.0000.06314.02
5.3.90.0130.07013.88
5.3.80.0000.07313.98
5.3.70.0000.04313.88
5.3.60.0100.06713.96
5.3.50.0100.04313.71
5.3.40.0030.04313.93
5.3.30.0030.06313.67
5.3.20.0030.05013.65
5.3.10.0000.06013.59
5.3.00.0000.08013.63
5.2.170.0070.05713.51
5.2.160.0070.02713.51
5.2.150.0000.03313.51
5.2.140.0000.03713.51
5.2.130.0000.06013.51
5.2.120.0000.03713.51
5.2.110.0070.06313.51
5.2.100.0100.03313.51
5.2.90.0070.02013.51
5.2.80.0000.02713.51
5.2.70.0030.02713.51
5.2.60.0070.05713.51
5.2.50.0000.02713.51
5.2.40.0000.02713.51
5.2.30.0030.02313.51
5.2.20.0030.02313.51
5.2.10.0000.02713.51
5.2.00.0030.02313.51
5.1.60.0000.05713.51
5.1.50.0030.05713.51
5.1.40.0070.03713.51
5.1.30.0000.04013.51
5.1.20.0100.04013.51
5.1.10.0070.03313.51
5.1.00.0000.03313.51
5.0.50.0070.04313.51
5.0.40.0070.03013.51
5.0.30.0030.04313.51
5.0.20.0000.02313.51
5.0.10.0000.04713.51
5.0.00.0030.03013.51
4.4.90.0030.01013.51
4.4.80.0000.02313.51
4.4.70.0000.01313.51
4.4.60.0000.01313.51
4.4.50.0030.02013.51
4.4.40.0030.01713.51
4.4.30.0030.03313.51
4.4.20.0030.03313.51
4.4.10.0000.01713.51
4.4.00.0000.04313.51
4.3.110.0000.02713.51
4.3.100.0070.03713.51
4.3.90.0030.03313.51
4.3.80.0000.02713.51
4.3.70.0000.02313.51
4.3.60.0000.03713.51
4.3.50.0070.03013.51
4.3.40.0030.04313.51
4.3.30.0030.02713.51
4.3.20.0030.03013.51
4.3.10.0030.03313.51
4.3.00.0000.02713.51

preferences:
39.92 ms | 400 KiB | 5 Q