3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = hash('sha256', uniqid(mt_rand(), true) . 'ooga booga' . strtolower('Admin')); $hash = $salt . 'abcd'; for($i = 0; $i < 10000; $i++) { $hash = hash('sha256', $hash); } echo $hash;

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.0060.02714.90
7.4.00.0030.03114.88
7.3.130.0050.02814.99
7.3.120.0100.02715.02
7.3.110.0090.02214.98
7.3.100.0050.02115.11
7.3.90.0090.01514.97
7.3.80.0070.02414.88
7.3.70.0040.02015.00
7.3.60.0090.01615.02
7.3.50.0100.02015.00
7.3.40.0030.02114.95
7.3.30.0060.01914.94
7.3.20.0040.02216.61
7.3.10.0040.02316.53
7.3.00.0050.01916.68
7.2.260.0050.02715.14
7.2.250.0090.02815.09
7.2.240.0060.01915.29
7.2.230.0030.02315.15
7.2.220.0060.01915.06
7.2.210.0050.01915.17
7.2.200.0130.01415.08
7.2.190.0020.02415.16
7.2.180.0090.02215.11
7.2.170.0080.01915.15
7.2.160.0010.02615.04
7.2.150.0060.01817.02
7.2.140.0030.02216.89
7.2.130.0050.02016.93
7.2.120.0070.02016.93
7.2.110.0070.01916.92
7.2.100.0070.01616.86
7.2.90.0070.01817.05
7.2.80.0050.02016.95
7.2.70.0110.01516.99
7.2.60.0040.02117.04
7.2.50.0060.02217.00
7.2.40.0080.01817.04
7.2.30.0070.01917.03
7.2.20.0050.01716.84
7.2.10.0030.02116.87
7.2.00.0040.02317.49
7.1.330.0070.01915.80
7.1.320.0040.02115.69
7.1.310.0040.02115.84
7.1.300.0100.01715.81
7.1.290.0060.02215.84
7.1.280.0070.02015.76
7.1.270.0030.02015.73
7.1.260.0050.01815.76
7.1.250.0070.01915.89
7.1.240.0070.01815.73
7.1.230.0070.01715.53
7.1.220.0070.01715.79
7.1.210.0080.01915.82
7.1.200.0070.02015.64
7.1.190.0030.02415.82
7.1.180.0060.02115.89
7.1.170.0030.02015.83
7.1.160.0060.02015.71
7.1.150.0060.01915.78
7.1.140.0080.01715.72
7.1.130.0070.01915.86
7.1.120.0070.01915.90
7.1.110.0070.01815.91
7.1.100.0050.02015.65
7.1.90.0030.02115.86
7.1.80.0030.02215.74
7.1.70.0050.01816.01
7.1.60.0040.02116.22
7.1.50.0060.02016.17
7.1.40.0040.02016.00
7.1.30.0040.01815.90
7.1.20.0030.02115.97
7.1.10.0040.02115.91
7.1.00.0050.01715.98
7.0.330.0070.01815.54
7.0.320.0030.01915.38
7.0.310.0050.02015.34
7.0.300.0110.01515.42
7.0.290.0040.02315.31
7.0.280.0070.01915.41
7.0.270.0040.02215.38
7.0.260.0060.01715.57
7.0.250.0030.02115.32
7.0.240.0020.02415.49
7.0.230.0010.02315.36
7.0.220.0060.02215.53
7.0.210.0060.01715.51
7.0.200.0050.01715.81
7.0.190.0060.01915.77
7.0.180.0040.02015.62
7.0.170.0050.01615.68
7.0.160.0030.02015.58
7.0.150.0040.01815.55
7.0.140.0030.02215.81
7.0.130.0040.01715.61
7.0.120.0050.02615.76
7.0.110.0030.02115.78
7.0.100.0040.01715.67
7.0.90.0050.01815.72
7.0.80.0050.01715.71
7.0.70.0080.01715.63
7.0.60.0020.02115.74
7.0.50.0040.02115.78
7.0.40.0050.01814.31
7.0.30.0060.01714.28
7.0.20.0040.02314.21
7.0.10.0040.02214.26
7.0.00.0030.02014.16
5.6.400.0060.02014.51
5.6.390.0060.02014.61
5.6.380.0020.02614.72
5.6.370.0040.02414.63
5.6.360.0080.01914.56
5.6.350.0040.01914.45
5.6.340.0050.02114.56
5.6.330.0030.02314.54
5.6.320.0050.02114.60
5.6.310.0060.02014.46
5.6.300.0030.03116.15
5.6.290.0060.03016.11
5.6.280.0060.02916.14
5.6.270.0030.03316.12
5.6.260.0050.02916.11
5.6.250.0060.02816.16
5.6.240.0040.03116.19
5.6.230.0060.03016.27
5.6.220.0040.03016.22
5.6.210.0050.02916.14
5.6.200.0040.03116.22
5.6.190.0020.03416.17
5.6.180.0040.04016.22
5.6.170.0050.03016.22
5.6.160.0040.03716.25
5.6.150.0040.03116.17
5.6.140.0050.02916.24
5.6.130.0070.02716.21
5.6.120.0060.02716.21
5.6.110.0070.03316.19
5.6.100.0030.03216.23
5.6.90.0050.04116.19
5.6.80.0110.02716.00
5.6.70.0030.03015.87
5.6.60.0100.02616.01
5.6.50.0050.03016.04
5.6.40.0110.03015.91
5.6.30.0020.03116.00
5.6.20.0040.03316.10
5.6.10.0040.02916.13
5.6.00.0030.02816.01
5.5.380.0040.03315.29
5.5.370.0050.03015.24
5.5.360.0040.02915.36
5.5.350.0060.03215.25
5.5.340.0060.03115.38
5.5.330.0080.03015.45
5.5.320.0070.02515.32
5.5.310.0050.03215.26
5.5.300.0060.03515.54
5.5.290.0050.03115.45
5.5.280.0020.03315.52
5.5.270.0060.03215.37
5.5.260.0050.04215.43
5.5.250.0060.04215.33
5.5.240.0050.02715.28
5.5.230.0070.02615.27
5.5.220.0060.02515.24
5.5.210.0070.02815.28
5.5.200.0050.02615.13
5.5.190.0080.02715.25
5.5.180.0050.02815.18
5.5.170.0040.02414.56
5.5.160.0050.02815.28
5.5.150.0070.03215.25
5.5.140.0050.03115.32
5.5.130.0060.03015.20
5.5.120.0060.03215.15
5.5.110.0040.03215.28
5.5.100.0060.02915.16
5.5.90.0030.03015.14
5.5.80.0050.02815.24
5.5.70.0030.03215.17
5.5.60.0070.02715.26
5.5.50.0030.02815.10
5.5.40.0040.03015.11
5.5.30.0050.02715.23
5.5.20.0050.02815.23
5.5.10.0060.02815.16
5.5.00.0040.02915.24
5.4.450.0040.02814.96
5.4.440.0050.02514.91
5.4.430.0060.02614.96
5.4.420.0070.03114.92
5.4.410.0050.03214.87
5.4.400.0060.02614.81
5.4.390.0030.02814.88
5.4.380.0030.03214.82
5.4.370.0020.03114.86
5.4.360.0030.03314.84
5.4.350.0030.03114.87
5.4.340.0020.03114.87
5.4.330.0070.01513.45
5.4.320.0100.02814.85
5.4.310.0030.02814.85
5.4.300.0060.03014.86
5.4.290.0070.02814.84
5.4.280.0040.03514.86
5.4.270.0040.03114.85
5.4.260.0080.02714.85
5.4.250.0040.03114.87
5.4.240.0020.03114.85
5.4.230.0030.02914.79
5.4.220.0040.03214.82
5.4.210.0040.02614.85
5.4.200.0020.02814.87
5.4.190.0020.02914.85
5.4.180.0030.02814.83
5.4.170.0030.03014.85
5.4.160.0040.02914.85
5.4.150.0010.03314.88
5.4.140.0070.02614.24
5.4.130.0010.02914.20
5.4.120.0030.02614.18
5.4.110.0030.02714.18
5.4.100.0020.02914.24
5.4.90.0040.02914.24
5.4.80.0060.02814.17
5.4.70.0030.02714.21
5.4.60.0030.03114.18
5.4.50.0030.03014.24
5.4.40.0030.03014.25
5.4.30.0000.03014.22
5.4.20.0050.02514.17
5.4.10.0080.02714.24
5.4.00.0040.02714.03
5.3.290.0030.02913.79
5.3.280.0060.03313.79
5.3.270.0030.03213.79
5.3.260.0050.03813.79
5.3.250.0040.03113.79
5.3.240.0030.02813.79
5.3.230.0060.02713.79
5.3.220.0020.03213.79
5.3.210.0030.02913.79
5.3.200.0040.03013.79
5.3.190.0030.03313.79
5.3.180.0050.03413.79
5.3.170.0020.03513.79
5.3.160.0000.03313.79
5.3.150.0020.03113.79
5.3.140.0050.02713.79
5.3.130.0020.02713.79
5.3.120.0030.02913.79
5.3.110.0060.02813.79
5.3.100.0030.03113.79
5.3.90.0040.03113.79
5.3.80.0040.03013.79
5.3.70.0030.03113.79
5.3.60.0040.03413.79
5.3.50.0070.02813.79
5.3.40.0030.03013.79
5.3.30.0030.03013.79
5.3.20.0040.02913.79
5.3.10.0010.03513.79
5.3.00.0030.03113.79
5.2.170.0000.04414.79
5.2.160.0000.04514.79
5.2.150.0030.04014.79
5.2.140.0030.05714.79
5.2.130.0030.05714.79
5.2.120.0070.04614.79
5.2.110.0000.04214.79
5.2.100.0000.04014.79
5.2.90.0000.03914.79
5.2.80.0000.06314.79
5.2.70.0030.03914.79
5.2.60.0030.03714.79
5.2.50.0000.04014.79
5.2.40.0030.03714.79
5.2.30.0000.04114.79
5.2.20.0030.04814.79
5.2.10.0040.03514.79
5.2.00.0070.03714.79
5.1.60.0070.03014.79
5.1.50.0070.04514.79
5.1.40.0140.03514.79
5.1.30.0000.05814.79
5.1.20.0000.04614.79
5.1.10.0000.02714.79
5.1.00.0000.02714.79
5.0.50.0000.02814.79
5.0.40.0070.02014.79
5.0.30.0140.02414.79
5.0.20.0000.02314.79
5.0.10.0000.02214.79
5.0.00.0030.02814.79
4.4.90.0000.01614.79
4.4.80.0000.01614.79
4.4.70.0000.01714.79
4.4.60.0000.01614.79
4.4.50.0080.00814.79
4.4.40.0030.03314.79
4.4.30.0000.01614.79
4.4.20.0000.01714.79
4.4.10.0000.01914.79
4.4.00.0030.02214.79
4.3.110.0030.01314.79
4.3.100.0030.01314.79
4.3.90.0040.01414.79
4.3.80.0100.02614.79
4.3.70.0000.02014.79
4.3.60.0030.01414.79
4.3.50.0040.01414.79
4.3.40.0160.02314.79
4.3.30.0000.01614.79
4.3.20.0030.01514.79
4.3.10.0030.01314.79
4.3.00.0000.01814.79

preferences:
50.59 ms | 401 KiB | 5 Q