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.0100.02115.01
7.4.00.0120.02114.77
7.3.130.0100.03015.09
7.3.120.0030.02414.76
7.3.110.0080.02514.79
7.3.100.0030.02514.77
7.3.90.0120.02314.77
7.3.80.0030.02614.80
7.3.70.0080.01714.88
7.3.60.0030.02014.90
7.3.50.0050.02514.74
7.3.40.0050.02314.83
7.3.30.0050.02114.73
7.3.20.0040.02316.64
7.3.10.0070.02216.42
7.3.00.0090.02216.48
7.2.260.0070.02314.95
7.2.250.0100.02915.28
7.2.240.0050.02314.96
7.2.230.0030.03015.18
7.2.220.0050.02115.03
7.2.210.0000.02914.98
7.2.200.0040.02315.02
7.2.190.0070.02114.95
7.2.180.0030.02315.03
7.2.170.0030.02615.05
7.2.160.0060.01915.08
7.2.150.0050.01916.60
7.2.140.0050.02416.98
7.2.130.0070.02216.84
7.2.120.0060.02116.91
7.2.110.0080.02016.74
7.2.100.0030.02416.85
7.2.90.0060.02016.97
7.2.80.0060.02316.86
7.2.70.0050.02216.77
7.2.60.0040.02316.90
7.2.50.0070.02316.85
7.2.40.0100.02116.96
7.2.30.0070.02016.97
7.2.20.0060.02416.81
7.2.10.0080.02816.72
7.2.00.0090.02216.98
7.1.330.0050.02315.87
7.1.320.0030.03115.60
7.1.310.0080.01915.97
7.1.300.0080.01915.51
7.1.290.0060.02315.81
7.1.280.0030.02515.78
7.1.270.0050.02315.84
7.1.260.0030.02715.63
7.1.250.0080.02315.68
7.1.240.0030.02116.00
7.1.230.0060.02315.90
7.1.220.0030.01915.95
7.1.210.0060.02315.94
7.1.200.0030.02715.80
7.1.190.0000.03115.61
7.1.180.0030.02416.02
7.1.170.0100.01715.87
7.1.160.0000.02215.98
7.1.150.0070.02015.86
7.1.140.0060.02215.81
7.1.130.0070.02215.91
7.1.120.0030.02415.93
7.1.110.0040.02215.96
7.1.100.0000.02815.81
7.1.90.0100.01615.86
7.1.80.0030.02415.97
7.1.70.0020.02316.41
7.1.60.0070.01917.49
7.1.50.0050.02216.29
7.1.40.0000.02815.68
7.1.30.0100.01715.48
7.1.20.0030.02715.54
7.1.10.0100.02215.80
7.1.00.0070.05719.13
7.0.330.0000.02215.40
7.0.320.0030.02815.59
7.0.310.0150.01215.19
7.0.300.0030.02415.45
7.0.290.0030.01915.50
7.0.280.0000.02615.42
7.0.270.0070.02915.49
7.0.260.0030.02415.30
7.0.250.0040.02515.48
7.0.240.0040.01815.67
7.0.230.0060.01915.62
7.0.220.0060.02315.49
7.0.210.0040.02115.55
7.0.200.0020.02316.16
7.0.190.0070.02015.19
7.0.180.0040.02515.45
7.0.170.0100.01715.46
7.0.160.0100.01715.44
7.0.150.0000.02515.48
7.0.140.0030.07118.74
7.0.130.0000.02115.59
7.0.120.0040.02215.59
7.0.110.0070.02315.43
7.0.100.0060.05418.54
7.0.90.0050.06518.66
7.0.80.0000.04918.63
7.0.70.0050.05218.68
7.0.60.0070.05718.62
7.0.50.0030.05318.84
7.0.40.0020.03816.82
7.0.30.0050.05516.73
7.0.20.0050.06016.82
7.0.10.0020.06416.67
7.0.00.0030.06416.89
5.6.400.0000.03114.57
5.6.390.0000.02514.44
5.6.380.0030.02114.65
5.6.370.0030.02714.09
5.6.360.0070.02714.59
5.6.350.0060.02314.35
5.6.340.0100.02014.61
5.6.330.0060.02514.32
5.6.320.0060.02614.33
5.6.310.0130.01914.30
5.6.300.0040.02514.26
5.6.290.0090.02214.55
5.6.280.0050.05917.59
5.6.270.0030.02714.35
5.6.260.0070.02414.41
5.6.250.0080.06217.56
5.6.240.0100.06017.48
5.6.230.0050.06517.44
5.6.220.0030.06417.58
5.6.210.0100.05717.59
5.6.200.0070.05717.64
5.6.190.0080.05617.60
5.6.180.0020.06617.71
5.6.170.0050.05817.61
5.6.160.0130.05617.74
5.6.150.0070.06417.58
5.6.140.0100.05817.55
5.6.130.0080.06517.52
5.6.120.0100.06817.67
5.6.110.0070.05517.72
5.6.100.0030.06317.75
5.6.90.0080.05917.58
5.6.80.0070.04917.26
5.6.70.0030.05817.30
5.6.60.0050.06217.20
5.6.50.0080.05817.37
5.6.40.0050.04217.32
5.6.30.0030.05017.35
5.6.20.0020.06117.29
5.6.10.0050.06617.35
5.6.00.0050.05817.34
5.5.380.0050.06217.34
5.5.370.0080.06017.21
5.5.360.0110.05717.31
5.5.350.0100.05817.28
5.5.340.0000.07217.53
5.5.330.0070.05717.72
5.5.320.0130.05817.43
5.5.310.0080.06217.52
5.5.300.0150.06417.66
5.5.290.0050.06017.51
5.5.280.0100.06317.67
5.5.270.0030.04717.60
5.5.260.0070.06217.70
5.5.250.0100.06117.30
5.5.240.0080.05017.17
5.5.230.0050.06117.10
5.5.220.0080.05717.09
5.5.210.0070.06217.30
5.5.200.0080.06017.19
5.5.190.0030.06517.26
5.5.180.0100.05417.19
5.5.170.0060.02914.26
5.5.160.0050.06417.25
5.5.150.0050.06317.24
5.5.140.0030.06717.38
5.5.130.0100.05517.17
5.5.120.0050.05917.21
5.5.110.0050.05617.21
5.5.100.0030.06417.25
5.5.90.0090.05417.07
5.5.80.0080.06017.00
5.5.70.0060.03617.11
5.5.60.0030.04317.14
5.5.50.0070.05917.27
5.5.40.0070.05917.17
5.5.30.0070.04217.19
5.5.20.0050.05517.13
5.5.10.0070.06017.30
5.5.00.0020.05517.25
5.4.450.0050.06416.14
5.4.440.0070.06316.13
5.4.430.0050.06516.06
5.4.420.0020.06416.07
5.4.410.0000.06115.98
5.4.400.0070.05615.81
5.4.390.0070.05815.77
5.4.380.0080.05815.84
5.4.370.0100.03715.87
5.4.360.0080.04115.91
5.4.350.0050.06015.87
5.4.340.0020.06215.86
5.4.330.0060.03112.71
5.4.320.0020.06115.84
5.4.310.0030.05915.90
5.4.300.0030.06515.88
5.4.290.0050.04415.87
5.4.280.0100.04015.87
5.4.270.0000.05315.84
5.4.260.0110.05115.90
5.4.250.0050.05415.90
5.4.240.0050.05815.88
5.4.230.0070.03815.92
5.4.220.0070.04515.92
5.4.210.0080.05615.91
5.4.200.0080.05115.88
5.4.190.0070.04715.82
5.4.180.0050.05815.84
5.4.170.0020.06315.87
5.4.160.0070.04515.87
5.4.150.0050.04215.88
5.4.140.0030.05614.53
5.4.130.0070.05814.54
5.4.120.0070.05614.53
5.4.110.0030.06214.49
5.4.100.0050.05914.57
5.4.90.0080.04814.53
5.4.80.0080.05314.50
5.4.70.0030.04214.47
5.4.60.0030.04914.51
5.4.50.0050.03914.45
5.4.40.0020.04114.56
5.4.30.0070.03914.46
5.4.20.0050.03114.49
5.4.10.0050.03714.47
5.4.00.0030.03514.13
5.3.290.0080.05613.64
5.3.280.0050.06413.66
5.3.270.0070.05313.59
5.3.260.0020.04713.64
5.3.250.0050.06413.66
5.3.240.0050.05613.64
5.3.230.0070.05913.63
5.3.220.0070.06013.57
5.3.210.0100.05913.63
5.3.200.0030.06413.57
5.3.190.0030.06713.64
5.3.180.0050.06213.62
5.3.170.0050.05713.57
5.3.160.0090.04113.55
5.3.150.0070.03613.57
5.3.140.0020.03813.61
5.3.130.0050.03413.58
5.3.120.0070.03513.63
5.3.110.0030.04913.62
5.3.100.0030.03713.30
5.3.90.0000.05113.36
5.3.80.0030.04013.34
5.3.70.0020.04413.36
5.3.60.0020.06113.29
5.3.50.0020.04813.32
5.3.40.0050.03513.30
5.3.30.0030.03913.24
5.3.20.0050.04713.09
5.3.10.0000.04613.18
5.3.00.0020.03713.15
5.2.170.0070.04010.99
5.2.160.0000.04711.09
5.2.150.0030.04311.17
5.2.140.0030.05311.10
5.2.130.0030.04711.14
5.2.120.0030.04311.15
5.2.110.0030.04310.94
5.2.100.0000.04711.12
5.2.90.0100.03710.95
5.2.80.0000.05311.09
5.2.70.0030.04011.12
5.2.60.0030.04311.01
5.2.50.0030.04011.02
5.2.40.0030.04710.96
5.2.30.0070.04010.97
5.2.20.0030.05310.94
5.2.10.0000.04310.87
5.2.00.0100.03710.81
5.1.60.0000.0509.98
5.1.50.0000.07010.05
5.1.40.0000.05010.05
5.1.30.0000.05710.42
5.1.20.0070.08010.30
5.1.10.0030.02710.07
5.1.00.0030.0579.95
5.0.50.0000.0478.54
5.0.40.0000.0208.50
5.0.30.0070.0478.19
5.0.20.0000.0478.21
5.0.10.0000.0378.25
5.0.00.0000.0678.25
4.4.90.0030.0138.19
4.4.80.0030.0178.19
4.4.70.0030.0308.19
4.4.60.0000.0178.19
4.4.50.0030.0308.19
4.4.40.0000.0338.19
4.4.30.0030.0138.19
4.4.20.0000.0138.19
4.4.10.0000.0338.19
4.4.00.0030.0308.19
4.3.110.0000.0378.19
4.3.100.0030.0308.19
4.3.90.0000.0338.19
4.3.80.0000.0378.19
4.3.70.0070.0308.19
4.3.60.0030.0308.19
4.3.50.0000.0238.19
4.3.40.0000.0508.19
4.3.30.0000.0238.19
4.3.20.0000.0308.19
4.3.10.0030.0338.19
4.3.00.0030.0338.19

preferences:
33.31 ms | 401 KiB | 5 Q