3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = mt_rand(); $hashed = sha1($number); echo($hashed); ?>

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.0070.00719.26
7.1.70.0070.00017.13
7.1.60.0100.01319.46
7.1.50.0130.01016.86
7.1.00.0000.07722.54
7.0.200.1460.00714.48
7.0.140.0000.07722.21
7.0.60.0130.05319.90
7.0.50.0030.08317.80
7.0.40.0130.08020.40
7.0.30.0170.07020.09
7.0.20.0300.08020.04
7.0.10.0030.09320.18
7.0.00.0170.07320.10
5.6.280.0100.06321.06
5.6.210.0070.07320.54
5.6.200.0130.03018.09
5.6.190.0170.07320.41
5.6.180.3670.03720.33
5.6.170.0230.08020.41
5.6.160.0130.07320.39
5.6.150.0070.08018.16
5.6.140.0000.05018.11
5.6.130.0130.07718.16
5.6.120.0030.04021.01
5.6.110.0100.04321.13
5.6.100.0100.08721.03
5.6.90.0170.07320.99
5.6.80.0100.07320.39
5.6.70.4530.04020.38
5.5.350.0100.04020.43
5.5.340.0070.04017.98
5.5.330.0130.03320.43
5.5.320.0300.07020.18
5.5.310.0370.05020.34
5.5.300.0070.04018.00
5.5.290.0030.08318.02
5.5.280.0130.08020.89
5.5.270.0030.04020.75
5.5.260.0130.08720.64
5.5.250.0200.07020.61
5.5.240.0300.06720.16
5.4.450.0600.07019.62
5.4.440.0770.05019.57
5.4.430.0530.05719.47
5.4.420.0700.05019.44
5.4.410.0600.06719.44
5.4.400.0030.05719.11
5.4.390.0530.05319.15
5.4.380.0330.04718.75
5.4.370.0270.05718.79
5.4.360.0370.05318.50
5.4.350.0430.06018.70
5.4.340.0470.05318.78
5.4.320.0100.04512.45
5.4.310.0100.03812.45
5.4.300.0070.03912.46
5.4.290.0050.03912.43
5.4.280.0050.03612.33
5.4.270.0060.03612.33
5.4.260.0060.03912.33
5.4.250.0040.03812.33
5.4.240.0070.03512.33
5.4.230.0060.04612.32
5.4.220.0100.04312.32
5.4.210.0090.03712.32
5.4.200.0060.04212.32
5.4.190.0080.03512.32
5.4.180.0070.04412.32
5.4.170.0080.03512.33
5.4.160.0090.03412.33
5.4.150.0080.03512.32
5.4.140.0050.03912.00
5.4.130.0080.03412.00
5.4.120.0090.03711.95
5.4.110.0090.05011.95
5.4.100.0060.03911.95
5.4.90.0040.03911.95
5.4.80.0030.04011.95
5.4.70.0060.03611.95
5.4.60.0090.03211.95
5.4.50.0040.03811.95
5.4.40.0050.03511.93
5.4.30.0050.03611.93
5.4.20.0020.04011.93
5.4.10.0100.03411.93
5.4.00.0020.04211.42
5.3.290.0070.04512.80
5.3.280.0080.03912.71
5.3.270.0090.05212.72
5.3.260.0080.05412.71
5.3.250.0050.05512.72
5.3.240.0090.05112.72
5.3.230.0060.06012.71
5.3.220.0070.06512.68
5.3.210.0070.04012.68
5.3.200.0050.03712.68
5.3.190.0070.03612.68
5.3.180.0040.03712.68
5.3.170.0050.03612.67
5.3.160.0030.04012.67
5.3.150.0050.03812.67
5.3.140.0060.03612.66
5.3.130.0080.03712.66
5.3.120.0030.04112.66
5.3.110.0060.03812.65
5.3.100.0090.03412.12
5.3.90.0040.04712.08
5.3.80.0030.04712.08
5.3.70.0070.03912.07
5.3.60.0070.03612.06
5.3.50.0070.03412.00
5.3.40.0060.03612.00
5.3.30.0060.04311.94
5.3.20.0070.03411.72
5.3.10.0050.04811.69
5.3.00.0070.05011.68
5.2.170.0040.0389.18
5.2.160.0040.0329.18
5.2.150.0070.0309.18
5.2.140.0050.0319.18
5.2.130.0040.0339.14
5.2.120.0050.0299.14
5.2.110.0040.0299.14
5.2.100.0040.0299.13
5.2.90.0050.0289.14
5.2.80.0080.0299.14
5.2.70.0030.0429.13
5.2.60.0040.0359.09
5.2.50.0040.0319.05
5.2.40.0050.0309.03
5.2.30.0010.0349.01
5.2.20.0060.0309.02
5.2.10.0060.0308.93
5.2.00.0040.0298.79
5.1.60.0040.0248.07
5.1.50.0060.0238.07
5.1.40.0040.0268.05
5.1.30.0060.0248.41
5.1.20.0050.0328.42
5.1.10.0050.0328.15
5.1.00.0050.0268.15
5.0.50.0030.0206.63
5.0.40.0030.0196.48
5.0.30.0040.0306.30
5.0.20.0040.0206.27
5.0.10.0040.0226.24
5.0.00.0010.0336.23
4.4.90.0020.0154.78
4.4.80.0040.0144.75
4.4.70.0050.0134.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0254.70
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0060.0154.67
4.3.100.0040.0184.67
4.3.90.0020.0194.63
4.3.80.0030.0234.58
4.3.70.0040.0214.63
4.3.60.0040.0214.62
4.3.50.0000.0264.63
4.3.40.0050.0324.54
4.3.30.0010.0213.29
4.3.20.0020.0163.27
4.3.10.0020.0163.22
4.3.00.0170.01310.55

preferences:
33.51 ms | 401 KiB | 5 Q