3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "meow"; $b = $a . "\0woef"; $a = hash_hmac($a, 'boegaboe'); $b = hash_hmac($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.0030.51914.65
7.4.00.0030.51014.96
7.3.130.0070.51914.45
7.3.120.0100.50414.72
7.3.110.0100.49814.77
7.3.100.0050.50414.71
7.3.90.0050.50014.58
7.3.80.0080.49214.92
7.3.70.0080.49214.48
7.3.60.0030.48314.63
7.3.50.0070.49314.68
7.3.40.0050.49714.65
7.3.30.0030.49114.53
7.3.20.0030.49116.46
7.3.10.0090.49116.44
7.3.00.0100.49016.58
7.2.260.0100.51914.63
7.2.250.0080.51015.04
7.2.240.0050.51014.98
7.2.230.0050.49914.82
7.2.220.0030.50314.97
7.2.210.0050.50615.00
7.2.200.0020.50115.00
7.2.190.0080.48615.05
7.2.180.0100.49714.75
7.2.170.0020.50014.90
7.2.160.0100.50514.88
7.2.150.0000.49416.73
7.2.140.0030.50916.86
7.2.130.0050.50316.62
7.2.120.0040.50016.74
7.2.110.0050.49516.71
7.2.100.0070.49516.78
7.2.90.0100.49516.69
7.2.80.0080.48916.70
7.2.70.0070.49516.55
7.2.60.0110.49216.82
7.2.50.0070.49916.60
7.2.40.0050.49816.42
7.2.30.0070.49116.71
7.2.20.0050.49516.65
7.2.10.0020.50516.75
7.2.00.0080.49517.68
7.1.330.0030.50715.67
7.1.320.0030.49915.78
7.1.310.0070.49415.61
7.1.300.0030.50415.63
7.1.290.0070.50515.49
7.1.280.0020.50515.39
7.1.270.0000.49815.63
7.1.260.0020.49515.78
7.1.250.0050.50215.60
7.1.240.0030.49615.23
7.1.230.0100.51115.67
7.1.220.0070.49315.40
7.1.210.0000.50615.40
7.1.200.0070.48515.70
7.1.190.0030.50615.68
7.1.180.0000.50415.61
7.1.170.0030.49615.51
7.1.160.0030.49515.54
7.1.150.0070.49115.63
7.1.140.0030.48415.49
7.1.130.0030.49915.67
7.1.120.0030.50815.55
7.1.110.0070.48815.80
7.1.100.0020.50516.99
7.1.90.0070.48415.65
7.1.80.0070.48915.69
7.1.70.0030.48916.49
7.1.60.0050.49417.46
7.1.50.0030.49116.02
7.1.40.0030.49515.63
7.1.30.0100.49515.67
7.1.20.0030.49315.70
7.1.10.0000.50315.60
7.1.00.0050.51918.97
7.0.330.0100.50015.15
7.0.320.0070.49815.33
7.0.310.0070.48815.46
7.0.300.0070.49815.05
7.0.290.0030.50315.24
7.0.280.0000.50515.21
7.0.270.0030.50115.24
7.0.260.0030.49715.30
7.0.250.0070.48915.28
7.0.240.0070.48115.37
7.0.230.0100.49314.91
7.0.220.0000.50515.51
7.0.210.0030.49915.23
7.0.200.0020.48916.04
7.0.190.0000.50415.30
7.0.180.0030.50315.02
7.0.170.0160.49015.04
7.0.160.0030.48715.09
7.0.150.0070.49815.30
7.0.140.0000.51318.75
7.0.130.0000.50015.16
7.0.120.0000.50215.24
7.0.110.0030.49415.18
7.0.100.0030.47817.46
7.0.90.0050.48417.56
7.0.80.0020.52317.72
7.0.70.0120.52917.65
7.0.60.0030.50517.59
7.0.50.0070.50917.79
7.0.40.0030.47416.60
7.0.30.0080.54116.65
7.0.20.0050.50716.66
7.0.10.0080.53316.66
7.0.00.0030.53616.74
5.6.400.0070.48514.10
5.6.390.0030.49514.18
5.6.380.0070.49514.14
5.6.370.0070.49214.10
5.6.360.0030.49313.95
5.6.350.0030.49313.91
5.6.340.0030.49314.10
5.6.330.0030.50114.34
5.6.320.0070.50014.46
5.6.310.0000.50614.00
5.6.300.0030.49814.09
5.6.290.0000.50414.16
5.6.280.0080.52117.77
5.6.270.0070.48614.19
5.6.260.0070.49214.34
5.6.250.0030.46617.51
5.6.240.0000.48917.29
5.6.230.0080.47517.42
5.6.220.0080.54217.34
5.6.210.0030.54717.47
5.6.200.0050.53317.42
5.6.190.0030.54317.44
5.6.180.0030.49017.77
5.6.170.0050.52317.70
5.6.160.0080.53217.68
5.6.150.0020.52917.49
5.6.140.0050.54717.66
5.6.130.0100.53917.36
5.6.120.0020.48517.52
5.6.110.0070.52317.59
5.6.100.0000.55417.52
5.6.90.0070.55117.59
5.6.80.0050.53717.18
5.6.70.0120.52417.23
5.6.60.0030.54317.20
5.6.50.0030.54117.23
5.6.40.0030.52617.13
5.6.30.0030.54117.22
5.6.20.0030.54217.09
5.6.10.0030.52417.10
5.6.00.0030.46617.19
5.5.380.0030.46617.37
5.5.370.0050.48917.25
5.5.360.0080.54017.46
5.5.350.0050.54917.19
5.5.340.0130.53717.33
5.5.330.0070.54117.36
5.5.320.0050.52017.33
5.5.310.0050.49117.51
5.5.300.0000.49417.60
5.5.290.0030.51217.56
5.5.280.0050.54617.34
5.5.270.0020.50217.59
5.5.260.0030.52917.39
5.5.250.0050.51817.22
5.5.240.0100.46817.01
5.5.230.0030.52017.10
5.5.220.0020.54717.31
5.5.210.0030.55417.25
5.5.200.0000.54017.00
5.5.190.0080.53517.12
5.5.180.0050.46717.09
5.5.170.0030.48613.82
5.5.160.0030.53817.13
5.5.150.0300.48617.11
5.5.140.0050.54517.16
5.5.130.0080.51617.06
5.5.120.0070.53717.22
5.5.110.0070.54317.18
5.5.100.0050.52317.02
5.5.90.0050.52817.18
5.5.80.0030.53817.13
5.5.70.0080.55117.19
5.5.60.0020.53117.14
5.5.50.0070.53117.19
5.5.40.0020.54917.08
5.5.30.0020.53117.23
5.5.20.0050.53617.27
5.5.10.0070.53417.14
5.5.00.0080.52516.97
5.4.450.0060.04515.96
5.4.440.0030.02715.87
5.4.430.0030.04015.77
5.4.420.0050.03815.85
5.4.410.0070.02315.93
5.4.400.0050.02015.69
5.4.390.0080.02715.61
5.4.380.0050.03815.61
5.4.370.0030.03915.61
5.4.360.0060.03115.73
5.4.350.0030.02215.69
5.4.340.0030.03915.63
5.4.330.0030.00312.44
5.4.320.0090.03415.63
5.4.310.0050.03215.67
5.4.300.0030.02015.78
5.4.290.0050.03715.79
5.4.280.0070.03915.69
5.4.270.0030.04115.77
5.4.260.0080.03715.74
5.4.250.0030.01815.70
5.4.240.0050.03315.76
5.4.230.0050.03815.76
5.4.220.0070.03715.79
5.4.210.0080.03715.75
5.4.200.0080.03515.79
5.4.190.0030.04215.73
5.4.180.0030.03415.70
5.4.170.0070.03815.77
5.4.160.0050.02815.72
5.4.150.0050.03315.68
5.4.140.0050.03814.40
5.4.130.0000.02514.35
5.4.120.0050.04614.36
5.4.110.0020.03214.37
5.4.100.0090.01814.41
5.4.90.0040.02314.32
5.4.80.0100.01614.43
5.4.70.0060.01514.38
5.4.60.0030.02114.36
5.4.50.0050.01814.42
5.4.40.0020.02214.46
5.4.30.0080.01714.42
5.4.20.0050.02014.34
5.4.10.0020.02314.41
5.4.00.0010.02414.12
5.3.290.0120.02713.55
5.3.280.0030.03713.51
5.3.270.0050.01813.49
5.3.260.0070.03313.50
5.3.250.0000.02113.45
5.3.240.0030.04213.43
5.3.230.0050.04013.47
5.3.220.0040.02613.51
5.3.210.0000.02613.48
5.3.200.0000.02513.48
5.3.190.0040.02013.50
5.3.180.0050.02113.47
5.3.170.0020.02113.49
5.3.160.0030.02313.48
5.3.150.0020.02213.47
5.3.140.0070.01713.45
5.3.130.0040.02013.43
5.3.120.0030.02013.47
5.3.110.0060.01513.49
5.3.100.0020.02213.23
5.3.90.0030.02013.20
5.3.80.0000.02013.23
5.3.70.0050.01713.16
5.3.60.0040.01813.20
5.3.50.0020.01913.18
5.3.40.0110.01513.20
5.3.30.0020.02413.16
5.3.20.0030.03313.05
5.3.10.0020.02412.98
5.3.00.0030.01913.04
5.2.170.0000.02710.99
5.2.160.0000.03310.98
5.2.150.0100.04011.21
5.2.140.0030.07011.16
5.2.130.0000.03011.15
5.2.120.0100.05711.09
5.2.110.0000.04711.15
5.2.100.0000.03011.06
5.2.90.0070.02311.18
5.2.80.0000.03011.09
5.2.70.0100.02011.14
5.2.60.0100.02710.89
5.2.50.0100.02710.98
5.2.40.0070.02310.86
5.2.30.0030.02710.93
5.2.20.0000.03010.95
5.2.10.0030.02710.90
5.2.00.0000.03010.84
5.1.60.0030.02310.84
5.1.50.0000.02710.84
5.1.40.0030.02310.84
5.1.30.0100.01310.84
5.1.20.0000.02710.84
5.1.10.0000.02310.84
5.1.00.0030.02310.84
5.0.50.0000.02010.84
5.0.40.0000.01710.84
5.0.30.0000.02710.84
5.0.20.0030.02010.84
5.0.10.0030.02010.84
5.0.00.0130.01310.84
4.4.90.0000.01710.84
4.4.80.0030.01310.84
4.4.70.0000.01710.84
4.4.60.0000.01710.84
4.4.50.0030.01710.84
4.4.40.0000.02310.84
4.4.30.0000.02010.84
4.4.20.0070.01010.84
4.4.10.0000.01710.84
4.4.00.0030.02010.84
4.3.110.0000.01710.84
4.3.100.0000.01310.84
4.3.90.0000.01710.84
4.3.80.0000.02710.84
4.3.70.0000.01310.84
4.3.60.0000.01710.84
4.3.50.0000.01710.84
4.3.40.0000.02310.84
4.3.30.0000.01710.84
4.3.20.0000.01710.84
4.3.10.0000.01710.84
4.3.00.0030.01310.84

preferences:
44.16 ms | 400 KiB | 5 Q