3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'test'; $salt = 'testtesttesttesttesttesttest'; // pre-calculated hash using PHP 5.4 and the new flag $2y$ $hash = '$2y$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG'; if (version_compare(PHP_VERSION, '5.3.7', '<')) { $hash = substr('$2y$','$2a$', $hash); } if ($hash === crypt($password, $hash)) { echo "OK!\n"; } else { echo "ERROR\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)
8.3.60.0160.10916.37
8.3.50.0120.10216.48
8.3.40.0030.10518.54
8.3.30.0070.10118.54
8.3.20.0060.05218.77
8.3.10.0070.05220.36
8.3.00.0030.05517.50
8.2.180.0130.10216.38
8.2.170.0130.09622.96
8.2.160.0070.09920.14
8.2.150.0100.04824.18
8.2.140.0060.05124.66
8.2.130.0030.05526.16
8.2.120.0000.05819.77
8.2.110.0100.07022.01
8.2.100.0130.05517.91
8.2.90.0060.05817.95
8.2.80.0060.05817.97
8.2.70.0030.06217.38
8.2.60.0030.06118.05
8.2.50.0030.06218.07
8.2.40.0030.06117.97
8.2.30.0070.05717.93
8.2.20.0030.06117.59
8.2.10.0030.06117.54
8.2.00.0030.06117.59
8.1.280.0030.10525.92
8.1.270.0070.05124.66
8.1.260.0030.05426.35
8.1.250.0070.05228.09
8.1.240.0030.05622.23
8.1.230.0100.05720.89
8.1.220.0030.06217.74
8.1.210.0060.05818.77
8.1.200.0030.06217.23
8.1.190.0030.06317.28
8.1.180.0130.05818.10
8.1.170.0070.05918.82
8.1.160.0000.06318.76
8.1.150.0060.05718.49
8.1.140.0060.05717.40
8.1.130.0030.06017.82
8.1.120.0030.06017.44
8.1.110.0000.06517.22
8.1.100.0030.06017.39
8.1.90.0000.06317.45
8.1.80.0000.06417.38
8.1.70.0030.06017.29
8.1.60.0000.06417.53
8.1.50.0030.06117.31
8.1.40.0070.05817.50
8.1.30.0030.06017.55
8.1.20.0070.06017.49
8.1.10.0030.06117.52
8.1.00.0030.06117.48
8.0.300.0100.05519.96
8.0.290.0000.06416.75
8.0.280.0000.06418.38
8.0.270.0030.06017.19
8.0.260.0000.06316.75
8.0.250.0030.06116.93
8.0.240.0000.07116.77
8.0.230.0100.05616.79
8.0.220.0030.06016.89
8.0.210.0000.06416.80
8.0.200.0030.06016.88
8.0.190.0030.06216.90
8.0.180.0000.06816.75
8.0.170.0070.06116.87
8.0.160.0000.06416.89
8.0.150.0070.06316.83
8.0.140.0030.06516.70
8.0.130.0030.06013.22
8.0.120.0030.06316.84
8.0.110.0070.06016.80
8.0.100.0100.06216.82
8.0.90.0030.06016.79
8.0.80.0100.09516.86
8.0.70.0030.06316.68
8.0.60.0030.06116.67
8.0.50.0070.05716.73
8.0.30.0080.09116.97
8.0.20.0150.08517.13
8.0.10.0100.05416.76
8.0.00.0080.09016.70
7.4.330.0030.05813.10
7.4.320.0000.06316.63
7.4.300.0000.06316.51
7.4.290.0030.06016.65
7.4.280.0090.06116.49
7.4.270.0000.06316.55
7.4.260.0030.05813.18
7.4.250.0100.05816.44
7.4.240.0030.06016.55
7.4.230.0030.06016.54
7.4.220.0130.08416.48
7.4.210.0080.09316.52
7.4.200.0000.06316.46
7.4.190.0060.05816.48
7.4.160.0070.09516.30
7.4.150.0170.08316.58
7.4.140.0100.09616.47
7.4.130.0080.08916.62
7.4.120.0110.08616.46
7.4.110.0130.08516.51
7.4.100.0060.09216.42
7.4.90.0100.08716.44
7.4.80.0100.09416.61
7.4.70.0060.09416.37
7.4.60.0070.09116.40
7.4.50.0070.06616.63
7.4.40.0030.06616.35
7.4.30.0160.08116.50
7.4.00.0100.06515.10
7.3.330.0060.06113.00
7.3.320.0030.05913.05
7.3.310.0070.05816.27
7.3.300.0000.06316.20
7.3.290.0070.10016.12
7.3.280.0080.09616.19
7.3.270.0060.09016.39
7.3.260.0120.09316.27
7.3.250.0080.09216.43
7.3.240.0100.09816.42
7.3.230.0130.08316.15
7.3.210.0170.08716.31
7.3.200.0130.08419.39
7.3.190.0120.08216.51
7.3.180.0060.09116.51
7.3.170.0100.08716.38
7.3.160.0130.08416.25
7.3.120.0100.06314.98
7.3.10.0060.06816.83
7.3.00.0030.07316.60
7.2.330.0100.08916.47
7.2.320.0100.08816.57
7.2.310.0070.09916.54
7.2.300.0060.09216.55
7.2.290.0070.09016.40
7.2.130.0100.06316.87
7.2.120.0030.06916.73
7.2.110.0070.07216.77
7.2.100.0030.06816.94
7.2.90.0070.06817.10
7.2.80.0100.07616.51
7.2.70.0100.06616.75
7.2.60.0070.06516.74
7.2.50.0100.06616.86
7.2.40.0030.06816.70
7.2.30.0160.06216.75
7.2.20.0030.07216.59
7.2.10.0100.06316.84
7.2.00.0050.07118.06
7.1.250.0100.06715.78
7.1.240.0100.07015.78
7.1.230.0070.06215.59
7.1.220.0100.06615.48
7.1.210.0100.06215.87
7.1.200.0000.06915.83
7.1.190.0070.07115.87
7.1.180.0100.06515.89
7.1.170.0100.06715.47
7.1.160.0100.06615.79
7.1.150.0000.07515.86
7.1.140.0070.07415.84
7.1.130.0130.06415.74
7.1.120.0100.06515.95
7.1.110.0100.07415.85
7.1.100.0030.07117.03
7.1.90.0070.06915.57
7.1.80.0030.06915.80
7.1.70.0020.06916.43
7.1.60.0050.10017.62
7.1.50.0080.09816.22
7.1.40.0070.06815.60
7.1.30.0160.06415.77
7.1.20.0130.06315.82
7.1.10.0170.06315.60
7.1.00.0020.11418.94
7.0.330.0130.06915.39
7.0.320.0000.07515.20
7.0.310.0030.07115.30
7.0.300.0100.06815.05
7.0.290.0030.07115.28
7.0.280.0100.06615.29
7.0.270.0030.07415.17
7.0.260.0070.06915.35
7.0.250.0030.07115.26
7.0.240.0160.06215.50
7.0.230.0030.07215.04
7.0.220.0030.07515.51
7.0.210.0070.06415.53
7.0.200.0270.06516.14
7.0.190.0030.07115.34
7.0.180.0030.06815.11
7.0.170.0130.06114.99
7.0.160.0030.07315.26
7.0.150.0130.06515.30
7.0.140.0100.10918.67
7.0.130.0030.07115.07
7.0.120.0070.11618.74
7.0.110.0030.07015.33
7.0.100.0070.06415.38
7.0.90.0030.06815.44
7.0.80.0070.06715.18
7.0.70.0070.07015.25
7.0.60.0080.08617.57
7.0.50.0020.08516.49
7.0.40.0020.08916.75
7.0.30.0180.07816.76
7.0.20.0200.11116.89
7.0.10.0020.11516.75
7.0.00.0100.10716.67
5.6.380.0030.06814.14
5.6.370.0070.06613.91
5.6.360.0100.05814.32
5.6.350.0100.06514.16
5.6.340.0100.06514.52
5.6.330.0030.06813.92
5.6.320.0000.07414.62
5.6.310.0060.06614.63
5.6.300.0030.07214.03
5.6.290.0000.07014.00
5.6.280.0050.11417.63
5.6.270.0030.07013.96
5.6.260.0030.07214.11
5.6.250.0130.06013.90
5.6.240.0030.07214.18
5.6.230.0060.06414.20
5.6.220.0030.06814.48
5.6.210.0130.11017.55
5.6.200.0030.08616.12
5.6.190.0050.11617.31
5.6.180.0180.10617.27
5.6.170.0200.10417.32
5.6.160.0080.11117.28
5.6.150.0070.10716.15
5.6.140.0150.11116.21
5.6.130.0070.08916.27
5.6.120.0050.11317.70
5.6.110.0030.11917.65
5.6.100.0030.10217.49
5.6.90.0080.11517.67
5.6.80.0100.10817.17
5.6.70.0000.07114.13
5.6.60.0030.07614.11
5.6.50.0030.07314.17
5.6.40.0030.06813.81
5.6.30.0100.06514.10
5.6.20.0060.06613.91
5.6.10.0100.05914.05
5.6.00.0000.07614.13
5.5.380.0030.07011.05
5.5.370.0070.06710.87
5.5.360.0070.06910.82
5.5.350.0130.11615.77
5.5.340.0100.08914.38
5.5.330.0050.09015.54
5.5.320.0120.11315.63
5.5.310.0100.09315.63
5.5.300.0070.11614.22
5.5.290.0050.11614.42
5.5.280.0070.08215.99
5.5.270.0020.08715.81
5.5.260.0020.09415.75
5.5.250.0080.10415.63
5.5.240.0020.09515.54
5.5.230.0070.06710.70
5.5.220.0100.06210.96
5.5.210.0060.06810.94
5.5.200.0030.06911.02
5.5.190.0030.06810.90
5.5.180.0030.06710.81
5.5.170.0060.06810.70
5.5.160.0070.06710.96
5.5.150.0030.06710.59
5.5.140.0100.06510.91
5.5.130.0030.07010.74
5.5.120.0100.06210.91
5.5.110.0070.06810.82
5.5.100.0100.06210.44
5.5.90.0000.06810.67
5.5.80.0130.06411.00
5.5.70.0070.06710.89
5.5.60.0030.07210.76
5.5.50.0100.06510.75
5.5.40.0100.06810.76
5.5.30.0100.06410.69
5.5.20.0030.06710.59
5.5.10.0070.06610.89
5.5.00.0030.06810.80
5.4.450.0130.09515.01
5.4.440.0170.11615.15
5.4.430.0220.10315.12
5.4.420.0200.10515.12
5.4.410.0170.10015.18
5.4.400.0180.10714.86
5.4.390.0130.08515.01
5.4.380.0130.08115.01
5.4.370.0180.10914.82
5.4.360.0180.08114.95
5.4.350.0220.10314.76
5.4.340.0170.10815.01
5.4.330.0030.07110.76
5.4.320.0200.10214.92
5.4.310.0150.08714.83
5.4.300.0150.08014.98
5.4.290.0150.08114.89
5.4.280.0150.07914.79
5.4.270.0100.08414.98
5.4.260.0130.07714.70
5.4.250.0070.08815.02
5.4.240.0100.08114.98
5.4.230.0100.09115.11
5.4.220.0120.08114.93
5.4.210.0120.08114.89
5.4.200.0100.08314.99
5.4.190.0120.08314.79
5.4.180.0120.08114.86
5.4.170.0100.08915.03
5.4.160.0130.08114.94
5.4.150.0180.10615.00
5.4.140.0200.10113.59
5.4.130.0120.07913.59
5.4.120.0170.11113.58
5.4.110.0130.10913.63
5.4.100.0200.10413.51
5.4.90.0400.08413.59
5.4.80.0200.09613.57
5.4.70.0150.09113.56
5.4.60.0280.08713.63
5.4.50.0220.09413.49
5.4.40.0130.08213.62
5.4.30.0200.10113.53
5.4.20.0170.09813.22
5.4.10.0270.09013.59
5.4.00.0220.11113.24
5.3.290.0130.10212.51
5.3.280.0170.07312.43
5.3.270.0100.08212.54
5.3.260.0100.08612.50
5.3.250.0150.08212.47
5.3.240.0150.09212.47
5.3.230.0150.10312.52
5.3.220.0120.10112.49
5.3.210.0180.08112.50
5.3.200.0180.08612.40
5.3.190.0130.08912.47
5.3.180.0130.10812.50
5.3.170.0150.10212.55
5.3.160.0200.09112.45
5.3.150.0160.10712.45
5.3.140.0170.10512.32
5.3.130.0150.08412.51
5.3.120.0170.10112.41
5.3.110.0220.10012.44
5.3.100.0280.09912.16
5.3.90.0210.08612.16
5.3.80.0210.08412.15
5.3.70.0320.07512.13
5.3.60.0250.03912.13
5.3.50.0290.03412.04
5.3.40.0150.02512.06
5.3.30.0230.03312.09
5.3.20.0200.03511.93
5.3.10.0190.03811.88
5.3.00.0310.03811.84
5.2.170.0150.03310.59
5.2.160.0170.02910.54
5.2.150.0140.02910.54
5.2.140.0170.03010.62
5.2.130.0160.02810.54
5.2.120.0190.02810.72
5.2.110.0120.02910.70
5.2.100.0220.02610.65
5.2.90.0210.03010.63
5.2.80.0170.03010.61
5.2.70.0250.02910.54
5.2.60.0190.02710.57
5.2.50.0240.03210.55
5.2.40.0180.03010.62
5.2.30.0120.02910.55
5.2.20.0120.03410.54
5.2.10.0170.02510.54
5.2.00.0150.03110.54
5.1.60.0180.02510.54
5.1.50.0250.02510.54
5.1.40.0160.02310.54
5.1.30.0140.02910.54
5.1.20.0140.02310.54
5.1.10.0230.02810.54
5.1.00.0180.01710.54
5.0.50.0170.01310.54
5.0.40.0070.02510.54
5.0.30.0100.03710.54
5.0.20.0110.01210.54
5.0.10.0130.01610.54
5.0.00.0070.02410.54
4.4.90.0080.01810.54
4.4.80.0150.01810.54
4.4.70.0110.01810.54
4.4.60.0070.02010.54
4.4.50.0070.02010.54
4.4.40.0060.02810.54
4.4.30.0070.01910.54
4.4.20.0100.01210.54
4.4.10.0090.01810.54
4.4.00.0090.02310.54
4.3.110.0100.01310.54
4.3.100.0070.01310.54
4.3.90.0100.01210.54
4.3.80.0100.02010.54
4.3.70.0150.01010.54
4.3.60.0070.01810.54
4.3.50.0100.01310.54
4.3.40.0090.01910.54
4.3.30.0050.01710.54
4.3.20.0030.02210.54
4.3.10.0130.01610.54
4.3.00.0080.01610.54

preferences:
39.66 ms | 401 KiB | 5 Q