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( strlen($a), strlen($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.49314.88
7.4.00.0030.52415.02
7.3.130.0100.51414.81
7.3.120.0100.49815.04
7.3.110.0030.49714.79
7.3.100.0030.50314.66
7.3.90.0070.48014.98
7.3.80.0030.48414.95
7.3.70.0100.50114.72
7.3.60.0030.50514.46
7.3.50.0070.49614.80
7.3.40.0100.49714.89
7.3.30.0000.50314.88
7.3.20.0030.50316.71
7.3.10.0030.48016.83
7.3.00.0070.50116.32
7.2.260.0100.51515.20
7.2.250.0070.51915.17
7.2.240.0070.50615.12
7.2.230.0070.50915.20
7.2.220.0000.50215.00
7.2.210.0030.47615.02
7.2.200.0100.48814.73
7.2.190.0070.49715.15
7.2.180.0030.48614.58
7.2.170.0000.50015.20
7.2.160.0100.47815.06
7.2.150.0000.50216.83
7.2.140.0070.48917.11
7.2.130.0020.50316.75
7.2.120.0030.49516.52
7.2.110.0070.48516.62
7.2.100.0030.48816.93
7.2.90.0100.47916.73
7.2.80.0070.49616.95
7.2.70.0000.50916.82
7.2.60.0050.48816.88
7.2.50.0030.49016.98
7.2.40.0070.49516.79
7.2.30.0070.50016.85
7.2.20.0030.50416.79
7.2.10.0100.49116.91
7.2.00.0030.50318.00
7.1.330.0100.49915.83
7.1.320.0030.50315.41
7.1.310.0000.50315.76
7.1.300.0030.50215.53
7.1.290.0070.48815.63
7.1.280.0030.50115.84
7.1.270.0030.50215.71
7.1.260.0030.49815.95
7.1.250.0070.47915.72
7.1.240.0030.49915.64
7.1.230.0100.49415.54
7.1.220.0000.50015.64
7.1.210.0100.48715.86
7.1.200.0050.49715.70
7.1.190.0070.49915.69
7.1.180.0070.48915.91
7.1.170.0070.49515.81
7.1.160.0070.48115.72
7.1.150.0030.47815.75
7.1.140.0030.48015.91
7.1.130.0070.49715.96
7.1.120.0100.49915.68
7.1.110.0070.49115.79
7.1.100.0030.50616.94
7.1.90.0070.48615.68
7.1.80.0070.49015.80
7.1.70.0030.50116.38
7.1.60.0030.49317.56
7.1.50.0100.51216.44
7.1.40.0000.49715.75
7.1.30.0130.49615.80
7.1.20.0000.50715.77
7.1.10.0000.50415.54
7.1.00.0000.52919.12
7.0.330.0030.49815.40
7.0.320.0070.49615.34
7.0.310.0070.49415.41
7.0.300.0100.48415.38
7.0.290.0030.49015.32
7.0.280.0030.50415.27
7.0.270.0030.49515.41
7.0.260.0000.49715.41
7.0.250.0030.48615.47
7.0.240.0000.50115.54
7.0.230.0000.50015.23
7.0.220.0000.50815.58
7.0.210.0030.50215.41
7.0.200.0030.50115.95
7.0.190.0100.50215.36
7.0.180.0030.51115.43
7.0.170.0100.48515.41
7.0.160.0030.50015.48
7.0.150.0030.48415.50
7.0.140.0030.51918.76
7.0.130.0070.48715.55
7.0.120.0000.48715.50
7.0.110.0030.50015.43
7.0.100.0130.50817.67
7.0.90.0120.46917.66
7.0.80.0080.53817.73
7.0.70.0100.53417.62
7.0.60.0020.47917.65
7.0.50.0200.52217.74
7.0.40.0080.55216.79
7.0.30.0050.46616.83
7.0.20.0100.53116.62
7.0.10.0070.54016.77
7.0.00.0100.52416.73
5.6.400.0030.50314.61
5.6.390.0100.47514.20
5.6.380.0100.49114.50
5.6.370.0030.49814.18
5.6.360.0070.49514.02
5.6.350.0030.50214.54
5.6.340.0000.50314.19
5.6.330.0070.48714.66
5.6.320.0000.50514.34
5.6.310.0030.47913.92
5.6.300.0030.48914.39
5.6.290.0070.49114.38
5.6.280.0030.53317.66
5.6.270.0030.49414.38
5.6.260.0070.49014.05
5.6.250.0030.46517.52
5.6.240.0030.53117.44
5.6.230.0050.55717.45
5.6.220.0050.53017.59
5.6.210.0070.54217.29
5.6.200.0120.52717.64
5.6.190.0100.57317.59
5.6.180.0070.56617.63
5.6.170.0030.53817.59
5.6.160.0040.53317.60
5.6.150.0050.54417.56
5.6.140.0020.48417.63
5.6.130.0080.46517.68
5.6.120.0070.48017.61
5.6.110.0030.46317.66
5.6.100.0030.47617.61
5.6.90.0280.46717.69
5.6.80.0080.53817.21
5.6.70.0050.47317.36
5.6.60.0080.56617.41
5.6.50.0070.54317.30
5.6.40.0120.51817.27
5.6.30.0080.47417.38
5.6.20.0080.55317.21
5.6.10.0050.54417.28
5.6.00.0150.55517.14
5.5.380.0070.48617.43
5.5.370.0100.53717.25
5.5.360.0050.56917.46
5.5.350.0050.56517.34
5.5.340.0070.56217.45
5.5.330.0070.51517.73
5.5.320.0050.53017.62
5.5.310.0020.48717.49
5.5.300.0050.50017.66
5.5.290.0030.47117.63
5.5.280.0030.47017.65
5.5.270.0070.46217.48
5.5.260.0020.48317.50
5.5.250.0020.48017.31
5.5.240.0030.47117.09
5.5.230.0030.53017.20
5.5.220.0030.56317.28
5.5.210.0080.50017.07
5.5.200.0070.53617.09
5.5.190.0050.55617.12
5.5.180.0100.53617.02
5.5.170.0070.47214.07
5.5.160.0070.53917.09
5.5.150.0030.55917.27
5.5.140.0050.55517.03
5.5.130.0050.55717.18
5.5.120.0050.55117.27
5.5.110.0100.55017.00
5.5.100.0100.54617.14
5.5.90.0080.55117.16
5.5.80.0050.56117.24
5.5.70.0070.57217.07
5.5.60.0080.54317.18
5.5.50.0050.53517.01
5.5.40.0120.51017.11
5.5.30.0020.52817.08
5.5.20.0300.51317.10
5.5.10.0100.54917.13
5.5.00.0120.55717.15
5.4.450.0030.01815.39
5.4.440.0030.02015.32
5.4.430.0030.01815.34
5.4.420.0050.01715.45
5.4.410.0080.03015.30
5.4.400.0080.04015.25
5.4.390.0070.03115.13
5.4.380.0030.04215.26
5.4.370.0050.01815.21
5.4.360.0030.02815.14
5.4.350.0100.02315.09
5.4.340.0110.02715.22
5.4.330.0070.00011.37
5.4.320.0060.03515.09
5.4.310.0050.04015.16
5.4.300.0030.02515.23
5.4.290.0030.04015.17
5.4.280.0020.04215.27
5.4.270.0070.03715.13
5.4.260.0050.02515.09
5.4.250.0050.03815.13
5.4.240.0100.03315.20
5.4.230.0100.02115.17
5.4.220.0060.04115.26
5.4.210.0070.02215.22
5.4.200.0050.03815.23
5.4.190.0040.03815.24
5.4.180.0020.03015.15
5.4.170.0030.03915.19
5.4.160.0130.02715.08
5.4.150.0050.04315.07
5.4.140.0130.02813.83
5.4.130.0030.03913.79
5.4.120.0100.04013.79
5.4.110.0080.03513.88
5.4.100.0080.03813.84
5.4.90.0030.03813.79
5.4.80.0060.04313.90
5.4.70.0070.03713.85
5.4.60.0050.04213.84
5.4.50.0030.04313.89
5.4.40.0070.04013.85
5.4.30.0080.03513.88
5.4.20.0050.02813.87
5.4.10.0080.04313.82
5.4.00.0080.03013.55
5.3.290.0020.03513.00
5.3.280.0080.02812.96
5.3.270.0020.03612.99
5.3.260.0050.02212.96
5.3.250.0100.04012.92
5.3.240.0060.04012.95
5.3.230.0070.04012.92
5.3.220.0070.03212.97
5.3.210.0050.03712.95
5.3.200.0050.04212.90
5.3.190.0020.03412.89
5.3.180.0080.03612.97
5.3.170.0000.04212.89
5.3.160.0020.04612.95
5.3.150.0000.04412.95
5.3.140.0130.03512.96
5.3.130.0060.02312.92
5.3.120.0080.04012.93
5.3.110.0070.04212.89
5.3.100.0070.03312.70
5.3.90.0090.02512.68
5.3.80.0050.02612.70
5.3.70.0030.02112.63
5.3.60.0050.02212.69
5.3.50.0050.02212.66
5.3.40.0020.02212.64
5.3.30.0010.02112.63
5.3.20.0020.02412.58
5.3.10.0050.01512.58
5.3.00.0050.03712.58
5.2.170.0070.03313.78
5.2.160.0070.04013.78
5.2.150.0070.04013.78
5.2.140.0070.03713.78
5.2.130.0000.03313.78
5.2.120.0030.02313.78
5.2.110.0000.03313.78
5.2.100.0030.04713.78
5.2.90.0000.03713.78
5.2.80.0100.05713.78
5.2.70.0100.05313.78
5.2.60.0070.02313.78
5.2.50.0030.02713.78
5.2.40.0070.02713.78
5.2.30.0000.03313.78
5.2.20.0000.03713.78
5.2.10.0030.03013.78
5.2.00.0000.03013.78
5.1.60.0030.02013.78
5.1.50.0070.02313.78
5.1.40.0000.02713.78
5.1.30.0000.03713.78
5.1.20.0000.02713.78
5.1.10.0070.02313.78
5.1.00.0030.03013.78
5.0.50.0100.04013.78
5.0.40.0130.03713.78
5.0.30.0000.05313.78
5.0.20.0030.04713.78
5.0.10.0070.04013.78
5.0.00.0000.06013.78
4.4.90.0000.01713.78
4.4.80.0000.01713.78
4.4.70.0000.02313.78
4.4.60.0070.01013.78
4.4.50.0030.01313.78
4.4.40.0000.04013.78
4.4.30.0030.01013.78
4.4.20.0000.03313.78
4.4.10.0070.03313.78
4.4.00.0000.06013.78
4.3.110.0000.03313.78
4.3.100.0070.03013.78
4.3.90.0030.03013.78
4.3.80.0030.05313.78
4.3.70.0000.03313.78
4.3.60.0030.03313.78
4.3.50.0000.03313.78
4.3.40.0000.05713.78
4.3.30.0000.03313.78
4.3.20.0000.03713.78
4.3.10.0030.03713.78
4.3.00.0030.03313.78

preferences:
40.56 ms | 400 KiB | 5 Q