3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'S3nh4Sup3rS3gur@'; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12)); echo $hash . "\r\n"; # $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.0060.51714.99
7.4.00.0070.51814.83
7.3.130.0070.51114.71
7.3.120.0030.51314.75
7.3.110.0080.50514.69
7.3.100.0070.49714.81
7.3.90.0050.49114.57
7.3.80.0050.49914.75
7.3.70.0050.48714.70
7.3.60.0070.49914.50
7.3.50.0020.49614.66
7.3.40.0020.49014.69
7.3.30.0030.49314.79
7.3.20.0070.51116.60
7.3.10.0020.48816.35
7.3.00.0030.49216.64
7.2.260.0160.51115.13
7.2.250.0070.51715.19
7.2.240.0080.50015.19
7.2.230.0050.50815.13
7.2.220.0050.50015.05
7.2.210.0030.50314.88
7.2.200.0070.47914.91
7.2.190.0080.50414.74
7.2.180.0050.49814.74
7.2.170.0030.49714.81
7.2.160.0070.49215.03
7.2.150.0100.49116.95
7.2.140.0030.50117.02
7.2.130.0070.49117.05
7.2.120.0070.49016.93
7.2.110.0070.49416.73
7.2.100.0070.49016.77
7.2.90.0070.48916.86
7.2.80.0030.50616.88
7.2.70.0070.49216.85
7.2.60.0080.49116.73
7.2.50.0070.48817.02
7.2.40.0030.49016.93
7.2.30.0070.50016.87
7.2.20.0070.47916.79
7.2.10.0000.48916.64
7.2.00.0050.48918.00
7.1.330.0080.49415.68
7.1.320.0020.49715.65
7.1.310.0030.49715.92
7.1.300.0030.49015.58
7.1.290.0020.49015.71
7.1.280.0000.50115.85
7.1.270.0100.49515.61
7.1.260.0030.48715.65
7.1.250.0000.50615.63
7.1.240.0070.49615.78
7.1.230.0030.49915.75
7.1.220.0070.49715.87
7.1.210.0070.48415.68
7.1.200.0050.49915.68
7.1.190.0000.50615.70
7.1.180.0130.48615.77
7.1.170.0070.47815.77
7.1.160.0030.50515.57
7.1.150.0030.49015.65
7.1.140.0000.50715.54
7.1.130.0070.49515.77
7.1.120.0030.49415.70
7.1.110.0000.48815.68
7.1.100.0020.50216.91
7.1.90.0000.48915.81
7.1.80.0030.49315.74
7.1.70.0080.49016.50
7.1.60.0050.52317.83
7.1.50.0070.52916.25
7.1.40.0000.49415.78
7.1.30.0030.48415.72
7.1.20.0030.48615.72
7.1.10.0070.49515.72
7.1.00.0020.51219.02
7.0.330.0030.48715.41
7.0.320.0070.49815.35
7.0.310.0030.47815.34
7.0.300.0000.50315.56
7.0.290.0000.49015.45
7.0.280.0030.49515.12
7.0.270.0030.49015.44
7.0.260.0070.48915.39
7.0.250.0030.49515.12
7.0.240.0000.48815.11
7.0.230.0030.47615.36
7.0.220.0030.49815.68
7.0.210.0000.48815.54
7.0.200.0020.48916.05
7.0.190.0030.48815.40
7.0.180.0100.49415.31
7.0.170.0030.50115.44
7.0.160.0030.47615.20
7.0.150.0030.49315.45
7.0.140.0050.52818.71
7.0.130.0100.47015.55
7.0.120.0000.49215.43
7.0.110.0030.48815.44
7.0.100.0070.48715.36
7.0.90.0030.50815.36
7.0.80.0000.49415.52
7.0.70.0030.50315.37
7.0.60.0120.51617.51
7.0.50.0100.52916.74
7.0.40.0120.52916.94
7.0.30.0130.52216.94
7.0.20.0200.52716.75
7.0.10.0080.51016.75
7.0.00.0030.53616.70
5.6.400.0030.48613.96
5.6.390.0030.49414.61
5.6.380.0070.48914.42
5.6.370.0030.47914.45
5.6.360.0070.49014.23
5.6.350.0000.50114.57
5.6.340.0000.50214.10
5.6.330.0070.50314.43
5.6.320.0070.47714.51
5.6.310.0030.49614.22
5.6.300.0030.47814.41
5.6.290.0100.48514.53
5.6.280.0050.53417.60
5.6.270.0030.49114.34
5.6.260.0070.48714.30
5.6.250.0000.49414.39
5.6.240.0100.49414.17
5.6.230.0100.48914.16
5.6.220.0030.51814.30
5.6.210.0130.51817.41
5.6.200.0050.53516.29
5.6.190.0050.51517.36
5.6.180.2170.51517.27
5.6.170.0100.51517.33
5.6.160.0070.53817.30
5.6.150.0030.51416.35
5.6.140.0070.51316.34
5.6.130.0050.51416.21
5.6.120.0070.51017.50
5.6.110.0100.50717.58
5.6.100.0070.51017.61
5.6.90.0050.53617.72
5.6.80.0130.51917.39
5.6.70.0180.51917.37
5.6.60.0000.49914.02
5.6.50.0030.48913.97
5.6.40.0030.50113.85
5.6.30.0100.49714.20
5.6.20.0030.50114.33
5.6.10.0030.49414.33
5.6.00.0030.49314.20
5.5.380.0030.48014.07
5.5.370.0030.49814.21
5.5.360.0030.50213.93
5.5.350.0080.46517.34
5.5.340.0050.53616.13
5.5.330.0070.51117.35
5.5.320.0050.50717.10
5.5.310.0130.53217.28
5.5.300.0020.53215.97
5.5.290.0070.50016.05
5.5.280.0050.53017.58
5.5.270.0100.53217.57
5.5.260.0100.54217.53
5.5.250.0080.52617.51
5.5.240.0050.53617.23
5.5.230.0070.48014.05
5.5.220.0000.50214.01
5.5.210.0030.48314.39
5.5.200.0030.49214.05
5.5.190.0100.49513.97
5.5.180.0000.50614.03
5.5.170.0070.47814.06
5.5.160.0030.49214.31
5.5.150.0100.48514.09
5.5.140.0070.48614.23
5.5.130.0030.49613.84
5.5.120.0070.49413.85
5.5.110.0000.50214.02
5.5.100.0030.50313.82
5.5.90.0070.47514.27
5.5.80.0030.49814.25
5.5.70.0070.48614.02
5.5.60.0030.48314.34
5.5.50.0000.50014.00
5.5.40.0030.47814.11
5.5.30.0030.48913.92
5.5.20.0130.46714.12
5.5.10.0070.47214.19
5.5.00.0070.50214.07
5.4.450.0530.04015.68
5.4.440.0430.03815.83
5.4.430.0450.03715.64
5.4.420.0500.03515.66
5.4.410.0580.03315.56
5.4.400.0200.03215.37
5.4.390.0190.03015.29
5.4.380.0080.03815.23
5.4.370.0100.02715.30
5.4.360.0140.02315.36
5.4.350.0060.02011.99
5.4.340.0060.01911.99
5.4.330.0070.00412.01
5.4.320.0050.02012.23
5.4.310.0070.01912.23
5.4.300.0060.01912.23
5.4.290.0050.02012.23
5.4.280.0060.02312.18
5.4.270.0060.01812.18
5.4.260.0060.02012.18
5.4.250.0030.03015.39
5.4.240.0050.03015.42
5.4.230.0050.02815.42
5.4.220.0080.03715.41
5.4.210.0090.03615.29
5.4.200.0030.03015.40
5.4.190.0050.02715.35
5.4.180.0070.02415.44
5.4.170.0050.02815.41
5.4.160.0050.03215.40
5.4.150.0050.03115.47
5.4.140.0070.02514.25
5.4.130.0050.02714.19
5.4.120.0030.02714.13
5.4.110.0100.02214.09
5.4.100.0070.02814.22
5.4.90.0030.02914.09
5.4.80.0080.02514.14
5.4.70.0050.02514.22
5.4.60.0070.02514.20
5.4.50.0110.03314.17
5.4.40.0060.02614.24
5.4.30.0080.02514.17
5.4.20.0060.03014.19
5.4.10.0110.02514.21
5.4.00.0030.02613.88
5.3.290.0070.02312.41
5.3.280.0030.03013.30
5.3.270.0030.03013.31
5.3.260.0000.03613.32
5.3.250.0030.03013.32
5.3.240.0150.03013.31
5.3.230.0060.02513.25
5.3.220.0100.02213.34
5.3.210.0030.03013.21
5.3.200.0090.02413.31
5.3.190.0050.02913.23
5.3.180.0100.02513.28
5.3.170.0080.02613.29
5.3.160.0120.02013.28
5.3.150.0060.02913.17
5.3.140.0030.03013.29
5.3.130.0070.02913.21
5.3.120.0100.02313.22
5.3.110.0050.03313.13
5.3.100.0050.02913.10
5.3.90.0060.02513.02
5.3.80.0030.02912.93
5.3.70.0070.03213.02
5.3.60.0070.02512.98
5.3.50.0070.02712.95
5.3.40.0000.03312.98
5.3.30.0120.02212.96
5.3.20.0100.02212.90
5.3.10.0030.03112.84
5.3.00.0030.02712.83
5.2.170.0030.04711.07
5.2.160.0030.04711.02
5.2.150.0030.04311.16
5.2.140.0170.04311.13
5.2.130.0100.03311.03
5.2.120.0070.03711.11
5.2.110.0030.04011.11
5.2.100.0000.04311.11
5.2.90.0100.03311.00
5.2.80.0130.03310.98
5.2.70.0030.04311.10
5.2.60.0100.03710.88
5.2.50.0070.04011.01
5.2.40.0070.03711.02
5.2.30.0000.04710.99
5.2.20.0100.05311.11
5.2.10.0070.04310.79
5.2.00.0070.04010.70
5.1.60.0000.0379.84
5.1.50.0100.04010.02
5.1.40.0000.0379.93
5.1.30.0130.02710.09
5.1.20.0030.03710.28
5.1.10.0070.03310.02
5.1.00.0000.04010.11
5.0.50.0130.0208.59
5.0.40.0070.0338.37
5.0.30.0100.0408.36
5.0.20.0030.0278.25
5.0.10.0030.0278.25
5.0.00.0030.0408.14
4.4.90.0070.0176.05
4.4.80.0000.0306.05
4.4.70.0030.0236.05
4.4.60.0000.0236.05
4.4.50.0000.0336.05
4.4.40.0000.0336.05
4.4.30.0030.0206.05
4.4.20.0030.0236.05
4.4.10.0070.0236.05
4.4.00.0030.0336.05
4.3.110.0070.0276.05
4.3.100.0000.0236.05
4.3.90.0030.0176.05
4.3.80.0070.0276.94
4.3.70.0030.0176.94
4.3.60.0000.0206.94
4.3.50.0070.0176.94
4.3.40.0000.0336.94
4.3.30.0030.0176.94
4.3.20.0000.0236.94
4.3.10.0000.0206.94
4.3.00.0030.0206.31

preferences:
36.22 ms | 401 KiB | 5 Q