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); function meow($string) { $callback = function($char) { return str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT); }; return array_map($callback, str_split($string)); } var_dump( $a, $b, meow($a), meow($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.0100.51414.91
7.4.00.0100.50215.08
7.3.130.0130.50114.92
7.3.120.0070.52014.73
7.3.110.0100.51715.05
7.3.100.0030.50715.08
7.3.90.0030.49814.89
7.3.80.0030.49514.77
7.3.70.0100.50214.75
7.3.60.0230.49714.93
7.3.50.0030.50314.78
7.3.40.0130.48714.88
7.3.30.0070.50714.89
7.3.20.0030.50416.80
7.3.10.0030.50016.74
7.3.00.0030.48916.49
7.2.260.0170.50415.05
7.2.250.0000.52715.29
7.2.240.0030.50914.74
7.2.230.0030.50614.82
7.2.220.0030.50514.94
7.2.210.0130.48515.23
7.2.200.0030.49915.03
7.2.190.0070.50315.04
7.2.180.0030.50115.01
7.2.170.0070.49615.16
7.2.160.0070.50314.90
7.2.150.0170.48516.96
7.2.140.0070.50616.92
7.2.130.0030.50316.92
7.2.120.0030.49616.95
7.2.110.0030.50616.91
7.2.100.0030.50616.85
7.2.90.0070.50416.98
7.2.80.0030.50816.91
7.2.70.0000.51116.82
7.2.60.0100.48816.83
7.2.50.0030.51216.56
7.2.40.0030.50216.88
7.2.30.0000.50616.70
7.2.20.0030.50816.93
7.2.10.0030.48916.88
7.2.00.0100.49816.70
7.1.330.0000.51215.77
7.1.320.0100.48815.84
7.1.310.0030.49815.70
7.1.300.0070.49515.50
7.1.290.0030.50115.63
7.1.280.0000.51215.59
7.1.270.0070.48215.71
7.1.260.0070.49815.53
7.1.250.0030.50115.85
7.1.240.0000.49715.73
7.1.230.0030.50915.77
7.1.220.0030.49915.88
7.1.210.0070.48515.67
7.1.200.0130.48315.79
7.1.190.0100.50315.59
7.1.180.0070.49915.84
7.1.170.0100.50815.80
7.1.160.0030.50615.50
7.1.150.0000.50715.71
7.1.140.0000.51015.77
7.1.130.0000.51315.84
7.1.120.0070.51215.77
7.1.110.0000.49615.58
7.1.100.0030.49915.70
7.1.90.0030.50415.55
7.1.80.0070.49915.61
7.1.70.0030.53316.45
7.1.60.0100.52117.58
7.1.50.0050.53616.13
7.1.40.0030.48815.73
7.1.30.0070.49415.62
7.1.20.0070.50115.75
7.1.10.0030.50115.45
7.1.00.0070.53218.99
7.0.330.0130.48615.44
7.0.320.0030.49315.45
7.0.310.0070.49615.07
7.0.300.0030.48515.36
7.0.290.0030.50215.30
7.0.280.0030.49115.34
7.0.270.0030.48815.31
7.0.260.0100.49115.27
7.0.250.0070.50215.48
7.0.240.0100.49215.49
7.0.230.0030.50315.39
7.0.220.0100.48715.54
7.0.210.0030.48815.45
7.0.200.0070.48916.09
7.0.190.0070.48815.38
7.0.180.0030.49915.34
7.0.170.0070.50615.51
7.0.160.0070.49315.30
7.0.150.0030.50415.27
7.0.140.0070.51918.83
7.0.130.0030.50715.58
7.0.120.0100.49515.29
7.0.110.0030.49715.55
7.0.100.0080.49817.75
7.0.90.0120.53617.70
7.0.80.0020.54117.66
7.0.70.0080.51217.77
7.0.60.0080.53817.74
7.0.50.0020.52917.88
7.0.40.0070.48916.63
7.0.30.0000.53216.69
7.0.20.0000.54216.78
7.0.10.0070.54816.80
7.0.00.0070.55016.66
5.6.400.0000.49614.36
5.6.390.0030.50414.45
5.6.380.0070.48714.64
5.6.370.0070.50314.30
5.6.360.0070.48814.59
5.6.350.0100.49414.69
5.6.340.0100.49314.28
5.6.330.0030.50614.54
5.6.320.0030.49814.30
5.6.310.0070.50214.40
5.6.300.0070.50614.29
5.6.290.0070.49714.70
5.6.280.0070.50414.29
5.6.270.0130.49814.33
5.6.260.0030.51214.29
5.6.250.0120.54717.53
5.6.240.0080.54117.35
5.6.230.0100.53917.38
5.6.220.0080.50617.33
5.6.210.0080.54817.41
5.6.200.0070.54117.73
5.6.190.0050.47817.65
5.6.180.0050.52317.68
5.6.170.0050.54017.66
5.6.160.0050.48017.65
5.6.150.0050.55117.61
5.6.140.0030.54317.64
5.6.130.0050.53817.68
5.6.120.0050.55617.61
5.6.110.0080.54917.77
5.6.100.0070.53617.71
5.6.90.0030.53117.72
5.6.80.0050.53517.31
5.6.70.0080.54117.22
5.6.60.0030.51917.19
5.6.50.0020.51717.32
5.6.40.0050.50517.27
5.6.30.0030.52017.29
5.6.20.0050.53917.24
5.6.10.0030.48817.28
5.6.00.0050.48617.24
5.5.380.0050.48817.30
5.5.370.0030.53317.27
5.5.360.0080.53917.35
5.5.350.0070.54717.21
5.5.340.0080.54017.59
5.5.330.0050.53017.38
5.5.320.0120.52117.50
5.5.310.0070.49917.40
5.5.300.0050.54317.51
5.5.290.0070.54217.50
5.5.280.0030.54017.53
5.5.270.0100.54017.53
5.5.260.0070.51017.45
5.5.250.0070.53517.52
5.5.240.0080.54417.24
5.5.230.0030.48617.23
5.5.220.0100.53917.17
5.5.210.0030.53717.20
5.5.200.0050.50917.23
5.5.190.0050.55617.23
5.5.180.0030.51517.27
5.5.170.0070.48714.34
5.5.160.0070.49217.19
5.5.150.0030.46517.10
5.5.140.0050.53917.14
5.5.130.0070.54317.23
5.5.120.0050.52117.21
5.5.110.0030.54917.20
5.5.100.0030.52917.26
5.5.90.0030.53717.05
5.5.80.0020.54817.24
5.5.70.0070.53317.23
5.5.60.0080.52417.09
5.5.50.0030.54917.24
5.5.40.0050.55017.08
5.5.30.0080.53417.13
5.5.20.0030.47417.24
5.5.10.0070.54016.96
5.5.00.0100.54016.93
5.4.450.0070.03815.21
5.4.440.0070.02215.32
5.4.430.0020.02215.18
5.4.420.0000.04715.29
5.4.410.0070.04015.04
5.4.400.0070.03815.06
5.4.390.0090.03715.04
5.4.380.0120.03014.99
5.4.370.0080.02314.92
5.4.360.0030.03315.01
5.4.350.0110.03515.01
5.4.340.0050.03015.16
5.4.330.0030.00310.84
5.4.320.0030.02815.04
5.4.310.0020.02015.12
5.4.300.0050.02214.95
5.4.290.0070.03215.11
5.4.280.0030.03814.97
5.4.270.0070.02315.17
5.4.260.0070.02015.21
5.4.250.0020.04214.97
5.4.240.0050.03814.87
5.4.230.0070.03215.00
5.4.220.0020.04015.01
5.4.210.0030.02314.89
5.4.200.0080.03215.13
5.4.190.0030.04415.11
5.4.180.0050.04314.89
5.4.170.0050.03814.85
5.4.160.0030.02314.95
5.4.150.0070.03714.97
5.4.140.0080.03813.52
5.4.130.0070.03213.58
5.4.120.0030.03713.69
5.4.110.0020.04213.57
5.4.100.0070.03013.81
5.4.90.0060.03713.67
5.4.80.0070.02313.76
5.4.70.0060.02513.76
5.4.60.0030.04213.78
5.4.50.0020.03813.72
5.4.40.0030.04113.65
5.4.30.0070.02313.70
5.4.20.0050.03013.59
5.4.10.0090.03013.81
5.4.00.0080.03613.46
5.3.290.0050.02012.44
5.3.280.0050.04512.46
5.3.270.0020.03512.46
5.3.260.0060.03312.45
5.3.250.0030.02612.47
5.3.240.0020.04312.26
5.3.230.0030.02612.40
5.3.220.0050.04012.44
5.3.210.0080.02912.39
5.3.200.0000.02412.32
5.3.190.0050.03812.38
5.3.180.0060.04012.54
5.3.170.0060.04012.48
5.3.160.0020.04412.50
5.3.150.0070.03812.55
5.3.140.0050.04312.40
5.3.130.0080.03212.48
5.3.120.0090.03912.49
5.3.110.0060.02412.46
5.3.100.0080.03512.25
5.3.90.0060.02312.17
5.3.80.0120.03712.14
5.3.70.0080.03612.06
5.3.60.0080.03812.19
5.3.50.0030.04312.17
5.3.40.0000.04212.06
5.3.30.0030.02312.09
5.3.20.0020.02511.87
5.3.10.0070.03211.92
5.3.00.0000.04611.76
5.2.170.0030.06011.19
5.2.160.0030.05011.28
5.2.150.0000.04011.25
5.2.140.0070.06011.25
5.2.130.0100.06011.19
5.2.120.0030.04311.09
5.2.110.0030.03711.10
5.2.100.0100.05711.19
5.2.90.0000.06310.96
5.2.80.0070.05711.02
5.2.70.0030.06011.09
5.2.60.0070.06010.99
5.2.50.0100.04010.94
5.2.40.0030.03311.14
5.2.30.0000.05011.08
5.2.20.0000.04010.89
5.2.10.0070.05710.80
5.2.00.0030.06310.80
5.1.60.0070.05010.09
5.1.50.0030.04010.07
5.1.40.0030.03010.07
5.1.30.0030.05710.32
5.1.20.0070.05310.27
5.1.10.0030.06010.08
5.1.00.0030.04310.14
5.0.50.0030.0478.65
5.0.40.0070.0278.50
5.0.30.0000.0708.31
5.0.20.0100.0278.22
5.0.10.0000.0338.28
5.0.00.0030.0608.22
4.4.90.0030.0378.22
4.4.80.0100.0308.22
4.4.70.0030.0178.22
4.4.60.0000.0378.22
4.4.50.0000.0308.22
4.4.40.0030.0578.22
4.4.30.0070.0208.22
4.4.20.0000.0408.22
4.4.10.0000.0378.22
4.4.00.0030.0538.22
4.3.110.0000.0408.22
4.3.100.0000.0338.22
4.3.90.0070.0308.22
4.3.80.0030.0538.22
4.3.70.0070.0338.22
4.3.60.0030.0308.22
4.3.50.0000.0238.22
4.3.40.0000.0538.22
4.3.30.0070.0278.22
4.3.20.0000.0378.22
4.3.10.0000.0378.22
4.3.00.0100.0278.22

preferences:
38.47 ms | 400 KiB | 5 Q