3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = 'oker'; echo md5($pass)."\n"; echo sha1($pass)."\n"; echo password_hash($pass, PASSWORD_BCRYPT, array('cost'=>'111'))."\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.3.120.0000.01614.98
7.3.110.0030.01014.95
7.3.100.0030.00914.42
7.3.90.0060.00614.95
7.3.80.0140.00314.96
7.3.70.0090.00614.77
7.3.60.0060.01014.86
7.3.50.0030.00714.61
7.3.40.0100.00714.87
7.3.30.0030.00814.49
7.3.20.0080.00816.59
7.3.10.0060.01216.58
7.3.00.0110.00416.41
7.2.240.0120.00615.02
7.2.230.0080.00815.10
7.2.220.0070.01014.63
7.2.210.0100.00614.75
7.2.200.0030.01314.69
7.2.190.0120.00314.93
7.2.180.0060.01014.87
7.2.170.0040.01114.91
7.2.160.0000.01414.87
7.2.150.0030.01416.88
7.2.140.0090.00916.75
7.2.130.0100.00716.92
7.2.120.0060.01216.56
7.2.110.0070.00716.88
7.2.100.0070.01016.64
7.2.90.0090.00616.81
7.2.80.0000.01716.71
7.2.70.0100.00716.71
7.2.60.0060.00616.87
7.2.50.0040.01416.84
7.2.40.0070.01016.61
7.2.30.0030.01316.77
7.2.20.0000.01516.95
7.2.10.0060.00916.66
7.2.00.0060.00917.97
7.1.330.0090.00615.63
7.1.320.0090.00315.69
7.1.310.0070.00415.83
7.1.300.0100.00615.38
7.1.290.0030.00915.64
7.1.280.0000.01415.71
7.1.270.0060.01015.46
7.1.260.0100.00315.74
7.1.250.0060.01015.81
7.1.100.0060.00618.18
7.1.70.0000.01017.03
7.1.60.0070.01819.17
7.1.50.0060.00916.88
7.1.00.0130.06722.36
7.0.200.0140.00714.74
7.0.140.0030.07322.09
7.0.100.0200.04319.91
7.0.90.0030.06719.88
7.0.80.0030.07719.79
7.0.70.0070.07019.85
7.0.60.0100.04020.00
7.0.50.0030.05020.25
7.0.40.0000.07320.04
7.0.30.0000.04720.09
7.0.20.0070.06320.05
7.0.10.0100.08319.89
7.0.00.0070.09319.98
5.6.280.0070.07020.85
5.6.250.0130.03720.57
5.6.240.0070.05020.48
5.6.230.0030.05320.57
5.6.220.0130.07020.46
5.6.210.0100.04320.70
5.6.200.0070.08320.98
5.6.190.0170.06721.02
5.6.180.0100.06721.05
5.6.170.0100.08320.99
5.6.160.0170.03320.99
5.6.150.0200.02720.95
5.6.140.0100.04320.89
5.6.130.0200.06320.96
5.6.120.0100.07720.94
5.6.110.0100.07721.04
5.6.100.0000.04720.97
5.6.90.0130.07320.88
5.6.80.0070.08020.36
5.6.70.0030.04020.33
5.6.60.0230.06720.39
5.6.50.0030.04320.43
5.6.40.0070.03720.23
5.6.30.0070.03720.35
5.6.20.0000.04320.34
5.6.10.0070.03720.26
5.6.00.0030.04020.20
5.5.380.0100.03720.36
5.5.370.0100.04020.39
5.5.360.0070.04320.30
5.5.350.0070.04320.37
5.5.340.0030.06020.68
5.5.330.0100.06720.68
5.5.320.0030.04720.77
5.5.310.0100.04720.70
5.5.300.0030.04320.85
5.5.290.0170.04020.86
5.5.280.0030.04320.83
5.5.270.0100.04720.83
5.5.260.0070.04720.85
5.5.250.0130.06720.67
5.5.240.0030.05020.24
5.5.230.0100.05320.25
5.5.220.0070.04020.23
5.5.210.0070.04020.17
5.5.200.0070.04020.03
5.5.190.0000.04320.18
5.5.180.0070.04020.16
5.5.160.0070.03720.12
5.5.150.0030.03720.05
5.5.140.0070.04020.16
5.5.130.0130.02720.19
5.5.120.0130.02720.06
5.5.110.0170.02720.16
5.5.100.0030.03319.89
5.5.90.0100.02720.01
5.5.80.0030.03320.10
5.5.70.0030.04020.01
5.5.60.0170.02019.94
5.5.50.0070.03019.94
5.5.40.0030.03319.98
5.5.30.0100.03019.99
5.5.20.0030.03719.99
5.5.10.0030.04019.91
5.5.00.0070.03019.99
5.4.450.0030.04319.38
5.4.440.0000.04319.42
5.4.430.0070.06719.34
5.4.420.0000.05719.55
5.4.410.0130.05019.43
5.4.400.0030.04019.13
5.4.390.0130.07019.03
5.4.380.0100.04719.12
5.4.370.0070.03719.12
5.4.360.0130.04019.00
5.4.350.0000.04319.14
5.4.340.0030.04018.98
5.4.320.0030.03718.94
5.4.310.0000.04018.90
5.4.300.0030.03019.07
5.4.290.0000.03719.04
5.4.280.0030.03318.96
5.4.270.0100.03319.23
5.4.260.0030.03019.05
5.4.250.0000.03719.02
5.4.240.0070.03319.22
5.4.230.0070.06019.02
5.4.220.0000.03718.95
5.4.210.0100.03019.04
5.4.200.0030.03318.97
5.4.190.0030.04719.22
5.4.180.0030.03318.77
5.4.170.0070.04319.05
5.4.160.0070.03318.95
5.4.150.0070.03018.79
5.4.140.0000.03316.02
5.4.130.0130.02016.27
5.4.120.0030.03016.07
5.4.110.0030.03016.34
5.4.100.0030.03016.45
5.4.90.0000.03716.20
5.4.80.0100.02316.32
5.4.70.0000.03316.26
5.4.60.0000.03716.18
5.4.50.0000.03316.15
5.4.40.0070.02716.42
5.4.30.0000.03316.43
5.4.20.0030.03316.18
5.4.10.0070.03016.19
5.4.00.0070.02715.77
5.3.290.0000.04014.52
5.3.280.0030.03014.43
5.3.270.0030.03014.55
5.3.260.0030.03014.57
5.3.250.0000.04014.51
5.3.240.0070.03314.43
5.3.230.0030.03014.54
5.3.220.0000.04014.56
5.3.210.0070.03014.38
5.3.200.0000.04014.42
5.3.190.0030.03014.52
5.3.180.0000.03314.54
5.3.170.0070.03014.50
5.3.160.0000.03714.51
5.3.150.0070.02714.57
5.3.140.0000.03314.52
5.3.130.0000.03314.52
5.3.120.0000.03314.53
5.3.110.0000.03314.40
5.3.100.0070.03013.98
5.3.90.0000.03713.87
5.3.80.0000.03314.00
5.3.70.0000.03313.79
5.3.60.0130.02313.86
5.3.50.0030.03013.92
5.3.40.0070.03013.80
5.3.30.0030.03013.68
5.3.20.0000.03313.65
5.3.10.0000.03713.51
5.3.00.0070.03013.59
5.2.170.0000.02711.14
5.2.160.0070.02010.96
5.2.150.0030.02710.93
5.2.140.0000.03011.05
5.2.130.0070.02011.12
5.2.120.0000.02711.14
5.2.110.0000.02711.12
5.2.100.0030.05711.08
5.2.90.0030.06310.92
5.2.80.0070.06310.91
5.2.70.0070.06010.94
5.2.60.0030.05310.85
5.2.50.0000.04310.97
5.2.40.0070.03711.00
5.2.30.0100.04711.01
5.2.20.0000.03711.00
5.2.10.0100.02710.91
5.2.00.0070.02710.77
5.1.60.0070.04710.04
5.1.50.0030.0509.83
5.1.40.0130.0439.85
5.1.30.0070.05310.38
5.1.20.0070.05310.39
5.1.10.0030.05710.11
5.1.00.0070.0539.95
5.0.50.0000.0278.57
5.0.40.0000.0278.23
5.0.30.0000.0378.27
5.0.20.0030.0408.25
5.0.10.0000.0508.00
5.0.00.0000.0678.20
4.4.90.0000.0236.71
4.4.80.0000.0206.71
4.4.70.0030.0176.71
4.4.60.0030.0176.71
4.4.50.0070.0306.71
4.4.40.0100.0336.71
4.4.30.0070.0306.71
4.4.20.0030.0306.71
4.4.10.0000.0176.71
4.4.00.0000.0536.71
4.3.110.0030.0336.71
4.3.100.0070.0336.71
4.3.90.0000.0376.71
4.3.80.0030.0536.71
4.3.70.0030.0306.71
4.3.60.0000.0276.71
4.3.50.0000.0276.71
4.3.40.0030.0506.71
4.3.30.0000.0376.71
4.3.20.0000.0376.71
4.3.10.0000.0206.71
4.3.00.0030.0136.71

preferences:
36.49 ms | 401 KiB | 5 Q