3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Hello world!"; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12)); 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.10.0100.49115.08
7.4.00.0100.49814.86
7.3.130.0070.51414.94
7.3.120.0070.51714.83
7.3.110.0100.51214.72
7.3.100.0000.49314.65
7.3.90.0070.50114.55
7.3.80.0100.48414.64
7.3.70.0070.49714.77
7.3.60.0000.49114.86
7.3.50.0070.50014.69
7.3.40.0070.49714.47
7.3.30.0130.47914.82
7.3.20.0070.49316.49
7.3.10.0070.48816.54
7.3.00.0030.48816.52
7.2.260.0100.51214.74
7.2.250.0030.49115.10
7.2.240.0030.50914.89
7.2.230.0130.50014.76
7.2.220.0030.50115.21
7.2.210.0070.49615.12
7.2.200.0030.48914.82
7.2.190.0000.49815.05
7.2.180.0030.48215.04
7.2.170.0030.50015.02
7.2.160.0030.49915.00
7.2.150.0030.48516.80
7.2.140.0030.50316.96
7.2.130.0030.49816.67
7.2.120.0070.48616.87
7.2.110.0050.49716.86
7.2.100.0050.49517.00
7.2.90.0070.49016.90
7.2.80.0070.48416.80
7.2.70.0050.49816.76
7.2.60.0070.49416.83
7.2.50.0040.49416.91
7.2.40.0030.49116.82
7.2.30.0070.49017.02
7.2.20.0030.50916.73
7.2.10.0030.49816.84
7.2.00.0060.50017.44
7.1.330.0100.49315.70
7.1.320.0030.50515.84
7.1.310.0000.49715.62
7.1.300.0030.49015.77
7.1.290.0000.49015.71
7.1.280.0030.50215.91
7.1.270.0030.49615.72
7.1.260.0000.50815.40
7.1.250.0030.49215.60
7.1.240.0030.49215.85
7.1.230.0070.50315.81
7.1.220.0030.49615.56
7.1.210.0070.48415.71
7.1.200.0030.48415.66
7.1.190.0070.49015.93
7.1.180.0070.49415.39
7.1.170.0000.49815.66
7.1.160.0030.49115.61
7.1.150.0000.50415.71
7.1.140.0000.49415.69
7.1.130.0070.48715.57
7.1.120.0070.50215.76
7.1.110.0030.50215.59
7.1.100.0080.50716.64
7.1.90.0000.50715.74
7.1.80.0100.48315.75
7.1.70.0050.51116.30
7.1.60.0070.52817.50
7.1.50.0100.52225.31
7.1.40.0030.49415.71
7.1.30.0030.49115.70
7.1.20.0030.49415.80
7.1.10.0100.47515.61
7.1.00.0070.52819.00
7.0.330.0130.48115.33
7.0.320.0000.50615.05
7.0.310.0030.49615.17
7.0.300.0070.47815.46
7.0.290.0030.49815.32
7.0.280.0070.49815.43
7.0.270.0030.50115.34
7.0.260.0030.48215.50
7.0.250.0030.49915.39
7.0.240.0030.50315.23
7.0.230.0030.48815.45
7.0.220.0030.48115.48
7.0.210.0070.49015.34
7.0.200.0030.49515.98
7.0.190.0070.49715.22
7.0.180.0030.50315.38
7.0.170.0030.50415.46
7.0.160.0070.50015.50
7.0.150.0070.49315.43
7.0.140.0070.51418.78
7.0.130.0030.48915.29
7.0.120.0030.49615.21
7.0.110.0070.49615.41
7.0.100.0030.48217.66
7.0.90.0030.53017.51
7.0.80.0050.54017.60
7.0.70.0080.53217.62
7.0.60.0250.47217.51
7.0.50.0050.53917.71
7.0.40.0030.54816.78
7.0.30.0020.55016.77
7.0.20.0050.55616.65
7.0.10.0050.53716.57
7.0.00.0100.51716.80
5.6.400.0030.49914.41
5.6.390.0000.50214.39
5.6.380.0030.49114.66
5.6.370.0000.49514.46
5.6.360.0030.50014.24
5.6.350.0100.48614.18
5.6.340.0070.47914.04
5.6.330.0030.49414.30
5.6.320.0000.48914.21
5.6.310.0070.50014.16
5.6.300.0070.50014.59
5.6.290.0030.49714.49
5.6.280.0050.51817.66
5.6.270.0000.48314.06
5.6.260.0070.48914.18
5.6.250.0070.53017.45
5.6.240.0080.52717.46
5.6.230.0030.48117.40
5.6.220.0030.47017.47
5.6.210.0070.54217.42
5.6.200.0050.47617.78
5.6.190.0030.51717.60
5.6.180.0070.53617.73
5.6.170.0080.53217.65
5.6.160.0050.54017.70
5.6.150.0050.54217.59
5.6.140.0020.54717.60
5.6.130.0080.54317.59
5.6.120.0050.54217.62
5.6.110.0030.53117.41
5.6.100.0100.52917.54
5.6.90.0030.55617.73
5.6.80.0130.53417.51
5.6.70.0070.47017.24
5.6.60.0020.54617.46
5.6.50.0080.53517.33
5.6.40.0530.46017.24
5.6.30.0070.49317.33
5.6.20.0030.47217.34
5.6.10.0050.47417.24
5.6.00.0070.46117.33
5.5.380.0020.55317.20
5.5.370.0100.48917.27
5.5.360.0020.51117.37
5.5.350.0470.46017.12
5.5.340.0030.54517.42
5.5.330.0050.53417.57
5.5.320.0030.52717.37
5.5.310.0100.53617.43
5.5.300.0030.52317.51
5.5.290.0030.54317.56
5.5.280.0080.55017.49
5.5.270.0070.54117.48
5.5.260.0080.53017.46
5.5.250.0050.48617.45
5.5.240.0070.53717.26
5.5.230.0070.55017.22
5.5.220.0050.49717.14
5.5.210.0030.52917.27
5.5.200.0020.47917.29
5.5.190.0070.51417.16
5.5.180.0050.46117.04
5.5.170.0000.48813.84
5.5.160.0020.47517.09
5.5.150.0050.46817.15
5.5.140.0030.47617.13
5.5.130.0020.47317.13
5.5.120.0080.52917.08
5.5.110.0050.51316.97
5.5.100.0050.52817.05
5.5.90.0080.53917.12
5.5.80.0070.54017.19
5.5.70.0050.53817.17
5.5.60.0050.53217.05
5.5.50.0050.55717.08
5.5.40.0100.53217.10
5.5.30.0030.53817.22
5.5.20.0080.53417.06
5.5.10.0050.51216.98
5.5.00.0030.53717.11
5.4.450.0030.02716.14
5.4.440.0030.02316.04
5.4.430.0030.04016.04
5.4.420.0030.03515.98
5.4.410.0020.02315.93
5.4.400.0080.03015.84
5.4.390.0090.03615.89
5.4.380.0050.02015.92
5.4.370.0030.03715.76
5.4.360.0020.02215.91
5.4.350.0000.02315.89
5.4.340.0030.01815.87
5.4.330.0070.00012.72
5.4.320.0040.01915.85
5.4.310.0000.02115.81
5.4.300.0030.01815.87
5.4.290.0080.01515.89
5.4.280.0030.03515.89
5.4.270.0080.03015.97
5.4.260.0030.02315.89
5.4.250.0100.02515.87
5.4.240.0050.03515.91
5.4.230.0030.04215.75
5.4.220.0030.04215.87
5.4.210.0070.03515.97
5.4.200.0070.01715.90
5.4.190.0030.02715.76
5.4.180.0020.02315.80
5.4.170.0030.02815.92
5.4.160.0070.03015.80
5.4.150.0060.02915.85
5.4.140.0050.02014.39
5.4.130.0050.02214.49
5.4.120.0040.02214.53
5.4.110.0030.03514.46
5.4.100.0000.03614.51
5.4.90.0030.02414.52
5.4.80.0050.02914.59
5.4.70.0050.03014.46
5.4.60.0070.03114.56
5.4.50.0030.04214.55
5.4.40.0050.03214.54
5.4.30.0070.04014.54
5.4.20.0030.02014.46
5.4.10.0030.04314.48
5.4.00.0060.03614.20
5.3.290.0020.02214.20
5.3.280.0050.03814.20
5.3.270.0030.04114.20
5.3.260.0030.02514.20
5.3.250.0020.02214.20
5.3.240.0060.01714.20
5.3.230.0100.03214.20
5.3.220.0070.02214.20
5.3.210.0020.04114.20
5.3.200.0070.03314.20
5.3.190.0070.03714.20
5.3.180.0100.03314.20
5.3.170.0050.03014.20
5.3.160.0040.03514.20
5.3.150.0050.03614.20
5.3.140.0050.03914.20
5.3.130.0090.03514.20
5.3.120.0100.02714.20
5.3.110.0080.03914.20
5.3.100.0060.03714.20
5.3.90.0040.02214.20
5.3.80.0060.01814.20
5.3.70.0030.03714.20
5.3.60.0040.04114.20
5.3.50.0000.02314.20
5.3.40.0030.03514.20
5.3.30.0070.01514.20
5.3.20.0060.01814.20
5.3.10.0030.02514.20
5.3.00.0030.03814.20
5.2.170.0030.06315.69
5.2.160.0100.02015.69
5.2.150.0030.05315.69
5.2.140.0100.05015.69
5.2.130.0030.05715.69
5.2.120.0070.05015.69
5.2.110.0000.03015.69
5.2.100.0000.05015.69
5.2.90.0070.04015.69
5.2.80.0030.04715.69
5.2.70.0030.03015.69
5.2.60.0000.04015.69
5.2.50.0030.03015.69
5.2.40.0030.04315.69
5.2.30.0030.03015.69
5.2.20.0070.04715.69
5.2.10.0030.05015.69
5.2.00.0030.06015.69
5.1.60.0000.05315.69
5.1.50.0030.03015.69
5.1.40.0070.05015.69
5.1.30.0030.05715.69
5.1.20.0000.06015.69
5.1.10.0070.05015.69
5.1.00.0130.04315.69
5.0.50.0070.04315.69
5.0.40.0000.05015.69
5.0.30.0030.03715.69
5.0.20.0030.02315.69
5.0.10.0100.04715.69
5.0.00.0000.03715.69
4.4.90.0000.02715.69
4.4.80.0030.02015.69
4.4.70.0070.01315.69
4.4.60.0000.03315.69
4.4.50.0000.04015.69
4.4.40.0000.02315.69
4.4.30.0070.03015.69
4.4.20.0030.03715.69
4.4.10.0000.03715.69
4.4.00.0000.04315.69
4.3.110.0030.02015.69
4.3.100.0000.03715.69
4.3.90.0100.02715.69
4.3.80.0070.05015.69
4.3.70.0030.02015.69
4.3.60.0030.01715.69
4.3.50.0000.03015.69
4.3.40.0000.03015.69
4.3.30.0030.03015.69
4.3.20.0000.03715.69
4.3.10.0070.03015.69
4.3.00.0030.03315.69

preferences:
38.9 ms | 401 KiB | 5 Q