3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain'); $b = hash('sha256', mt_rand(), true); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = hash('crc32', $b); var_dump($r, microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = hash('crc32b', $b); var_dump($r, microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 100000; $i++) $r = sha1($b); var_dump($r, microtime(true) - $s);

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.0070.08916.55
7.3.00.0070.08216.65
7.2.130.0000.09217.04
7.2.120.0130.07816.80
7.2.110.0070.08317.02
7.2.100.0000.12216.89
7.2.90.0130.09816.80
7.2.80.0030.09316.92
7.2.70.0100.08817.06
7.2.60.0070.08517.05
7.2.50.0070.09316.79
7.2.40.0030.08716.89
7.2.30.0030.09416.58
7.2.20.0030.10217.04
7.2.10.0030.10016.61
7.2.00.0100.08816.82
7.1.250.0070.10915.68
7.1.70.0000.07517.24
7.1.60.0100.08317.28
7.1.50.0070.13016.86
7.1.00.0030.17722.33
7.0.200.0030.08216.91
7.0.140.0070.16322.08
7.0.70.0770.11019.89
7.0.60.0730.14320.08
7.0.50.0830.15720.37
7.0.40.0170.14020.00
7.0.30.0100.12320.13
7.0.20.0030.11720.17
7.0.10.0000.18020.13
7.0.00.0000.19020.12
5.6.280.0100.19721.09
5.6.220.0230.18020.64
5.6.210.0100.19320.59
5.6.200.0200.20320.95
5.6.190.0030.15321.09
5.6.180.0100.18321.08
5.6.170.0130.17021.18
5.6.160.0170.18021.08
5.6.150.0070.19021.01
5.6.140.0030.16321.00
5.6.130.0070.13021.12
5.6.120.0100.20721.11
5.6.110.0100.13321.04
5.6.100.0070.17021.13
5.6.90.0000.16021.06
5.6.80.0070.16020.43
5.6.70.0100.20020.40
5.6.60.0030.16020.49
5.6.50.0100.20320.47
5.6.40.0100.15720.45
5.6.30.0070.18720.41
5.6.20.0070.18020.44
5.6.10.0100.18020.47
5.6.00.0230.17320.48
5.5.360.0030.18020.35
5.5.350.0200.18320.38
5.5.340.0100.16020.77
5.5.330.0070.13320.92
5.5.320.0030.19320.92
5.5.310.0070.15320.73
5.5.300.0100.16720.90
5.5.290.0100.16320.80
5.5.280.0030.16020.78
5.5.270.0100.19020.92
5.5.260.0170.12320.79
5.5.250.0070.18020.74
5.5.240.0100.19020.11
5.5.230.0200.17720.21
5.5.220.0170.18020.23
5.5.210.0030.20720.21
5.5.200.0100.18720.13
5.5.190.0000.19020.13
5.5.180.0030.17720.28
5.5.160.0000.13320.21
5.5.150.0070.13320.24
5.5.140.0100.18020.26
5.5.130.0070.20720.27
5.5.120.0000.19720.21
5.5.110.0100.18320.20
5.5.100.0070.18720.19
5.5.90.0030.19320.07
5.5.80.0070.16720.07
5.5.70.0100.14020.04
5.5.60.0070.17320.06
5.5.50.0130.16020.05
5.5.40.0030.13020.08
5.5.30.0100.17320.05
5.5.20.0070.17020.14
5.5.10.0030.21020.05
5.5.00.0030.17320.13
5.4.450.0100.16019.38
5.4.440.0070.18719.39
5.4.430.0070.18319.46
5.4.420.0000.14019.35
5.4.410.0070.20019.31
5.4.400.0070.18019.12
5.4.390.0030.17718.98
5.4.380.0030.16018.98
5.4.370.0130.13718.83
5.4.360.0070.18319.11
5.4.350.0070.19318.98
5.4.340.0000.13019.14
5.4.320.0100.15719.14
5.4.310.0100.17719.14
5.4.300.0070.18018.98
5.4.290.0070.18319.23
5.4.280.0130.16019.06
5.4.270.0070.18318.96
5.4.260.0100.20019.07
5.4.250.0130.16018.80
5.4.240.0070.17319.05
5.4.230.0030.20318.90
5.4.220.0030.12318.82
5.4.210.0030.12319.05
5.4.200.0100.16719.22
5.4.190.0130.18319.11
5.4.180.0070.19719.07
5.4.170.0000.21018.89
5.4.160.0100.19718.97
5.4.150.0070.19318.89
5.4.140.0130.19016.24
5.4.130.0070.20316.29
5.4.120.0000.16316.28
5.4.110.0100.17316.42
5.4.100.0170.15316.34
5.4.90.0070.19316.23
5.4.80.0070.18716.29
5.4.70.0100.17716.20
5.4.60.0100.17016.23
5.4.50.0130.11016.18
5.4.40.0070.12016.47
5.4.30.0070.11716.41
5.4.20.0100.18716.19
5.4.10.0100.19016.39
5.4.00.0030.19315.78
5.3.290.0030.22014.55
5.3.280.0070.19714.51
5.3.270.0130.20014.47
5.3.260.0030.22314.55
5.3.250.0000.16714.61
5.3.240.0070.23014.63
5.3.230.0070.18714.61
5.3.220.0070.20014.57
5.3.210.0070.20314.55
5.3.200.0300.20014.49
5.3.190.0000.21314.55
5.3.180.0030.14014.44
5.3.170.0030.15314.55
5.3.160.0030.21014.44
5.3.150.0030.13714.51
5.3.140.0030.16714.52
5.3.130.0030.11714.55
5.3.120.0030.14714.49
5.3.110.0030.19714.43
5.3.100.0000.12013.86
5.3.90.0070.21013.88
5.3.80.0000.14313.89
5.3.70.0070.13013.93
5.3.60.0070.13013.88
5.3.50.0030.17013.95
5.3.40.0000.14013.81
5.3.30.0030.18713.91
5.3.20.0000.12713.71
5.3.10.0000.11713.48
5.3.00.0000.13713.46
5.2.170.0000.13312.30
5.2.160.0000.11712.30
5.2.150.0030.11712.30
5.2.140.0030.11312.30
5.2.130.0000.13312.30
5.2.120.0030.13712.30
5.2.110.0100.14712.30
5.2.100.0000.13712.30
5.2.90.0000.11712.30
5.2.80.0000.13712.30
5.2.70.0030.20012.30
5.2.60.0000.18712.30
5.2.50.0030.17012.30
5.2.40.0030.14312.30
5.2.30.0070.14012.30
5.2.20.0030.29012.30
5.2.10.0130.35012.30
5.2.00.0070.35712.30
5.1.60.0030.36312.30
5.1.50.0030.34012.30
5.1.40.0100.29712.30
5.1.30.0100.34712.30
5.1.20.0000.36012.30
5.1.10.0100.05312.30
5.1.00.0100.05312.30
5.0.50.0000.03712.30
5.0.40.0030.04312.30
5.0.30.0070.06312.30
5.0.20.0030.04012.30
5.0.10.0030.03312.30
5.0.00.0030.05712.30
4.4.90.0000.02012.30
4.4.80.0030.03312.30
4.4.70.0000.04012.30
4.4.60.0070.03312.30
4.4.50.0000.02312.30
4.4.40.0070.05312.30
4.4.30.0000.02312.30
4.4.20.0070.03312.30
4.4.10.0000.03012.30
4.4.00.0000.05712.30
4.3.110.0100.03012.30
4.3.100.0030.03712.30
4.3.90.0030.03712.30
4.3.80.0000.05712.30
4.3.70.0030.03712.30
4.3.60.0030.03312.30
4.3.50.0030.02712.30
4.3.40.0030.04312.30
4.3.30.0030.03712.30
4.3.20.0030.03712.30
4.3.10.0000.02312.30
4.3.00.0070.03012.30

preferences:
35.84 ms | 400 KiB | 5 Q