3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 18; $i < 23; ++$i) { $hash = '$2y$10$' . str_repeat('A', $i + 1); $sum = 0.0; for ($j = 0; $j < 5; ++$j) { $start = microtime(true); password_verify('a', $hash); $end = microtime(true); $sum += $end - $start; unset($start, $end); } printf("%02d: %.5f\n", $i + 1, $sum / 30); }

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.0.90.0030.57016.80
8.0.80.0030.56816.64
8.0.70.0100.56416.78
8.0.60.0030.56816.86
8.0.50.0030.56916.71
8.0.30.0030.56916.71
8.0.20.0030.56816.97
8.0.10.0030.57316.85
8.0.00.0070.56916.87
7.4.220.0100.56416.30
7.4.210.0070.56716.56
7.4.200.0000.57416.66
7.4.190.0030.57116.34
7.4.180.0030.57216.62
7.4.160.0030.57216.72
7.4.150.0030.56916.57
7.4.140.0030.56816.28
7.4.130.0070.56516.41
7.4.120.0000.57316.53
7.4.110.0070.56616.48
7.4.100.0170.58616.59
7.4.90.0150.69216.37
7.4.80.0230.70416.47
7.4.70.0100.70916.40
7.4.60.0230.73316.51
7.4.50.0130.70116.21
7.4.40.0200.68716.40
7.4.30.0180.69216.35
7.4.20.0150.69216.42
7.4.10.0130.69416.44
7.4.00.0070.71216.56
7.3.290.0030.56716.39
7.3.280.0000.57116.34
7.3.270.0070.56716.39
7.3.260.0030.56916.24
7.3.250.0000.57216.36
7.3.240.0030.56816.23
7.3.230.0000.58016.26
7.3.220.0030.56916.27
7.3.210.0230.68416.31
7.3.200.0200.68316.46
7.3.190.0180.70516.45
7.3.180.0160.70816.29
7.3.170.0160.69416.44
7.3.160.0150.70716.26
7.3.150.0190.69916.31
7.3.140.0180.70316.27
7.3.130.0200.68816.27
7.3.120.0120.69216.35
7.3.110.0170.72716.38
7.3.100.0130.76215.91
7.3.90.0180.77815.87
7.3.80.0140.77915.82
7.3.70.0140.76915.81
7.3.60.0120.71415.51
7.3.50.0090.69215.37
7.3.40.0110.70115.56
7.3.30.0100.71315.72
7.3.20.0090.70516.52
7.3.10.0090.67716.53
7.3.00.0120.69616.54
7.2.340.0030.56916.40
7.2.330.0180.69616.51
7.2.320.0150.68616.47
7.2.310.0180.69716.54
7.2.300.0120.69416.43
7.2.290.0130.69416.61
7.2.280.0150.70016.55
7.2.270.0200.68716.37
7.2.260.0130.69116.61
7.2.250.0140.70216.47
7.2.240.0180.69716.45
7.2.230.0130.74715.92
7.2.220.0110.75616.04
7.2.210.0100.76515.91
7.2.200.0110.78116.02
7.2.190.0170.70815.74
7.2.180.0150.71015.76
7.2.170.0080.70715.72
7.2.160.0100.70215.84
7.2.150.0090.72216.77
7.2.140.0150.70216.78
7.2.130.0060.68016.70
7.2.120.0150.69216.43
7.2.110.0120.67916.47
7.2.100.0090.67216.36
7.2.90.0110.67616.45
7.2.80.0180.67616.49
7.2.70.0120.67516.46
7.2.60.0980.70216.24
7.2.50.0890.69916.24
7.2.40.1450.71516.67
7.2.30.1140.73016.76
7.2.20.1210.72916.77
7.2.10.1220.73016.71
7.2.00.1150.72816.74
7.1.330.0160.69216.51
7.1.320.0180.76716.24
7.1.310.0200.75716.22
7.1.300.0150.70815.67
7.1.290.0140.72015.75
7.1.280.0100.71515.66
7.1.270.0160.71215.75
7.1.260.0100.71715.67
7.1.250.0070.67715.68
7.1.240.0170.70515.27
7.1.230.0220.69015.33
7.1.220.0170.70815.31
7.1.210.0160.69415.21
7.1.200.0150.71115.21
7.1.190.0140.69915.26
7.1.180.0500.70015.29
7.1.170.1180.73115.04
7.1.160.1950.74615.49
7.1.150.1680.76415.67
7.1.140.1600.76615.72
7.1.130.1510.76115.65
7.1.120.1470.75815.59
7.1.110.1280.75815.53
7.1.100.1300.76215.52
7.1.90.2220.76615.49
7.1.80.1370.75815.58
7.1.70.1430.76315.26
7.1.60.1500.76022.03
7.1.50.1960.76022.02
7.1.40.1610.75621.95
7.1.30.2070.76121.99
7.1.20.1490.75721.86
7.1.10.2220.78415.16
7.1.00.2020.76115.22
7.0.330.0160.71615.28
7.0.320.0180.73515.22
7.0.310.0210.73215.20
7.0.300.0260.75914.90
7.0.290.0210.73915.67
7.0.280.0230.73415.73
7.0.270.0140.76515.85
7.0.260.0140.76615.86
7.0.250.0160.77115.76
7.0.240.0140.76815.68
7.0.230.0160.75315.74
7.0.220.0170.77615.79
7.0.210.0170.76715.52
7.0.200.0190.77815.57
7.0.190.0180.75915.48
7.0.180.0170.76415.38
7.0.170.0210.76315.47
7.0.160.0200.76715.46
7.0.150.0190.76315.36
7.0.140.0150.75615.54
7.0.130.0160.75715.59
7.0.120.0200.75115.12
7.0.110.0170.75115.06
7.0.100.0280.76015.00
7.0.90.0320.75615.10
7.0.80.0180.75515.06
7.0.70.0180.76415.06
7.0.60.0160.79014.73
7.0.50.0200.75415.06
7.0.40.0230.75715.11
7.0.30.0170.76115.14
7.0.20.0260.75815.06
7.0.10.0280.75715.07
7.0.00.0150.75815.08
5.6.400.0120.71715.12
5.6.390.0080.71615.15
5.6.380.0130.70615.01
5.6.370.0130.72715.07
5.6.360.0150.72315.18
5.6.350.0190.72915.19
5.6.340.0150.74915.01
5.6.330.0110.73615.07
5.6.320.0090.75415.08
5.6.310.0140.72915.15
5.6.300.0150.79416.50
5.6.290.0140.79116.88
5.6.280.0140.77516.91
5.6.270.0130.77616.92
5.6.260.0140.78116.88
5.6.250.0130.78016.94
5.6.240.0230.79216.95
5.6.230.0100.78016.97
5.6.220.0150.77716.95
5.6.210.0150.78817.03
5.6.200.0190.77816.93
5.6.190.0120.78016.92
5.6.180.0150.78017.06
5.6.170.0120.78516.91
5.6.160.0100.79016.88
5.6.150.0100.79116.96
5.6.140.0170.77917.00
5.6.130.0140.79216.98
5.6.120.0140.77616.94
5.6.110.0160.78816.90
5.6.100.0190.78216.95
5.6.90.0160.77316.91
5.6.80.0110.78716.66
5.6.70.0150.78716.76
5.6.60.0180.79016.71
5.6.50.0180.78516.66
5.6.40.0190.78516.69
5.6.30.0150.78716.79
5.6.20.0120.78416.66
5.6.10.0200.78716.66
5.6.00.0140.78316.77

preferences:
42.61 ms | 401 KiB | 5 Q