3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_DEFAULT, array('cost' => 25)); 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.2.110.0032.40016.49
7.2.60.0032.48916.50
7.2.00.0072.49419.23
7.1.200.0032.49215.77
7.1.100.0032.44817.88
7.1.70.0002.50116.84
7.1.60.0032.49716.98
7.1.50.0072.49516.98
7.1.00.0002.50022.42
7.0.200.0102.49016.87
7.0.140.0002.50022.21
7.0.60.0032.49719.80
7.0.50.0102.49017.83
7.0.40.0132.48719.88
7.0.30.3602.13719.84
7.0.20.0272.47319.98
7.0.10.0072.49319.72
7.0.00.0172.48319.88
5.6.280.0102.49021.06
5.6.210.0132.48720.65
5.6.200.0072.49318.06
5.6.190.0072.49320.14
5.6.180.0302.45020.29
5.6.170.0332.46720.29
5.6.160.0072.49320.29
5.6.150.0002.50018.13
5.6.140.0032.49718.22
5.6.130.0102.49018.13
5.6.120.0132.48721.00
5.6.110.0132.48721.13
5.6.100.0072.49320.97
5.6.90.0132.48720.99
5.6.80.0102.49020.39
5.5.350.0202.44720.51
5.5.340.0372.41020.93
5.5.330.0332.40720.79
5.5.320.0302.46720.95
5.5.310.0202.39320.94
5.5.300.0372.42320.95
5.5.290.0232.42020.85
5.5.280.0132.45020.79
5.5.270.0402.42020.92
5.5.260.0372.44020.93
5.5.250.0132.39320.68
5.5.240.0432.41320.15
5.4.450.0470.06019.48
5.4.440.0670.06719.44
5.4.430.0770.05019.49
5.4.420.0430.07019.62
5.4.410.0300.05019.50
5.4.400.0630.04718.77
5.4.390.0070.05719.15
5.4.380.0300.05318.55
5.4.370.0270.04018.55
5.4.360.0130.05318.70
5.4.350.0090.03511.98
5.4.340.0110.05211.97
5.4.320.0040.03712.45
5.4.310.0060.04812.45
5.4.300.0040.03712.45
5.4.290.0050.03812.45
5.4.280.0060.03612.35
5.4.270.0090.03812.35
5.4.260.0050.03912.35
5.4.250.0130.04718.79
5.4.240.0070.05018.78
5.4.230.0000.06018.96
5.4.220.0130.07018.83
5.4.210.0100.05018.64
5.4.200.0030.05318.82
5.4.190.0000.05718.81
5.4.180.0070.05318.94
5.4.170.0100.05018.57
5.4.160.0130.04718.63
5.4.150.0070.05018.63
5.4.140.0130.04316.46
5.4.130.0030.05316.45
5.4.120.0030.05716.37
5.4.110.0000.05316.37
5.4.100.0030.05016.41
5.4.90.0070.04716.37
5.4.80.0030.05016.44
5.4.70.0000.05316.35
5.4.60.0200.03716.27
5.4.50.0130.04016.39
5.4.40.0100.04716.47
5.4.30.0070.05016.34
5.4.20.0070.04716.39
5.4.10.0100.04716.29
5.4.00.0100.04715.98
5.3.290.0050.03912.80
5.3.280.0130.04314.46
5.3.270.0030.05714.49
5.3.260.0070.07714.49
5.3.250.0130.04014.52
5.3.240.0000.06014.63
5.3.230.0100.04714.61
5.3.220.0100.04714.59
5.3.210.0130.04314.61
5.3.200.0000.05714.34
5.3.190.0200.03714.48
5.3.180.0070.05014.61
5.3.170.0100.04314.48
5.3.160.0100.04714.39
5.3.150.0130.07014.26
5.3.140.0100.04714.57
5.3.130.0100.07314.55
5.3.120.0100.04714.70
5.3.110.0000.05714.46
5.3.100.0030.05314.05
5.3.90.0030.05314.11
5.3.80.0100.04714.03
5.3.70.0030.05014.07
5.3.60.0070.04714.03
5.3.50.0030.05013.83
5.3.40.0070.04713.96
5.3.30.0030.05313.68
5.3.20.0030.05713.63
5.3.10.0130.04013.66
5.3.00.0000.05313.36
5.2.170.0070.04011.15
5.2.160.0170.03011.09
5.2.150.0100.03311.16
5.2.140.0130.03311.07
5.2.130.0100.04311.09
5.2.120.0030.04011.03
5.2.110.0030.04011.10
5.2.100.0000.04011.10
5.2.90.0030.04011.20
5.2.80.0130.04711.11
5.2.70.0100.03311.12
5.2.60.0030.04011.06
5.2.50.0070.03711.11
5.2.40.0000.04310.89
5.2.30.0100.03310.91
5.2.20.0100.03311.06
5.2.10.0100.03310.83
5.2.00.0000.04310.79
5.1.60.0000.03710.01
5.1.50.0030.03310.01
5.1.40.0070.04710.00
5.1.30.0030.04010.34
5.1.20.0030.03710.23
5.1.10.0000.04010.09
5.1.00.0030.03310.11
5.0.50.0100.0208.47
5.0.40.0030.0278.33
5.0.30.0000.0438.24
5.0.20.0030.0278.14
5.0.10.0000.0308.17
5.0.00.0030.0408.26
4.4.90.0000.0235.80
4.4.80.0000.0235.77
4.4.70.0030.0205.79
4.4.60.0030.0205.74
4.4.50.0030.0175.78
4.4.40.0070.0305.79
4.4.30.0070.0175.80
4.4.20.0070.0175.85
4.4.10.0030.0205.96
4.4.00.0000.0335.80
4.3.110.0000.0235.69
4.3.100.0030.0305.62
4.3.90.0000.0205.71
4.3.80.0000.0335.80
4.3.70.0070.0235.67
4.3.60.0070.0135.66
4.3.50.0130.0105.70
4.3.40.0070.0275.65
4.3.30.0070.0175.59
4.3.20.0070.0175.59
4.3.10.0030.0205.59
4.3.00.0100.0208.11

preferences:
35.95 ms | 401 KiB | 5 Q