3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "meow"; $b = $a . "\0woef"; $a = hash_hmac('sha512', $a, 'boegaboe'); $b = hash_hmac('sha512', $b, 'boegaboe'); 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.4.10.0070.51715.10
7.4.00.0070.51015.00
7.3.130.0100.51314.93
7.3.120.0090.49614.60
7.3.110.0060.50714.79
7.3.100.0080.48514.73
7.3.90.0070.49414.77
7.3.80.0040.49514.78
7.3.70.0050.49414.65
7.3.60.0060.49714.62
7.3.50.0060.48714.66
7.3.40.0070.48314.66
7.3.30.0030.49614.63
7.3.20.0040.49216.60
7.3.10.0060.48816.61
7.3.00.0040.49116.58
7.2.260.0100.51314.83
7.2.250.0070.52014.85
7.2.240.0070.50615.04
7.2.230.0040.49214.83
7.2.220.0050.48914.98
7.2.210.0020.49814.98
7.2.200.0070.49014.89
7.2.190.0030.49614.93
7.2.180.0050.49614.92
7.2.170.0080.48914.96
7.2.160.0040.49514.85
7.2.150.0080.48416.83
7.2.140.0060.49816.83
7.2.130.0060.49616.97
7.2.120.0020.49216.82
7.2.110.0070.48316.67
7.2.100.0030.49616.77
7.2.90.0070.48516.88
7.2.80.0030.49616.81
7.2.70.0060.48616.82
7.2.60.0020.49616.73
7.2.50.0080.48916.75
7.2.40.0080.49716.85
7.2.30.0070.48716.89
7.2.20.0060.48516.94
7.2.10.0040.49816.77
7.2.00.0070.49017.53
7.1.330.0060.50115.82
7.1.320.0040.48815.79
7.1.310.0030.49315.89
7.1.300.0060.48615.73
7.1.290.0030.49615.69
7.1.280.0030.49215.84
7.1.270.0030.49615.69
7.1.260.0060.49215.66
7.1.250.0040.49115.64
7.1.240.0030.49215.66
7.1.230.0050.50015.53
7.1.220.0030.49215.51
7.1.210.0050.49215.55
7.1.200.0040.49615.73
7.1.190.0030.49215.67
7.1.180.0080.49315.85
7.1.170.0050.49815.67
7.1.160.0030.49815.62
7.1.150.0020.49715.70
7.1.140.0120.49015.86
7.1.130.0020.50315.60
7.1.120.0080.49315.82
7.1.110.0050.49215.73
7.1.100.0020.50316.54
7.1.90.0050.49815.63
7.1.80.0000.49815.74
7.1.70.0030.49016.30
7.1.60.0060.50416.84
7.1.50.0290.49115.97
7.1.40.0020.50315.71
7.1.30.0030.49315.73
7.1.20.0070.48915.86
7.1.10.0070.48915.65
7.1.00.0070.50017.99
7.0.330.0070.49415.35
7.0.320.0050.49415.59
7.0.310.0020.49715.45
7.0.300.0020.49715.47
7.0.290.0030.48915.41
7.0.280.0070.49115.32
7.0.270.0050.50215.24
7.0.260.0020.49915.32
7.0.250.0020.49415.58
7.0.240.0070.49615.32
7.0.230.0030.49115.47
7.0.220.0030.48515.58
7.0.210.0070.49815.36
7.0.200.0490.48815.94
7.0.190.0030.49815.31
7.0.180.0000.49715.48
7.0.170.0030.50115.46
7.0.160.0050.49515.31
7.0.150.0050.50115.50
7.0.140.0040.51317.65
7.0.130.0050.49215.42
7.0.120.0020.49515.36
7.0.110.0020.50115.50
7.0.100.0030.49816.96
7.0.90.0080.52116.92
7.0.80.0020.54016.90
7.0.70.0040.50616.79
7.0.60.0060.52416.88
7.0.50.0090.53816.99
7.0.40.0030.49415.66
7.0.30.0060.53515.70
7.0.20.0010.49915.62
7.0.10.0080.49115.58
7.0.00.0060.48415.62
5.6.400.0030.50514.59
5.6.390.0000.50814.30
5.6.380.0070.49614.37
5.6.370.0050.49414.39
5.6.360.0080.49614.30
5.6.350.0030.50314.45
5.6.340.0030.49114.33
5.6.330.0070.49214.28
5.6.320.0030.50114.54
5.6.310.0020.50914.36
5.6.300.0070.50113.97
5.6.290.0050.50214.18
5.6.280.0030.52316.53
5.6.270.0050.49914.35
5.6.260.0020.50314.04
5.6.250.0040.51116.34
5.6.240.0030.52516.40
5.6.230.0030.48916.29
5.6.220.0030.52716.40
5.6.210.0060.53716.29
5.6.200.0030.52716.57
5.6.190.0040.48916.57
5.6.180.0070.49916.60
5.6.170.0020.51816.51
5.6.160.0020.49916.62
5.6.150.0040.50916.54
5.6.140.0070.51616.50
5.6.130.0040.53316.58
5.6.120.0100.48616.63
5.6.110.0030.52416.53
5.6.100.0060.52916.52
5.6.90.0060.53116.68
5.6.80.0210.47216.34
5.6.70.0070.52516.25
5.6.60.0080.52016.41
5.6.50.0080.52116.14
5.6.40.0020.53316.19
5.6.30.0100.51216.15
5.6.20.0040.53016.20
5.6.10.0060.51516.25
5.6.00.0070.52116.27
5.5.380.0070.52816.19
5.5.370.0020.51316.45
5.5.360.0030.53316.15
5.5.350.0030.49216.35
5.5.340.0070.52416.35
5.5.330.0060.50116.37
5.5.320.0020.53816.48
5.5.310.0060.50216.53
5.5.300.0020.53116.44
5.5.290.0070.52516.44
5.5.280.0070.52816.47
5.5.270.0070.51816.45
5.5.260.0060.53316.36
5.5.250.0030.51116.49
5.5.240.0020.51916.15
5.5.230.0060.52716.14
5.5.220.0030.52516.17
5.5.210.0080.53116.16
5.5.200.0050.51916.13
5.5.190.0080.53016.11
5.5.180.0020.52316.09
5.5.170.0070.48714.27
5.5.160.0060.51516.16
5.5.150.0060.53216.27
5.5.140.0040.50416.08
5.5.130.0040.51516.10
5.5.120.0090.52316.12
5.5.110.0030.52516.23
5.5.100.0060.52316.14
5.5.90.0030.52916.06
5.5.80.0040.48216.07
5.5.70.0040.51916.07
5.5.60.0060.52016.04
5.5.50.0030.51916.04
5.5.40.0060.51216.11
5.5.30.0090.51916.02
5.5.20.0020.50116.17
5.5.10.0040.47416.15
5.5.00.0090.51016.09
5.4.450.0030.03414.99
5.4.440.0030.03114.95
5.4.430.0070.02614.87
5.4.420.0040.02814.94
5.4.410.0030.02514.90
5.4.400.0050.02714.86
5.4.390.0090.02514.84
5.4.380.0030.03114.85
5.4.370.0030.01414.75
5.4.360.0080.02314.75
5.4.350.0020.03214.86
5.4.340.0030.03014.81
5.4.330.0040.00412.73
5.4.320.0030.02014.85
5.4.310.0010.03014.81
5.4.300.0060.02614.76
5.4.290.0070.02214.81
5.4.280.0000.03214.76
5.4.270.0030.01714.83
5.4.260.0040.03014.75
5.4.250.0030.03014.83
5.4.240.0020.03014.83
5.4.230.0020.03014.87
5.4.220.0020.03314.83
5.4.210.0030.02814.79
5.4.200.0020.02614.83
5.4.190.0030.03014.84
5.4.180.0030.02814.80
5.4.170.0050.02814.84
5.4.160.0030.02614.85
5.4.150.0030.02914.86
5.4.140.0090.01313.91
5.4.130.0040.02513.86
5.4.120.0050.02813.82
5.4.110.0030.02713.94
5.4.100.0040.02813.95
5.4.90.0030.02113.96
5.4.80.0030.02713.92
5.4.70.0080.02413.89
5.4.60.0070.02213.91
5.4.50.0110.02013.88
5.4.40.0050.01813.96
5.4.30.0030.02713.95
5.4.20.0040.02813.89
5.4.10.0040.02713.90
5.4.00.0080.02313.71
5.3.290.0040.02713.33
5.3.280.0050.03013.35
5.3.270.0050.02813.35
5.3.260.0030.02813.31
5.3.250.0020.03013.34
5.3.240.0050.03013.31
5.3.230.0050.02313.31
5.3.220.0020.02013.29
5.3.210.0030.03013.34
5.3.200.0040.03013.31
5.3.190.0050.02313.34
5.3.180.0060.02813.34
5.3.170.0040.02813.30
5.3.160.0060.02713.33
5.3.150.0030.02113.33
5.3.140.0070.02713.29
5.3.130.0030.02813.28
5.3.120.0050.02313.31
5.3.110.0040.03013.29
5.3.100.0050.02813.15
5.3.90.0040.03113.14
5.3.80.0080.02413.15
5.3.70.0030.02813.12
5.3.60.0040.03113.13
5.3.50.0070.02613.12
5.3.40.0020.02613.06
5.3.30.0020.03113.12
5.3.20.0020.03013.00
5.3.10.0030.02813.02
5.3.00.0060.02613.03
5.2.170.0070.04011.81
5.2.160.0070.03311.81
5.2.150.0030.06311.81
5.2.140.0030.05311.81
5.2.130.0130.05011.81
5.2.120.0030.05711.81
5.2.110.0070.05311.81
5.2.100.0000.07011.81
5.2.90.0070.06011.81
5.2.80.0070.06011.81
5.2.70.0100.06011.81
5.2.60.0070.05311.81
5.2.50.0070.04311.81
5.2.40.0100.05011.81
5.2.30.0030.06311.81
5.2.20.0070.06011.81
5.2.10.0070.05011.81
5.2.00.0030.05311.81
5.1.60.0070.02711.81
5.1.50.0030.04011.81
5.1.40.0070.02711.81
5.1.30.0070.04011.81
5.1.20.0070.05011.81
5.1.10.0000.05711.81
5.1.00.0130.03011.81
5.0.50.0030.04011.81
5.0.40.0070.03711.81
5.0.30.0000.04711.81
5.0.20.0030.02311.81
5.0.10.0030.04311.81
5.0.00.0030.06711.81
4.4.90.0000.03311.81
4.4.80.0000.03711.81
4.4.70.0030.02711.81
4.4.60.0000.03711.81
4.4.50.0000.03711.81
4.4.40.0000.05011.81
4.4.30.0000.03011.81
4.4.20.0000.02311.81
4.4.10.0030.03711.81
4.4.00.0000.05711.81
4.3.110.0030.03011.81
4.3.100.0030.03311.81
4.3.90.0000.03711.81
4.3.80.0000.05311.81
4.3.70.0030.03711.81
4.3.60.0000.03711.81
4.3.50.0070.03311.81
4.3.40.0000.03711.81
4.3.30.0030.03711.81
4.3.20.0000.03311.81
4.3.10.0000.03711.81
4.3.00.0000.03311.81

preferences:
68.16 ms | 401 KiB | 5 Q