3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = password_hash($pass, PASSWORD_DEFAULT); echo $hash."\n"; $hash = crypt ($pass); echo $hash."\n"; echo password_needs_rehash($hash, PASSWORD_DEFAULT)."\n"; echo password_verify($pass, $hash)."\n";

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.20.0070.09316.19
7.4.10.0100.09516.44
7.4.00.0030.10716.27
7.3.130.0100.09316.36
7.3.120.0030.09716.18
7.3.110.0030.10016.23
7.3.100.0130.09116.24
7.3.90.0130.08916.41
7.3.80.0090.09516.14
7.3.70.0070.09516.41
7.3.60.0140.09516.34
7.3.50.0100.09516.18
7.3.40.0070.09616.42
7.3.30.0060.09516.27
7.3.20.0030.10416.36
7.3.10.0030.10416.50
7.3.00.0140.09716.21
7.2.260.0030.12716.70
7.2.250.0000.10916.34
7.2.240.0060.10216.69
7.2.230.0070.10516.70
7.2.220.0030.10516.65
7.2.210.0030.10116.46
7.2.200.0100.10216.65
7.2.190.0100.09316.59
7.2.180.0060.09716.70
7.2.170.0100.10016.66
7.2.160.0190.09116.65
7.2.150.0060.09916.71
7.2.140.0120.09416.60
7.2.130.0160.08816.54
7.2.120.0130.09216.59
7.2.110.0100.09916.43
7.2.100.0070.09416.54
7.2.90.0030.09916.56
7.2.80.0130.08916.59
7.2.70.0140.09116.64
7.2.60.0080.08516.70
7.2.50.0130.10216.70
7.2.40.0100.09516.59
7.2.30.0160.08716.71
7.2.20.0190.08716.70
7.2.10.0060.09516.52
7.2.00.0050.08318.04
7.1.330.0130.08715.61
7.1.320.0060.09615.82
7.1.310.0100.09115.63
7.1.300.0100.09215.64
7.1.290.0130.09215.53
7.1.280.0100.09515.46
7.1.270.0070.09415.52
7.1.260.0150.09215.82
7.1.250.0200.09115.58
7.1.240.0100.12815.50
7.1.230.0030.10015.59
7.1.220.0040.11315.58
7.1.210.0070.09415.46
7.1.200.0050.08815.54
7.1.190.0160.08915.54
7.1.180.0100.09615.30
7.1.170.0090.10615.54
7.1.160.0160.09015.23
7.1.150.0100.09215.54
7.1.140.0060.09615.46
7.1.130.0130.08915.51
7.1.120.0060.09415.38
7.1.110.0130.09515.30
7.1.100.0140.09815.42
7.1.90.0100.09315.43
7.1.80.0160.09315.38
7.1.70.0080.08916.25
7.1.60.0170.07816.24
7.1.50.0030.08516.12
7.1.40.0100.09816.13
7.1.30.0100.07715.94
7.1.20.0070.10116.12
7.1.10.0080.07816.01
7.1.00.0030.08516.09
7.0.330.0130.10215.09
7.0.320.0130.09515.14
7.0.310.0190.09115.03
7.0.300.0080.10015.03
7.0.290.0100.09715.17
7.0.280.0100.10115.28
7.0.270.0140.09015.04
7.0.260.0040.10015.10
7.0.250.0060.10115.29
7.0.240.0270.09515.21
7.0.230.0190.08715.15
7.0.220.0070.10215.06
7.0.210.0150.08915.04
7.0.200.0070.08016.04
7.0.190.0150.08715.89
7.0.180.0080.09815.65
7.0.170.0070.09315.78
7.0.160.0070.08115.87
7.0.150.0070.08215.64
7.0.140.0200.08215.68
7.0.130.0110.07815.91
7.0.120.0080.09716.01
7.0.110.0080.08015.78
7.0.100.0070.08115.82
7.0.90.0110.08615.79
7.0.80.0150.07915.73
7.0.70.0060.08315.93
7.0.60.0100.08115.68
7.0.50.0520.08215.96
7.0.40.0060.08214.95
7.0.30.0100.07614.96
7.0.20.0030.08414.94
7.0.10.0100.07714.94
7.0.00.0080.07914.94
5.6.400.0100.10015.74
5.6.390.0120.09716.01
5.6.380.0070.09915.82
5.6.370.0250.08916.02
5.6.360.0160.09915.71
5.6.350.0130.10015.66
5.6.340.0190.09615.66
5.6.330.0100.09615.92
5.6.320.0130.09415.83
5.6.310.0140.09415.81
5.6.300.0080.10118.51
5.6.290.0080.10218.40
5.6.280.0080.10718.43
5.6.270.0080.10118.34
5.6.260.0060.10718.33
5.6.250.0130.10218.47
5.6.240.0240.09518.40
5.6.230.0100.10118.32
5.6.220.0030.13118.22
5.6.210.0100.12218.49
5.6.200.0070.10318.40
5.6.190.0110.09618.30
5.6.180.0120.09518.39
5.6.170.0080.09918.32
5.6.160.0060.10118.24
5.6.150.0080.11118.39
5.6.140.0100.09618.34
5.6.130.0070.13518.29
5.6.120.0140.09518.50
5.6.110.0080.12818.38
5.6.100.0050.11118.29
5.6.90.0090.09918.29
5.6.80.0080.09718.00
5.6.70.0080.10018.19
5.6.60.0080.10518.02
5.6.50.0100.11217.92
5.6.40.0090.10318.04
5.6.30.0100.12417.97
5.6.20.0070.10218.00
5.6.10.0080.10617.90
5.6.00.0080.13817.96
5.5.380.0120.09816.77
5.5.370.0230.11016.61
5.5.360.0050.11116.71
5.5.350.0070.11916.61
5.5.340.0100.09716.72
5.5.330.0050.10116.89
5.5.320.0100.10316.90
5.5.310.0110.09516.82
5.5.300.0130.09717.00
5.5.290.0130.09716.89
5.5.280.0100.09816.79
5.5.270.0100.10216.88
5.5.260.0220.10416.91
5.5.250.0120.10016.81
5.5.240.0140.09616.45
5.5.230.0120.10316.41
5.5.220.0110.09916.59
5.5.210.0340.08716.52
5.5.200.0100.10216.62
5.5.190.0080.14216.63
5.5.180.0080.10216.61
5.5.170.0190.10115.60
5.5.160.0100.10116.49
5.5.150.0110.13316.54
5.5.140.0050.11916.55
5.5.130.0110.09716.34
5.5.120.0140.11616.59
5.5.110.0110.10416.65
5.5.100.0170.09616.45
5.5.90.0170.09616.55
5.5.80.0080.10616.37
5.5.70.0080.10216.60
5.5.60.0070.10416.45
5.5.50.0070.10116.44
5.5.40.0070.10016.44
5.5.30.0150.09816.46
5.5.20.0110.09716.60
5.5.10.0030.10516.49
5.5.00.0150.09916.44
5.4.450.0100.02215.78
5.4.440.0070.02415.95
5.4.430.0080.02115.89
5.4.420.0050.02516.00
5.4.410.0080.02215.95
5.4.400.0060.03715.81
5.4.390.0060.02815.69
5.4.380.0090.03315.58
5.4.370.0120.02215.74
5.4.360.0060.02515.71
5.4.350.0110.02315.74
5.4.340.0090.03415.73
5.4.330.0090.01312.37
5.4.320.0050.03515.63
5.4.310.0110.01915.73
5.4.300.0110.02015.56
5.4.290.0110.03415.79
5.4.280.0060.04415.62
5.4.270.0090.03215.74
5.4.260.0050.04415.72
5.4.250.0100.02315.69
5.4.240.0070.02415.78
5.4.230.0090.02215.54
5.4.220.0120.02015.71
5.4.210.0070.02615.62
5.4.200.0060.02315.65
5.4.190.0070.02615.78
5.4.180.0090.02315.76
5.4.170.0100.02615.58
5.4.160.0110.02015.78
5.4.150.0060.02415.66
5.4.140.0060.02514.38
5.4.130.0060.02614.45
5.4.120.0090.02014.38
5.4.110.0100.01814.55
5.4.100.0080.03414.46
5.4.90.0070.02214.44
5.4.80.0100.01914.48
5.4.70.0050.02614.45
5.4.60.0170.01614.42
5.4.50.0070.02114.50
5.4.40.0050.02214.40
5.4.30.0110.03914.54
5.4.20.0080.03114.52
5.4.10.0070.02214.52
5.4.00.0080.02814.19
5.3.290.0100.01112.87
5.3.280.0150.00612.77
5.3.270.0140.00712.85
5.3.260.0110.01112.75
5.3.250.0150.00412.77
5.3.240.0110.01112.70
5.3.230.0080.01112.84
5.3.220.0130.00512.71
5.3.210.0100.01012.84
5.3.200.0120.00612.65
5.3.190.0110.00712.71
5.3.180.0080.01213.04
5.3.170.0090.00913.06
5.3.160.0090.00913.04
5.3.150.0100.00812.84
5.3.140.0070.01312.89
5.3.130.0070.01113.12
5.3.120.0170.00312.84
5.3.110.0180.00412.77
5.3.100.0100.00712.75
5.3.90.0100.01013.02
5.3.80.0140.00512.89
5.3.70.0100.01012.79
5.3.60.0140.00713.10
5.3.50.0150.00412.75
5.3.40.0140.00812.81
5.3.30.0120.00612.68
5.3.20.0160.00312.71
5.3.10.0120.00912.56
5.3.00.0160.00412.61
5.2.170.0140.00311.84
5.2.160.0100.00711.87
5.2.150.0130.00611.91
5.2.140.0070.01011.95
5.2.130.0160.00511.84
5.2.120.0110.00512.07
5.2.110.0060.01311.80
5.2.100.0120.00612.07
5.2.90.0070.01111.81
5.2.80.0140.00311.80
5.2.70.0130.00511.77
5.2.60.0100.00511.66
5.2.50.0100.00711.76
5.2.40.0090.00811.88
5.2.30.0080.00811.81
5.2.20.0070.00911.67
5.2.10.0030.01211.57
5.2.00.0080.00811.43
5.1.60.0080.00810.91
5.1.50.0120.00610.84
5.1.40.0070.00710.92
5.1.30.0070.01111.20
5.1.20.0120.00310.96
5.1.10.0130.00611.10
5.1.00.0100.00410.73
5.0.50.0000.01210.03
5.0.40.0040.0099.85
5.0.30.0100.00310.09
5.0.20.0050.0079.86
5.0.10.0080.0049.80
5.0.00.0120.0029.80
4.4.90.0000.0099.80
4.4.80.0000.0089.80
4.4.70.0020.0059.80
4.4.60.0080.0009.80
4.4.50.0040.0049.80
4.4.40.0050.0029.80
4.4.30.0050.0039.80
4.4.20.0080.0039.80
4.4.10.0070.0009.80
4.4.00.0040.0089.80
4.3.110.0050.0049.80
4.3.100.0060.0029.80
4.3.90.0000.0079.80
4.3.80.0080.0009.80
4.3.70.0080.0009.80
4.3.60.0070.0039.80
4.3.50.0090.0009.80
4.3.40.0080.0009.80
4.3.30.0080.0009.80
4.3.20.0040.0029.80
4.3.10.0030.0049.80
4.3.00.0040.0049.80

preferences:
38.85 ms | 401 KiB | 5 Q