3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); echo password_hash('password', 2, ['memory_cost' => 1<<14, 'time_cost' => 20, 'threads' => 5]).PHP_EOL; $time_end = microtime(true); //dividing with 60 will give the execution time in minutes other wise seconds $execution_time = ($time_end - $time_start); //execution time of the script echo 'Total Execution Time: '.$execution_time.' Secs'.PHP_EOL;

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.0110.00714.81
7.3.120.0060.01314.99
7.3.110.0110.00714.70
7.3.100.0060.01014.97
7.3.90.0040.01115.10
7.3.80.0050.01014.83
7.3.70.0070.00414.75
7.3.60.0090.00314.75
7.3.50.0060.00514.81
7.3.40.0080.00514.80
7.3.30.0120.00314.77
7.3.20.0040.00816.60
7.3.10.0080.00616.44
7.3.00.0060.00616.70
7.2.250.0090.00915.15
7.2.240.0070.00915.11
7.2.230.0050.00814.90
7.2.220.0050.00915.07
7.2.210.0040.00815.09
7.2.200.0050.00814.94
7.2.190.0040.00414.98
7.2.180.0030.00714.98
7.2.170.0030.01114.98
7.2.160.0070.00914.98
7.2.150.0080.00616.91
7.2.140.0070.00717.00
7.2.130.0070.01016.95
7.2.120.0060.00816.89
7.2.110.0060.00916.83
7.2.100.0090.00817.03
7.2.90.0480.24632.82
7.2.80.0030.00916.82
7.2.70.0040.00916.71
7.2.60.0260.00716.32
7.2.50.0080.00416.51
7.2.40.0070.00516.75
7.2.30.0120.00216.52
7.2.20.0020.00716.61
7.2.10.0020.01016.58
7.2.00.0130.10021.32
7.1.330.0080.00915.77
7.1.320.0070.00515.80
7.1.310.0060.00515.61
7.1.300.0050.00815.59
7.1.290.0030.00815.70
7.1.280.0030.01015.66
7.1.270.0070.00515.54
7.1.260.0050.00815.61
7.1.250.0030.01215.67
7.1.240.0050.00815.42
7.1.230.0040.00415.73
7.1.220.0070.00715.71
7.1.210.0040.01415.68
7.1.200.0100.00315.58
7.1.190.0110.00015.86
7.1.180.0090.00315.65
7.1.170.0030.00715.84
7.1.160.0040.01215.49
7.1.150.0080.00615.79
7.1.140.0040.00715.77
7.1.130.0130.00015.71
7.1.120.0000.00915.68
7.1.110.0000.01015.61
7.1.100.0040.00716.74
7.1.90.0030.00715.80
7.1.80.0040.00715.53
7.1.70.0030.00816.51
7.1.60.0270.01224.43
7.1.50.0350.00524.21
7.1.40.0340.00924.07
7.1.30.0410.00824.14
7.1.20.0300.00524.16
7.1.10.0230.00815.29
7.1.00.0250.00915.27
7.0.330.0040.00815.00
7.0.320.0030.00615.20
7.0.310.0080.00415.14
7.0.300.0050.00515.18
7.0.290.0090.00615.10
7.0.280.0000.01015.32
7.0.270.0080.00315.48
7.0.260.0060.00615.52
7.0.250.0070.00315.49
7.0.240.0040.00415.50
7.0.230.0060.00315.45
7.0.220.0000.01515.44
7.0.210.0000.01215.39
7.0.200.0220.01115.19
7.0.190.0350.00514.97
7.0.180.0410.00614.88
7.0.170.0230.01314.72
7.0.160.0260.00514.83
7.0.150.0270.00314.87
7.0.140.0220.01214.88
7.0.130.0390.00514.93
7.0.120.0350.01015.02
7.0.110.0280.01014.96
7.0.100.0310.00315.08
7.0.90.0250.00914.68
7.0.80.0700.01115.03
7.0.70.0280.00614.75
7.0.60.0240.00614.88
7.0.50.0220.00714.94
7.0.40.0230.00714.06
7.0.30.0220.00713.93
7.0.20.0260.00613.94
7.0.10.0220.00713.91
7.0.00.0260.00513.99
5.6.400.0120.00614.09
5.6.390.0040.00814.42
5.6.380.0060.00313.98
5.6.370.0090.00314.36
5.6.360.0000.01614.47
5.6.350.0080.00314.05
5.6.340.0000.01014.17
5.6.330.0080.00514.35
5.6.320.0050.00514.26
5.6.310.0030.00914.23
5.6.300.0060.00614.15
5.6.290.0030.00914.49
5.6.280.0100.00314.41
5.6.270.0030.01014.16
5.6.260.0120.00614.54
5.6.250.0070.01014.06
5.6.240.0030.00714.55
5.6.230.0110.00014.13
5.6.220.0060.00314.08
5.6.210.0070.00714.35
5.6.200.0030.01014.20
5.6.190.0030.00914.33
5.6.180.0000.01014.35
5.6.170.0070.00713.92
5.6.160.0000.01514.37
5.6.150.0030.01014.24
5.6.140.0000.01114.00
5.6.130.0060.00314.27
5.6.120.0000.00914.12
5.6.110.0030.00614.45
5.6.100.0090.00314.15
5.6.90.0100.00314.24
5.6.80.0060.00914.21
5.6.70.0060.01314.37
5.6.60.0090.00414.16
5.6.50.0080.00814.31
5.6.40.0120.00814.04
5.6.30.0100.01014.27
5.6.20.0130.00714.27
5.6.10.0100.01014.32
5.6.00.0140.00714.19

preferences:
36.98 ms | 400 KiB | 5 Q