3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12)); echo $hash . '<br />'; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);

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.49914.87
7.4.00.0070.51814.71
7.3.130.0100.51314.73
7.3.120.0030.49714.81
7.3.110.0070.51814.57
7.3.100.0070.49514.93
7.3.90.0130.46914.89
7.3.80.0030.49514.84
7.3.70.0030.50114.73
7.3.60.0030.49914.64
7.3.50.0070.48714.88
7.3.40.0070.50014.68
7.3.30.0070.49914.75
7.3.20.0070.48416.41
7.3.10.0070.49416.43
7.3.00.0030.50316.55
7.2.260.0030.49015.22
7.2.250.0030.52314.87
7.2.240.0100.50115.00
7.2.230.0070.50015.11
7.2.220.0100.50714.88
7.2.210.0030.50514.81
7.2.200.0070.50715.04
7.2.190.0030.49515.13
7.2.180.0070.49415.05
7.2.170.0030.50714.77
7.2.160.0030.50114.80
7.2.150.0030.50016.85
7.2.140.0030.49017.04
7.2.130.0030.50016.98
7.2.120.0050.49716.88
7.2.110.0030.50616.94
7.2.100.0070.49916.96
7.2.90.0030.49416.88
7.2.80.0060.48516.64
7.2.70.0070.49916.86
7.2.60.0060.49516.87
7.2.50.0000.49817.02
7.2.40.0020.49317.00
7.2.30.0020.49616.96
7.2.20.0020.49116.78
7.2.10.0080.49116.93
7.2.00.0000.49917.65
7.1.330.0070.48315.69
7.1.320.0100.50315.79
7.1.310.0000.48615.79
7.1.300.0070.49515.70
7.1.290.0000.47915.67
7.1.280.0060.48815.80
7.1.270.0030.49815.69
7.1.260.0030.50015.80
7.1.250.0030.49115.73
7.1.240.0070.48115.82
7.1.230.0000.51015.71
7.1.220.0030.50015.50
7.1.210.0000.49515.71
7.1.200.0050.48715.53
7.1.190.0030.50815.73
7.1.180.0070.47515.89
7.1.170.0030.48315.80
7.1.160.0070.48515.83
7.1.150.0070.48215.84
7.1.140.0030.48715.85
7.1.130.0070.49915.87
7.1.120.0070.49815.62
7.1.110.0070.49015.70
7.1.100.0100.48615.84
7.1.90.0030.48715.86
7.1.80.0070.48115.82
7.1.70.0030.48416.52
7.1.60.0020.52316.41
7.1.50.0150.51925.29
7.1.40.0030.48515.84
7.1.30.0030.49015.75
7.1.20.0100.47615.94
7.1.10.0030.50015.45
7.1.00.0030.52118.93
7.0.330.0030.49515.36
7.0.320.0030.49215.36
7.0.310.0100.49915.08
7.0.300.0030.49515.09
7.0.290.0100.48015.49
7.0.280.0070.48815.39
7.0.270.0070.47615.34
7.0.260.0030.50115.39
7.0.250.0030.49715.55
7.0.240.0030.47715.50
7.0.230.0000.49515.25
7.0.220.0030.48715.32
7.0.210.0030.49915.43
7.0.200.0030.53216.19
7.0.190.0030.47415.55
7.0.180.0070.48915.13
7.0.170.0030.48815.32
7.0.160.0030.47615.45
7.0.150.0030.48815.31
7.0.140.0020.51618.61
7.0.130.0070.48015.14
7.0.120.0030.50115.55
7.0.110.0030.49115.58
7.0.100.0070.49915.44
7.0.90.0030.48715.50
7.0.80.0030.49415.64
7.0.70.0030.50415.56
7.0.60.0070.54217.67
7.0.50.0050.52316.78
7.0.40.0050.51016.80
7.0.30.0150.51716.84
7.0.20.0100.53616.74
7.0.10.0070.50716.70
7.0.00.0070.54516.83
5.6.400.0030.50114.23
5.6.390.0030.49614.57
5.6.380.0000.51514.17
5.6.370.0030.49814.65
5.6.360.0000.49814.10
5.6.350.0030.49214.10
5.6.340.0030.49214.27
5.6.330.0070.47014.56
5.6.320.0070.48214.60
5.6.310.0030.50314.38
5.6.300.0070.49814.67
5.6.290.0070.49014.09
5.6.280.0070.53517.66
5.6.270.0000.49514.34
5.6.260.0030.49514.17
5.6.250.0070.49814.43
5.6.240.0030.48814.33
5.6.230.0000.49714.61
5.6.220.0030.50814.13
5.6.210.0030.54617.50
5.6.200.0050.50216.12
5.6.190.0100.52217.57
5.6.180.0170.50917.54
5.6.170.0150.52717.31
5.6.160.0050.53617.36
5.6.150.0030.51616.29
5.6.140.0030.50716.34
5.6.130.0050.53216.33
5.6.120.0050.52917.59
5.6.110.0080.52517.75
5.6.100.0100.54017.66
5.6.90.0080.54517.76
5.6.80.0070.50417.45
5.6.70.2270.49617.45
5.6.60.0030.49214.32
5.6.50.0000.48514.21
5.6.40.0070.49614.31
5.6.30.0100.49714.44
5.6.20.0070.48213.98
5.6.10.0000.51114.34
5.6.00.0030.50414.28
5.5.380.0030.49514.18
5.5.370.0030.49114.52
5.5.360.0070.47314.01
5.5.350.0020.53517.22
5.5.340.0070.51516.08
5.5.330.0000.53417.37
5.5.320.0150.53217.31
5.5.310.0080.52117.37
5.5.300.0030.52716.23
5.5.290.0070.51316.11
5.5.280.0030.53417.49
5.5.270.0020.50117.45
5.5.260.0070.51517.44
5.5.250.0300.53217.45
5.5.240.0030.53917.18
5.5.230.0000.49714.25
5.5.220.0030.49314.24
5.5.210.0030.49414.01
5.5.200.0070.49914.43
5.5.190.0070.48114.28
5.5.180.0030.49613.91
5.5.170.0100.48914.17
5.5.160.0000.48514.23
5.5.150.0130.49214.16
5.5.140.0030.49614.18
5.5.130.0030.48314.02
5.5.120.0100.47314.18
5.5.110.0030.49414.41
5.5.100.0030.48214.04
5.5.90.0030.48914.21
5.5.80.0000.48514.44
5.5.70.0030.48613.84
5.5.60.0030.47714.35
5.5.50.0070.47914.16
5.5.40.0030.48414.14
5.5.30.0100.48713.99
5.5.20.0030.48514.23
5.5.10.0030.49214.03
5.5.00.0030.48114.27
5.4.450.0120.03315.36
5.4.440.0120.02215.52
5.4.430.0100.03015.44
5.4.420.0120.02115.54
5.4.410.0100.02015.47
5.4.400.0100.01815.35
5.4.390.0050.02315.35
5.4.380.0100.01815.35
5.4.370.0070.03415.32
5.4.360.0170.03215.38
5.4.350.0130.03215.37
5.4.340.0100.02015.34
5.4.330.0030.00311.61
5.4.320.0080.04015.41
5.4.310.0130.03815.34
5.4.300.0050.03915.27
5.4.290.0120.03815.37
5.4.280.0120.04015.37
5.4.270.0120.03715.41
5.4.260.0120.04215.35
5.4.250.0130.03115.37
5.4.240.0100.04115.37
5.4.230.0150.03515.27
5.4.220.0120.04215.41
5.4.210.0100.04215.20
5.4.200.0120.03715.34
5.4.190.0150.02315.34
5.4.180.0100.04215.20
5.4.170.0150.03815.34
5.4.160.0080.03215.33
5.4.150.0180.01515.36
5.4.140.0150.03513.93
5.4.130.0150.03413.94
5.4.120.0100.03613.96
5.4.110.0110.02614.00
5.4.100.0120.02513.91
5.4.90.0120.02014.05
5.4.80.0170.03314.01
5.4.70.0150.03714.00
5.4.60.0160.02413.91
5.4.50.0100.03413.94
5.4.40.0100.02214.03
5.4.30.0110.02014.02
5.4.20.0150.03813.99
5.4.10.0080.03813.90
5.4.00.0110.03613.61
5.3.290.0090.03013.09
5.3.280.0150.03313.10
5.3.270.0130.02813.03
5.3.260.0180.04413.10
5.3.250.0130.03713.04
5.3.240.0130.02713.06
5.3.230.0160.02813.03
5.3.220.0220.01513.07
5.3.210.0150.03813.00
5.3.200.0150.03913.00
5.3.190.0100.02413.04
5.3.180.0100.02213.07
5.3.170.0150.03813.11
5.3.160.0130.02513.13
5.3.150.0070.04013.00
5.3.140.0100.03113.00
5.3.130.0150.02213.02
5.3.120.0130.02312.99
5.3.110.0110.02813.00
5.3.100.0070.03612.84
5.3.90.0120.02012.86
5.3.80.0060.02812.73
5.3.70.0120.02012.79
5.3.60.0120.04012.78
5.3.50.0140.04012.79
5.3.40.0130.02812.73
5.3.30.0100.02012.80
5.3.20.0100.03412.57
5.3.10.0170.02212.61
5.3.00.0080.02912.54
5.2.170.0200.03712.20
5.2.160.0170.03712.20
5.2.150.0100.03712.20
5.2.140.0130.03312.20
5.2.130.0170.04012.20
5.2.120.0130.03012.20
5.2.110.0300.04312.20
5.2.100.0130.05712.20
5.2.90.0200.03312.20
5.2.80.0130.06712.20
5.2.70.0200.03712.20
5.2.60.0130.03312.20
5.2.50.0200.04312.20
5.2.40.0070.06312.20
5.2.30.0130.04012.20
5.2.20.0130.03012.20
5.2.10.0100.04012.20
5.2.00.0170.03012.20
5.1.60.0170.05312.20
5.1.50.0070.04312.20
5.1.40.0170.02012.20
5.1.30.0170.03712.20
5.1.20.0200.03712.20
5.1.10.0170.05012.20
5.1.00.0170.05012.20
5.0.50.0030.04712.20
5.0.40.0100.04012.20
5.0.30.0030.04712.20
5.0.20.0100.02312.20
5.0.10.0070.02012.20
5.0.00.0130.05712.20
4.4.90.0070.04012.20
4.4.80.0100.03312.20
4.4.70.0100.02012.20
4.4.60.0070.03312.20
4.4.50.0070.02012.20
4.4.40.0100.04712.20
4.4.30.0070.02012.20
4.4.20.0070.03012.20
4.4.10.0100.03012.20
4.4.00.0070.03012.20
4.3.110.0070.03712.20
4.3.100.0130.02712.20
4.3.90.0130.03012.20
4.3.80.0100.03012.20
4.3.70.0030.03312.20
4.3.60.0030.03012.20
4.3.50.0170.00712.20
4.3.40.0130.02712.20
4.3.30.0070.01712.20
4.3.20.0070.03012.20
4.3.10.0030.03012.20
4.3.00.0030.02312.20

preferences:
35.09 ms | 401 KiB | 5 Q