3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'jsdfldfcdfädädsa3e4fkdfd.dsfm jkdfdfdsafa-sad dkskdjsajdksafjflkfasd642fd#43rcdklanjrkesajsad'; $time0 = microtime(true); for ($i = 0; $i < 10000; $i++) { $sha512 = hash('sha512', $string); } $time1 = microtime(true); for ($i = 0; $i < 10000; $i++) { $md5 = hash('md5', $string); } $time2 = microtime(true); echo 'sha512 mit ' . strlen($sha512) . ' braucht ' . $time1-$time0 . PHP_EOL; echo 'md5 mit ' . strlen($md5) . ' braucht ' . $time2-$time1 . 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.10.0000.02615.19
7.4.00.0130.02314.90
7.3.130.0100.02015.02
7.3.120.0070.03315.03
7.3.110.0070.03414.92
7.3.100.0070.02415.07
7.3.90.0070.02314.77
7.3.80.0070.01615.13
7.3.70.0040.02614.79
7.3.60.0070.01314.88
7.3.50.0040.02514.82
7.3.40.0070.02014.93
7.3.30.0000.02414.61
7.3.20.0070.01716.59
7.3.10.0070.02016.53
7.3.00.0030.02316.71
7.2.260.0070.02415.05
7.2.250.0130.02715.20
7.2.240.0100.01615.02
7.2.230.0130.01715.31
7.2.220.0130.01615.04
7.2.210.0040.02514.70
7.2.200.0030.02215.16
7.2.190.0100.01715.05
7.2.180.0060.01915.15
7.2.170.0100.02015.07
7.2.160.0100.01315.17
7.2.150.0070.02117.01
7.2.140.0060.02217.04
7.2.130.0000.02617.05
7.2.120.0030.02417.02
7.2.110.0000.02517.02
7.2.100.0000.02217.00
7.2.90.0090.01616.98
7.2.80.0070.02017.01
7.2.70.0070.02317.01
7.2.60.0000.03116.96
7.2.50.0040.02217.07
7.2.40.0030.02416.90
7.2.30.0100.01717.10
7.2.20.0060.02217.14
7.2.10.0130.01617.07
7.2.00.0050.01818.16
7.1.330.0090.01915.82
7.1.320.0070.03415.55
7.1.310.0000.02915.51
7.1.300.0030.02315.89
7.1.290.0100.01315.99
7.1.280.0000.02715.84
7.1.270.0030.02415.67
7.1.260.0030.02515.88
7.1.250.0070.02515.93
7.1.240.0070.02115.83
7.1.230.0030.02315.92
7.1.220.0030.02515.76
7.1.210.0070.02315.91
7.1.200.0040.01815.93
7.1.190.0070.02415.80
7.1.180.0030.02615.79
7.1.170.0070.01415.93
7.1.160.0070.02315.82
7.1.150.0040.02615.80
7.1.140.0000.02415.87
7.1.130.0000.02715.86
7.1.120.0130.01616.00
7.1.110.0100.01715.93
7.1.100.0090.01915.89
7.1.90.0070.02115.77
7.1.80.0070.01615.89
7.1.70.0070.01916.58
7.1.60.0050.03417.52
7.1.50.0080.02716.28
7.1.40.0040.02115.82
7.1.30.0060.01915.86
7.1.20.0030.02415.73
7.1.10.0070.02015.76
7.1.00.0000.04319.09
7.0.330.0030.02415.23
7.0.320.0070.02015.43
7.0.310.0090.01915.43
7.0.300.0060.02515.41
7.0.290.0040.02115.35
7.0.280.0030.02315.41
7.0.270.0030.02715.10
7.0.260.0120.01515.53
7.0.250.0030.02015.43
7.0.240.0030.02615.67
7.0.230.0000.02615.22
7.0.220.0070.02015.22
7.0.210.0030.02415.63
7.0.200.0050.02016.05
7.0.190.0060.01515.48
7.0.180.0030.02515.51
7.0.170.0060.02215.53
7.0.160.0100.01615.53
7.0.150.0120.01915.51
7.0.140.0030.05418.59
7.0.130.0000.02415.60
7.0.120.0000.03115.29
7.0.110.0000.02715.51
7.0.100.0090.05917.85
7.0.90.0080.06417.78
7.0.80.0080.05617.71
7.0.70.0100.05317.64
7.0.60.0050.04517.78
7.0.50.0100.06017.84
7.0.40.0030.06316.87
7.0.30.0100.06216.92
7.0.20.0070.05416.78
7.0.10.0090.05816.84
7.0.00.0000.05816.71
5.6.400.0030.02614.54
5.6.390.0060.02614.52
5.6.380.0000.03514.59
5.6.370.0060.02514.57
5.6.360.0090.01814.37
5.6.350.0030.02614.14
5.6.340.0100.02314.63
5.6.330.0000.03314.39
5.6.320.0030.02614.36
5.6.310.0100.02314.33
5.6.300.0070.02314.46
5.6.290.0060.01914.47
5.6.280.0100.05717.63
5.6.270.0030.02413.99
5.6.260.0040.02814.43
5.6.250.0140.05417.41
5.6.240.0050.06217.40
5.6.230.0030.06217.46
5.6.220.0050.06017.51
5.6.210.0090.06417.36
5.6.200.0030.06917.58
5.6.190.0050.06617.47
5.6.180.0080.05217.62
5.6.170.0050.06317.71
5.6.160.0070.06117.59
5.6.150.0070.06017.63
5.6.140.0130.06217.56
5.6.130.0050.06417.60
5.6.120.0050.06317.74
5.6.110.0080.04717.52
5.6.100.0070.05217.57
5.6.90.0030.04317.58
5.6.80.0080.03717.50
5.6.70.0030.04017.31
5.6.60.0050.03917.29
5.6.50.0030.06317.34
5.6.40.0030.04217.21
5.6.30.0080.05417.24
5.6.20.0070.04117.45
5.6.10.0030.04117.30
5.6.00.0060.03617.35
5.5.380.0080.04317.51
5.5.370.0080.05517.45
5.5.360.0100.06217.21
5.5.350.0070.06517.34
5.5.340.0070.06117.42
5.5.330.0030.06117.46
5.5.320.0030.06117.63
5.5.310.0100.05817.51
5.5.300.0080.05817.53
5.5.290.0100.05917.61
5.5.280.0080.05717.40
5.5.270.0060.04917.69
5.5.260.0060.03917.40
5.5.250.0080.03517.46
5.5.240.0020.03917.12
5.5.230.0050.04617.18
5.5.220.0050.06217.22
5.5.210.0080.04317.13
5.5.200.0020.04917.09
5.5.190.0100.05416.98
5.5.180.0080.03517.22
5.5.170.0070.02714.21
5.5.160.0070.03417.34
5.5.150.0090.05317.32
5.5.140.0100.04017.34
5.5.130.0070.05717.02
5.5.120.0030.04317.18
5.5.110.0030.05717.25
5.5.100.0050.03817.25
5.5.90.0030.03717.19
5.5.80.0030.03817.21
5.5.70.0050.04017.34
5.5.60.0030.04017.12
5.5.50.0030.06417.18
5.5.40.0000.06817.16
5.5.30.0110.05817.21
5.5.20.0030.05917.14
5.5.10.0070.06217.26
5.5.00.0080.05517.12
5.4.450.0070.06415.00
5.4.440.0120.06215.23
5.4.430.0070.04315.15
5.4.420.0050.04415.26
5.4.410.0050.03815.20
5.4.400.0100.03015.10
5.4.390.0040.04014.98
5.4.380.0080.03915.05
5.4.370.0080.02914.95
5.4.360.0020.04315.07
5.4.350.0020.04514.86
5.4.340.0060.05915.02
5.4.330.0060.02511.00
5.4.320.0070.03514.99
5.4.310.0030.03515.14
5.4.300.0020.03815.07
5.4.290.0050.05014.98
5.4.280.0050.03814.78
5.4.270.0110.05214.86
5.4.260.0030.04314.92
5.4.250.0020.04015.12
5.4.240.0060.06015.10
5.4.230.0020.04615.04
5.4.220.0030.06014.97
5.4.210.0050.05914.88
5.4.200.0050.06214.88
5.4.190.0070.06514.97
5.4.180.0030.06114.82
5.4.170.0030.06515.11
5.4.160.0080.06214.87
5.4.150.0030.05914.88
5.4.140.0020.04513.68
5.4.130.0030.06113.73
5.4.120.0000.05513.37
5.4.110.0030.05113.73
5.4.100.0060.05113.55
5.4.90.0110.05413.63
5.4.80.0050.05713.54
5.4.70.0030.06213.58
5.4.60.0050.04713.64
5.4.50.0150.05013.67
5.4.40.0100.05613.73
5.4.30.0000.05813.59
5.4.20.0030.05213.61
5.4.10.0110.05113.57
5.4.00.0070.05513.42
5.3.290.0030.04712.59
5.3.280.0100.04112.51
5.3.270.0070.06212.51
5.3.260.0050.06512.42
5.3.250.0050.06112.51
5.3.240.0100.05212.36
5.3.230.0050.06112.44
5.3.220.0030.04512.41
5.3.210.0100.05612.32
5.3.200.0070.05712.30
5.3.190.0030.07012.33
5.3.180.0070.06812.50
5.3.170.0080.05812.55
5.3.160.0020.04712.55
5.3.150.0070.05612.42
5.3.140.0050.06612.41
5.3.130.0050.06512.53
5.3.120.0070.06212.39
5.3.110.0030.06812.39
5.3.100.0030.04512.14
5.3.90.0030.06012.26
5.3.80.0020.05612.06
5.3.70.0100.05112.13
5.3.60.0080.05412.20
5.3.50.0020.06812.15
5.3.40.0050.06112.06
5.3.30.0020.06112.20
5.3.20.0020.06212.00
5.3.10.0070.06011.79
5.3.00.0070.05911.89
5.2.170.0030.06711.06
5.2.160.0070.08711.06
5.2.150.0030.08711.10
5.2.140.0030.05711.13
5.2.130.0100.06711.15
5.2.120.0000.08711.06
5.2.110.0100.07711.12
5.2.100.0070.08311.10
5.2.90.0130.08010.96
5.2.80.0070.08311.12
5.2.70.0170.05311.12
5.2.60.0070.08711.00
5.2.50.0000.06311.02
5.2.40.0030.08010.98
5.2.30.0130.07310.79
5.2.20.0100.07011.00
5.2.10.0070.06010.92
5.2.00.0030.08310.66
5.1.60.0130.07010.07
5.1.50.0030.0479.82
5.1.40.0070.07710.05
5.1.30.0030.08710.29
5.1.20.0070.08010.28
5.1.10.0070.0539.95
5.1.00.0000.06010.12
5.0.50.0000.0479.06
5.0.40.0030.0309.06
5.0.30.0030.0609.06
5.0.20.0070.0339.06
5.0.10.0070.0409.06
5.0.00.0070.0579.06
4.4.90.0000.0339.06
4.4.80.0000.0379.06
4.4.70.0030.0379.06
4.4.60.0030.0339.06
4.4.50.0070.0379.06
4.4.40.0030.0509.06
4.4.30.0000.0379.06
4.4.20.0000.0379.06
4.4.10.0030.0339.06
4.4.00.0030.0579.06
4.3.110.0030.0339.06
4.3.100.0030.0339.06
4.3.90.0070.0339.06
4.3.80.0000.0579.06
4.3.70.0070.0179.06
4.3.60.0030.0339.06
4.3.50.0000.0379.06
4.3.40.0000.0539.06
4.3.30.0030.0339.06
4.3.20.0030.0339.06
4.3.10.0000.0409.06
4.3.00.0000.0339.06

preferences:
37.05 ms | 400 KiB | 5 Q