3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Hello world!"; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 1)); if(password_verify($password, $hash)) { echo 'success'; } else { echo 'failed'; }

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.00.0150.00415.18
7.3.120.0060.01214.50
7.3.110.0100.00714.71
7.3.100.0060.01314.97
7.3.90.0030.01314.48
7.3.80.0060.00914.95
7.3.70.0040.01114.92
7.3.60.0060.00614.51
7.3.50.0030.01214.76
7.3.40.0080.00814.86
7.3.30.0040.00814.84
7.3.20.0030.01016.46
7.3.10.0070.00716.77
7.3.00.0090.00316.79
7.2.250.0060.01014.96
7.2.240.0110.00715.29
7.2.230.0090.00614.72
7.2.220.0000.01714.98
7.2.210.0110.00615.02
7.2.200.0120.00315.12
7.2.190.0100.00714.88
7.2.180.0100.00314.71
7.2.170.0060.00315.14
7.2.160.0030.01015.02
7.2.150.0050.01017.09
7.2.140.0070.00716.91
7.2.130.0070.00416.88
7.2.120.0030.01017.09
7.2.110.0080.00316.78
7.2.100.0090.00617.04
7.2.90.0030.00616.75
7.2.80.0000.01117.00
7.2.70.0000.00916.81
7.2.60.0030.00917.06
7.2.50.0060.01016.98
7.2.40.0130.00316.68
7.2.30.0090.00016.73
7.2.20.0070.01016.73
7.2.10.0000.02016.78
7.2.00.0060.01118.03
7.1.330.0040.01415.88
7.1.320.0110.00015.98
7.1.310.0040.01215.85
7.1.300.0070.00615.75
7.1.290.0050.00515.83
7.1.280.0100.00015.82
7.1.270.0060.00915.64
7.1.260.0030.00715.56
7.1.250.0030.00915.81
7.1.240.0080.00315.92
7.1.230.0030.01315.82
7.1.220.0070.00715.58
7.1.210.0100.00315.78
7.1.200.0050.00415.79
7.1.190.0090.00915.92
7.1.180.0030.01315.76
7.1.170.0140.00015.87
7.1.160.0040.00715.75
7.1.150.0060.00315.69
7.1.140.0060.00915.80
7.1.130.0040.01215.91
7.1.120.0030.00615.93
7.1.110.0140.00015.98
7.1.100.0040.01117.03
7.1.90.0000.01215.83
7.1.80.0000.01315.88
7.1.70.0070.00516.20
7.1.60.0060.00817.60
7.1.50.0180.00825.35
7.1.40.0090.00615.93
7.1.30.0000.01415.90
7.1.20.0060.00615.80
7.1.10.0060.00915.71
7.1.00.0030.04219.08
7.0.330.0090.00315.34
7.0.320.0050.00515.38
7.0.310.0040.00415.20
7.0.300.0030.00515.41
7.0.290.0030.00915.23
7.0.280.0030.00815.19
7.0.270.0060.01215.34
7.0.260.0120.00015.37
7.0.250.0060.00915.51
7.0.240.0030.01015.35
7.0.230.0070.00715.32
7.0.220.0030.00615.23
7.0.210.0080.00515.39
7.0.200.0000.01016.19
7.0.190.0030.00915.48
7.0.180.0000.01315.37
7.0.170.0070.00715.53
7.0.160.0070.00715.41
7.0.150.0000.00915.41
7.0.140.0030.04218.75
7.0.130.0080.00615.51
7.0.120.0030.01015.34
7.0.110.0000.01315.39
7.0.100.0040.00815.29
7.0.90.0090.00315.50
7.0.80.0040.01115.51
7.0.70.0060.00615.52
7.0.60.0020.04717.53
7.0.50.0060.03816.54
7.0.40.0100.04516.81
7.0.30.0180.02516.93
7.0.20.0140.02316.84
7.0.10.0080.04616.90
7.0.00.0070.03016.88
5.6.400.0040.01114.70
5.6.390.0100.00313.84
5.6.380.0040.00814.60
5.6.370.0030.01014.37
5.6.360.0000.00914.19
5.6.350.0100.00314.13
5.6.340.0040.01114.34
5.6.330.0090.00914.13
5.6.320.0040.00714.39
5.6.310.0080.00814.60
5.6.300.0030.01314.20
5.6.290.0060.00614.65
5.6.280.0040.04117.69
5.6.270.0070.00714.43
5.6.260.0030.01014.43
5.6.250.0000.01314.37
5.6.240.0040.01214.51
5.6.230.0070.00314.65
5.6.220.0090.00614.08
5.6.210.0080.04117.47
5.6.200.0060.02016.15
5.6.190.0000.03017.44
5.6.180.0190.02117.60
5.6.170.0190.04017.38
5.6.160.0100.04017.45
5.6.150.0110.03816.29
5.6.140.0130.04016.26
5.6.130.0130.04316.28
5.6.120.0020.02817.63
5.6.110.0050.04917.64
5.6.100.0020.02917.64
5.6.90.0070.04817.58
5.6.80.0070.02317.32
5.6.70.0000.01414.17
5.6.60.0110.00714.06
5.6.50.0000.01014.64
5.6.40.0080.00414.12
5.6.30.0000.01014.23
5.6.20.0140.00014.24
5.6.10.0030.00914.53
5.6.00.0100.00614.54
5.5.380.0070.00714.56
5.5.370.0030.01414.47
5.5.360.0040.00814.22
5.5.350.0050.02317.26
5.5.340.0020.02716.21
5.5.330.0110.02317.46
5.5.320.0080.03017.36
5.5.310.0200.03717.12
5.5.300.0060.04816.04
5.5.290.0030.05216.32
5.5.280.0080.03217.57
5.5.270.0030.04517.60
5.5.260.0070.04117.66
5.5.250.0080.04817.60
5.5.240.0120.04917.15
5.5.230.0120.00414.38
5.5.220.0050.01314.28
5.5.210.0000.01614.22
5.5.200.0110.00214.15
5.5.190.0100.01014.36
5.5.180.0140.00714.34
5.5.170.0110.00414.07
5.5.160.0070.00314.09
5.5.150.0110.00514.21
5.5.140.0150.00314.29
5.5.130.0000.01114.43
5.5.120.0090.00014.07
5.5.110.0070.00314.40
5.5.100.0070.00714.51
5.5.90.0100.00714.34
5.5.80.0070.00714.48
5.5.70.0030.01014.22
5.5.60.0120.00314.37
5.5.50.0030.00613.96
5.5.40.0100.00714.24
5.5.30.0030.01014.14
5.5.20.0080.00414.34
5.5.10.0130.00314.20
5.5.00.0100.00014.32
5.4.450.0370.01523.41
5.4.440.0250.01823.41
5.4.430.0150.02922.60
5.4.420.0200.02021.96
5.4.410.0080.02821.47
5.4.400.0140.02221.44
5.4.390.0320.02521.44
5.4.380.0080.03214.85
5.4.370.0170.02814.76
5.4.360.0100.03014.80
5.4.350.0090.03214.64
5.4.340.0150.02514.57
5.4.330.0100.00310.84
5.4.320.0050.02111.68
5.4.310.0040.02511.60
5.4.300.0020.02211.61
5.4.290.0020.02511.59
5.4.280.0080.01811.52
5.4.270.0050.02011.59
5.4.260.0040.02411.58
5.4.250.0060.02211.54
5.4.240.0030.02411.57
5.4.230.0070.02111.67
5.4.220.0030.02311.55
5.4.210.0050.02111.62
5.4.200.0030.02411.51
5.4.190.0060.02011.51
5.4.180.0030.02311.51
5.4.170.0060.01811.59
5.4.160.0070.01911.52
5.4.150.0060.01911.52
5.4.140.0060.02011.39
5.4.130.0040.02011.51
5.4.120.0100.01811.33
5.4.110.0040.02311.35
5.4.100.0050.02011.39
5.4.90.0070.02011.37
5.4.80.0040.02311.38
5.4.70.0030.02311.43
5.4.60.0060.01911.39
5.4.50.0070.02011.45
5.4.40.0100.02411.33
5.4.30.0060.01911.32
5.4.20.0060.02511.38
5.4.10.0080.01811.32
5.4.00.0060.01911.12
5.3.290.0070.02411.75
5.3.280.0050.02111.70
5.3.270.0040.02411.71
5.3.260.0040.02211.71
5.3.250.0070.02511.71
5.3.240.0030.02211.71
5.3.230.0060.02111.70
5.3.220.0050.02511.69
5.3.210.0060.02111.69
5.3.200.0060.02211.69
5.3.190.0060.02311.68
5.3.180.0050.02011.68
5.3.170.0070.01911.68
5.3.160.0040.02111.68
5.3.150.0060.02011.68
5.3.140.0070.02211.68
5.3.130.0070.02011.67
5.3.120.0020.02311.68
5.3.110.0020.02511.67
5.3.100.0050.02011.40
5.3.90.0050.02611.39
5.3.80.0060.02311.38
5.3.70.0060.02111.38
5.3.60.0050.02211.38
5.3.50.0070.02611.35
5.3.40.0070.01911.35
5.3.30.0070.01911.32
5.3.20.0040.02311.21
5.3.10.0050.02311.19
5.3.00.0080.02211.18
5.2.170.0050.0299.18
5.2.160.0040.0299.18
5.2.150.0060.0299.18
5.2.140.0050.0299.18
5.2.130.0040.0299.15
5.2.120.0030.0299.14
5.2.110.0050.0369.15
5.2.100.0040.0289.14
5.2.90.0040.0309.14
5.2.80.0050.0429.14
5.2.70.0060.0289.14
5.2.60.0070.0289.09
5.2.50.0050.0319.06
5.2.40.0030.0339.04
5.2.30.0050.0299.02
5.2.20.0040.0329.00
5.2.10.0060.0278.92
5.2.00.0070.0268.78
5.1.60.0040.0248.06
5.1.50.0020.0268.06
5.1.40.0050.0248.04
5.1.30.0070.0248.39
5.1.20.0050.0258.42
5.1.10.0040.0268.14
5.1.00.0050.0248.14
5.0.50.0040.0206.62
5.0.40.0050.0186.47
5.0.30.0030.0426.29
5.0.20.0060.0166.26
5.0.10.0060.0176.24
5.0.00.0040.0296.23
4.4.90.0050.0144.78
4.4.80.0020.0234.75
4.4.70.0040.0144.75
4.4.60.0050.0144.75
4.4.50.0040.0174.77
4.4.40.0010.0274.71
4.4.30.0010.0174.76
4.4.20.0050.0134.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0040.0144.67
4.3.100.0000.0194.66
4.3.90.0020.0154.63
4.3.80.0010.0284.58
4.3.70.0030.0154.63
4.3.60.0040.0154.63
4.3.50.0040.0204.62
4.3.40.0010.0254.54
4.3.30.0020.0163.28
4.3.20.0020.0203.26
4.3.10.0020.0193.22
4.3.00.0100.01032.19

preferences:
45.51 ms | 401 KiB | 5 Q