3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); echo password_hash('password', 1, ['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.3.10.0060.06715.99
7.3.00.0100.07116.35
7.2.130.0100.07216.71
7.2.120.0060.07116.49
7.2.110.0040.07716.68
7.2.100.0200.06916.77
7.2.90.0000.07516.70
7.2.80.0060.07516.76
7.2.70.0140.08016.83
7.2.60.0600.07715.96
7.2.50.0140.07616.64
7.2.40.0100.06916.86
7.2.30.0060.06516.66
7.2.20.0100.07216.45
7.2.10.0130.07716.71
7.2.00.0070.07218.19
7.1.250.0100.06615.55
7.1.100.0030.07218.07
7.1.70.0100.08717.13
7.1.60.0470.09733.10
7.1.50.0570.09332.86
7.1.40.0770.09732.48
7.1.30.0570.09732.73
7.1.20.0500.09732.35
7.1.10.0470.09014.37
7.1.00.0370.09314.95
7.0.200.0430.09015.01
7.0.190.0400.09714.71
7.0.180.0730.10014.39
7.0.170.0400.09714.26
7.0.160.0430.09314.13
7.0.150.0470.09014.26
7.0.140.0430.09014.48
7.0.130.0430.09014.71
7.0.120.0370.09714.70
7.0.110.0470.08714.24
7.0.100.0400.09714.37
7.0.90.0500.09314.22
7.0.80.0470.09314.39
7.0.70.0400.09314.35
7.0.60.0370.09714.34
7.0.50.1000.09314.38
7.0.40.0330.09714.71
7.0.30.0470.08714.89
7.0.20.0370.09314.82
7.0.10.0370.10014.49
7.0.00.0400.09314.45

preferences:
31.46 ms | 401 KiB | 5 Q