3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'teste'; $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.0070.51416.49
7.4.00.0030.51815.60
7.3.130.0100.51516.34
7.3.120.0070.50415.55
7.3.110.0030.51215.51
7.3.100.0050.50315.60
7.3.90.0050.50315.34
7.3.80.0070.49115.52
7.3.70.0070.49415.50
7.3.60.0080.48715.48
7.3.50.0070.48915.41
7.3.40.0080.48615.48
7.3.30.0000.48515.40
7.3.20.0050.49717.29
7.3.10.0070.48517.23
7.3.00.0050.50017.27
7.2.260.0170.51016.73
7.2.250.0070.51015.96
7.2.240.0050.50015.70
7.2.230.0030.49315.86
7.2.220.0050.50015.66
7.2.210.0030.50315.65
7.2.200.0030.49315.81
7.2.190.0050.50115.75
7.2.180.0030.49515.71
7.2.170.0050.49715.57
7.2.160.0030.50016.52
7.2.150.0000.49618.22
7.2.140.0100.48718.40
7.2.130.0130.50118.30
7.2.120.0000.50018.41
7.2.110.0030.48318.44
7.2.100.0100.48218.43
7.2.90.0030.49518.36
7.2.80.0070.49618.28
7.2.70.0030.48318.40
7.2.60.0030.49117.62
7.2.50.0070.47318.30
7.2.40.0000.51618.36
7.2.30.0100.49618.51
7.2.20.0070.49218.38
7.2.10.0130.48218.27
7.2.00.0070.50718.73
7.1.330.0030.50116.51
7.1.320.0000.50716.36
7.1.310.0030.49616.64
7.1.300.0070.49216.47
7.1.290.0070.48916.66
7.1.280.0080.49516.54
7.1.270.0030.48616.57
7.1.260.0070.49616.47
7.1.250.0130.47417.27
7.1.240.0030.49217.27
7.1.230.0070.50117.30
7.1.220.0030.49517.34
7.1.210.0100.48717.34
7.1.200.0000.49316.40
7.1.190.0070.49317.40
7.1.180.0030.50417.16
7.1.170.0030.50917.37
7.1.160.0070.48117.13
7.1.150.0290.48317.22
7.1.140.0070.49617.38
7.1.130.0030.49217.30
7.1.120.0070.49717.37
7.1.110.0070.49317.37
7.1.100.0100.48817.66
7.1.90.0070.48817.28
7.1.80.0030.50517.34
7.1.70.0050.49017.10
7.1.60.0070.53418.57
7.1.50.0050.52717.16
7.1.40.0030.49017.37
7.1.30.0000.49417.21
7.1.20.0070.47317.42
7.1.10.0070.50217.36
7.1.00.0050.50919.73
7.0.330.0070.48716.64
7.0.320.0000.50117.04
7.0.310.0100.48616.95
7.0.300.0030.49617.04
7.0.290.0000.50817.04
7.0.280.0030.50717.01
7.0.270.0030.50017.08
7.0.260.0000.49217.03
7.0.250.0070.49416.77
7.0.240.0070.50017.06
7.0.230.0000.49817.00
7.0.220.0130.47216.88
7.0.210.0030.49816.94
7.0.200.0020.49416.94
7.0.190.0070.49616.79
7.0.180.0030.48916.96
7.0.170.0100.48816.88
7.0.160.0070.49717.25
7.0.150.0130.48116.99
7.0.140.0020.52619.43
7.0.130.0030.48017.07
7.0.120.0030.48316.95
7.0.110.0070.49717.10
7.0.100.0060.48616.93
7.0.90.0100.49716.98
7.0.80.0130.48016.93
7.0.70.0180.48217.11
7.0.60.0230.53318.52
7.0.50.0030.52317.41
7.0.40.0080.54017.57
7.0.30.0170.51717.46
7.0.20.0100.51817.50
7.0.10.0050.51917.59
7.0.00.0110.53917.62
5.6.400.0100.49415.68
5.6.390.0000.50115.92
5.6.380.0030.49615.91
5.6.370.0130.48015.55
5.6.360.0030.48115.72
5.6.350.0030.50015.88
5.6.340.0030.49415.94
5.6.330.0130.47015.88
5.6.320.0030.50115.77
5.6.310.0100.50115.88
5.6.300.0070.49415.93
5.6.290.0070.48515.77
5.6.280.0050.52418.60
5.6.270.0100.48815.69
5.6.260.0030.49515.83
5.6.250.0070.51015.89
5.6.240.0000.48815.96
5.6.230.0070.48715.77
5.6.220.0070.49516.11
5.6.210.0080.54118.14
5.6.200.0100.54117.12
5.6.190.0020.52018.25
5.6.180.0100.53918.02
5.6.170.0230.52917.98
5.6.160.0100.53918.17
5.6.150.0100.53417.01
5.6.140.0030.51617.01
5.6.130.0050.50117.03
5.6.120.0100.53218.46
5.6.110.0070.50718.42
5.6.100.0050.55118.44
5.6.90.0030.54018.43
5.6.80.0150.53118.15
5.6.70.0030.47916.04
5.6.60.0070.49715.73
5.6.50.0100.49415.54
5.6.40.0030.48815.76
5.6.30.0070.50415.50
5.6.20.0100.47715.98
5.6.10.0070.48615.95
5.6.00.0000.48515.73
5.5.380.0070.49515.59
5.5.370.0070.48215.62
5.5.360.0030.49516.11
5.5.350.0080.54417.99
5.5.340.0030.54616.89
5.5.330.0050.52917.94
5.5.320.0150.52917.96
5.5.310.0200.52618.07
5.5.300.0030.53016.91
5.5.290.0080.54816.83
5.5.280.0020.54018.20
5.5.270.0070.52718.31
5.5.260.0050.53118.25
5.5.250.0080.53718.22
5.5.240.0180.50717.90
5.5.230.0070.48815.65
5.5.220.0000.50215.72
5.5.210.0100.48815.68
5.5.200.0070.50215.74
5.5.190.0030.48315.77
5.5.180.0030.48515.62
5.5.170.0070.48615.87
5.5.160.0000.50515.64
5.5.150.0100.49315.74
5.5.140.0000.51015.86
5.5.130.0030.48815.76
5.5.120.0070.48615.80
5.5.110.0000.50015.61
5.5.100.0100.47515.55
5.5.90.0100.47115.77
5.5.80.0130.48015.78
5.5.70.0000.48915.58
5.5.60.0030.48515.61
5.5.50.0030.49515.69
5.5.40.0030.48315.52
5.5.30.0030.48115.82
5.5.20.0030.49615.68
5.5.10.0030.47815.68
5.5.00.0100.46915.54
5.4.450.0080.03115.85
5.4.440.0370.02916.02
5.4.430.0320.03315.96
5.4.420.0480.02615.76
5.4.410.0460.02815.84
5.4.400.0080.02715.50
5.4.390.0490.02315.67
5.4.380.0100.03715.42
5.4.370.0130.02515.47
5.4.360.0130.02515.44
5.4.350.0060.02512.07
5.4.340.0040.02412.08
5.4.330.0030.00312.29
5.4.320.0040.02112.37
5.4.310.0090.01812.40
5.4.300.0040.02512.40
5.4.290.0050.02012.43
5.4.280.0050.02612.26
5.4.270.0050.02012.36
5.4.260.0060.02212.27
5.4.250.0060.02615.57
5.4.240.0050.02915.54
5.4.230.0020.04515.49
5.4.220.0040.03115.46
5.4.210.0050.03115.52
5.4.200.0110.02315.49
5.4.190.0100.02415.42
5.4.180.0050.02815.61
5.4.170.0080.04015.51
5.4.160.0050.03015.54
5.4.150.0030.04015.51
5.4.140.0030.03214.45
5.4.130.0030.02814.30
5.4.120.0040.02714.34
5.4.110.0040.02714.36
5.4.100.0120.02014.47
5.4.90.0030.02814.21
5.4.80.0070.02314.35
5.4.70.0100.02314.24
5.4.60.0030.03114.31
5.4.50.0070.02614.28
5.4.40.0030.02714.31
5.4.30.0080.02214.35
5.4.20.0070.03514.27
5.4.10.0070.02814.22
5.4.00.0090.02513.89
5.3.290.0030.02512.89
5.3.280.0070.02613.57
5.3.270.0020.03213.77
5.3.260.0110.02413.91
5.3.250.0070.02913.52
5.3.240.0050.02813.46
5.3.230.0080.02713.65
5.3.220.0050.03013.59
5.3.210.0030.03213.64
5.3.200.0050.02913.69
5.3.190.0050.03013.61
5.3.180.0050.02813.78
5.3.170.0070.02813.90
5.3.160.0060.02613.89
5.3.150.0080.02613.76
5.3.140.0030.03013.74
5.3.130.0050.03213.64
5.3.120.0040.04013.69
5.3.110.0110.02713.63
5.3.100.0070.02813.41
5.3.90.0080.03013.67
5.3.80.0020.04113.43
5.3.70.0070.03013.40
5.3.60.0060.02913.36
5.3.50.0050.03013.42
5.3.40.0060.03113.35
5.3.30.0110.02413.28
5.3.20.0070.03013.20
5.3.10.0110.02313.10
5.3.00.0100.02713.15
5.2.170.0000.04711.04
5.2.160.0030.04011.02
5.2.150.0030.04311.13
5.2.140.0170.04311.04
5.2.130.0030.04310.98
5.2.120.0030.04011.00
5.2.110.0100.03311.02
5.2.100.0100.03711.11
5.2.90.0030.04311.00
5.2.80.0030.04310.99
5.2.70.0000.04710.98
5.2.60.0070.04011.05
5.2.50.0030.04010.78
5.2.40.0130.02711.02
5.2.30.0030.04010.98
5.2.20.0070.03710.71
5.2.10.0070.03711.03
5.2.00.0070.03710.60
5.1.60.0070.0309.95
5.1.50.0030.03710.05
5.1.40.0070.0339.70
5.1.30.0000.04010.33
5.1.20.0070.03710.43
5.1.10.0130.0409.96
5.1.00.0030.03710.00
5.0.50.0030.0278.63
5.0.40.0030.0278.36
5.0.30.0000.0438.37
5.0.20.0070.0308.38
5.0.10.0030.0408.16
5.0.00.0070.0508.13
4.4.90.0000.0236.94
4.4.80.0030.0206.94
4.4.70.0000.0236.94
4.4.60.0000.0236.94
4.4.50.0030.0206.94
4.4.40.0030.0336.94
4.4.30.0030.0206.94
4.4.20.0070.0206.94
4.4.10.0030.0206.94
4.4.00.0000.0336.94
4.3.110.0000.0236.94
4.3.100.0000.0306.94
4.3.90.0000.0206.94
4.3.80.0030.0336.94
4.3.70.0030.0206.94
4.3.60.0000.0206.94
4.3.50.0030.0206.94
4.3.40.0030.0336.94
4.3.30.0000.0236.94
4.3.20.0000.0236.94
4.3.10.0070.0176.94
4.3.00.0070.0178.11

preferences:
31.56 ms | 401 KiB | 5 Q