3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = hash('sha256', uniqid(mt_rand(), true) . 'ooga booga' . strtolower('Admin')); $hash = $salt . $pswd; 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.2.00.0030.02019.44
7.1.70.0030.01417.26
7.1.60.0080.01216.95
7.1.50.0040.01916.95
7.1.40.0030.02416.84
7.1.30.0000.02216.60
7.1.20.0110.02816.80
7.1.10.0000.02016.68
7.1.00.0000.02816.66
7.0.200.0000.02016.81
7.0.190.0030.01716.61
7.0.180.0040.01616.30
7.0.170.0000.01816.18
7.0.160.0030.01916.26
7.0.150.0070.01116.30
7.0.140.0030.01616.43
7.0.130.0000.02016.53
7.0.120.0070.01316.77
7.0.110.0030.01616.44
7.0.100.0000.02116.43
7.0.90.0100.01516.52
7.0.80.0040.02416.26
7.0.70.0030.02316.33
7.0.60.0060.01216.18
7.0.50.0100.01016.48
7.0.40.0000.01616.07
7.0.30.0030.01616.07
7.0.20.0040.01816.07
7.0.10.0000.01916.07
7.0.00.0030.01316.07
5.6.300.0060.05220.80
5.6.290.0070.05120.92
5.6.280.0160.03920.78
5.6.270.0030.06220.86
5.6.260.0000.06420.87
5.6.250.0000.06321.05
5.6.240.0070.05420.92
5.6.230.0030.05620.89
5.6.220.0030.05920.84
5.6.210.0070.05420.81
5.6.200.0000.06520.81
5.6.190.0030.08020.81
5.6.180.0000.06120.77
5.6.170.0070.05920.89
5.6.160.0030.06420.95
5.6.150.0070.05321.02
5.6.140.0260.06421.02
5.6.130.0070.06220.82
5.6.120.0140.05920.88
5.6.110.0030.05420.95
5.6.100.0030.05320.81
5.6.90.0070.05620.75
5.6.80.0030.05220.14
5.6.70.0100.04720.36
5.6.60.0000.06220.20
5.6.50.0190.04120.37
5.6.40.0000.05720.35
5.6.30.0000.05220.13
5.6.20.0000.06320.33
5.6.10.0100.04820.17
5.6.00.0100.04720.15
5.5.380.0100.04517.54
5.5.370.0030.05817.54
5.5.360.0030.05617.44
5.5.350.0000.06117.46
5.5.340.0230.05618.05
5.5.330.0000.06217.98
5.5.320.0130.08217.98
5.5.310.0030.05617.84
5.5.300.0030.06617.97
5.5.290.0000.05617.84
5.5.280.0060.05218.11
5.5.270.0070.05518.05
5.5.260.0000.06617.93
5.5.250.0030.05317.86
5.5.240.0070.04717.46
5.5.230.0030.05917.34
5.5.220.0000.05717.09
5.5.210.0070.04417.32
5.5.200.0000.06017.06
5.5.190.0070.07217.09
5.5.180.0030.05717.42
5.5.160.0030.05017.36
5.5.150.0060.04817.19
5.5.140.0000.05617.32
5.5.130.0000.05317.38
5.5.120.0000.06117.29
5.5.110.0100.06717.46
5.5.100.0000.06017.27
5.5.90.0000.05516.99
5.5.80.0070.05216.95
5.5.70.0070.04317.08
5.5.60.0030.05017.30
5.5.50.0000.05117.27
5.5.40.0030.04817.31
5.5.30.0000.06017.27
5.5.20.0030.06116.94
5.5.10.0030.05117.25
5.5.00.0000.07417.26
5.4.450.0000.05219.16
5.4.440.0000.05519.31
5.4.430.0070.05419.30
5.4.420.0030.05519.45
5.4.410.0030.05119.26
5.4.400.0030.06418.98
5.4.390.0070.07018.83
5.4.380.0060.04519.02
5.4.370.0070.05318.83
5.4.360.0030.04718.84
5.4.350.0000.05018.97
5.4.340.0030.05218.86
5.4.320.0030.05318.83
5.4.310.0000.05219.07
5.4.300.0000.06618.91
5.4.290.0030.04519.00
5.4.280.0030.06219.13
5.4.270.0030.05919.14
5.4.260.0000.05418.86
5.4.250.0030.04819.04
5.4.240.0060.04519.09
5.4.230.0000.05918.86
5.4.220.0030.04718.91
5.4.210.0070.05419.12
5.4.200.0000.05418.99
5.4.190.0060.05219.08
5.4.180.0030.05618.97
5.4.170.0000.05918.86
5.4.160.0100.04618.84
5.4.150.0030.06519.13
5.4.140.0030.05616.61
5.4.130.0030.04716.64
5.4.120.0030.04916.56
5.4.110.0000.05416.59
5.4.100.0170.05316.54
5.4.90.0070.04416.51
5.4.80.0030.05016.60
5.4.70.0100.06116.30
5.4.60.0000.09416.39
5.4.50.0030.04616.33
5.4.40.0000.05216.57
5.4.30.0070.04416.33
5.4.20.0030.05116.61
5.4.10.0000.05016.39
5.4.00.0030.04416.07
5.3.290.0000.05916.07
5.3.280.0130.04216.07
5.3.270.0030.05016.07
5.3.260.0030.04916.07
5.3.250.0000.05316.07
5.3.240.0000.04916.07
5.3.230.0070.05616.07
5.3.220.0000.06116.07
5.3.210.0070.04116.07
5.3.200.0000.05216.07
5.3.190.0030.05116.07
5.3.180.0030.04616.07
5.3.170.0030.09216.07
5.3.160.0030.08616.07
5.3.150.0000.05716.07
5.3.140.0030.06316.07
5.3.130.0000.05816.07
5.3.120.0030.05316.07
5.3.110.0000.05816.07
5.3.100.0070.04616.07
5.3.90.0030.05416.07
5.3.80.0200.04416.07
5.3.70.0030.04516.07
5.3.60.0030.05916.07
5.3.50.0040.04916.07
5.3.40.0030.05016.07
5.3.30.0070.05416.07
5.3.20.0030.06616.07
5.3.10.0030.04516.07
5.3.00.0070.04416.07
5.2.170.0000.06716.07
5.2.160.0000.08416.07
5.2.150.0070.04016.07
5.2.140.0030.03916.07
5.2.130.0070.03716.07
5.2.120.0060.05116.07
5.2.110.0000.04016.07
5.2.100.0000.04416.07
5.2.90.0070.03616.07
5.2.80.0070.03416.07
5.2.70.0030.04116.07
5.2.60.0000.05016.07
5.2.50.0000.04316.07
5.2.40.0100.04416.07
5.2.30.0000.04916.07
5.2.20.0100.04516.07
5.2.10.0060.03916.07
5.2.00.0030.04516.07
5.1.60.0060.03216.07
5.1.50.0030.05116.07
5.1.40.0000.04116.07
5.1.30.0000.04016.07
5.1.20.0070.03416.07
5.1.10.0030.03616.07
5.1.00.0030.02616.07
5.0.50.0070.03416.07
5.0.40.0040.02316.07
5.0.30.0070.03216.07
5.0.20.0000.02216.07
5.0.10.0000.02216.07
5.0.00.0060.02816.07
4.4.90.0030.03516.07
4.4.80.0000.01716.07
4.4.70.0000.02016.07
4.4.60.0000.02116.07
4.4.50.0070.02816.07
4.4.40.0000.02716.07
4.4.30.0030.02016.07
4.4.20.0000.01716.07
4.4.10.0000.03816.07
4.4.00.0000.03116.07
4.3.110.0030.01916.07
4.3.100.0000.02316.07
4.3.90.0000.01816.07
4.3.80.0000.02716.07
4.3.70.0000.01816.07
4.3.60.0000.01616.07
4.3.50.0030.01916.07
4.3.40.0000.02616.07
4.3.30.0040.01516.07
4.3.20.0000.01716.07
4.3.10.0000.01816.07
4.3.00.0000.02616.07

preferences:
45.46 ms | 401 KiB | 5 Q