3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = mt_rand(); $hashed = sha1($number); echo($number); "/n"; 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.3.120.0040.01114.70
7.3.110.0060.00314.77
7.3.100.0030.00614.74
7.3.90.0000.01414.66
7.3.80.0070.01114.79
7.3.70.0030.01014.75
7.3.60.0030.01014.41
7.3.50.0100.00714.70
7.3.40.0100.00714.61
7.3.30.0060.00914.63
7.3.20.0060.00916.53
7.3.10.0100.00016.64
7.3.00.0060.00616.60
7.2.240.0070.01015.04
7.2.230.0050.00814.91
7.2.220.0090.00615.09
7.2.210.0000.01715.07
7.2.200.0030.01414.87
7.2.190.0060.00915.05
7.2.180.0040.01115.18
7.2.170.0030.01315.11
7.2.160.0100.00714.82
7.2.150.0030.01316.49
7.2.140.0090.00616.87
7.2.130.0070.01016.83
7.2.120.0060.01016.65
7.2.110.0040.01416.84
7.2.100.0130.00316.91
7.2.90.0070.01017.04
7.2.80.0040.01216.87
7.2.70.0150.00416.89
7.2.60.0040.01116.73
7.2.50.0070.01116.93
7.2.40.0030.01216.68
7.2.30.0070.01016.70
7.2.20.0100.00616.85
7.2.10.0030.01216.60
7.2.00.0040.01117.86
7.1.330.0030.01315.73
7.1.320.0130.00015.82
7.1.310.0090.00015.88
7.1.300.0080.00615.97
7.1.290.0030.01015.74
7.1.280.0060.00615.93
7.1.270.0100.00315.69
7.1.260.0120.00315.56
7.1.250.0040.00715.88
7.1.70.0000.00717.27
7.1.60.0120.01219.46
7.1.50.0030.01916.58
7.1.00.0100.07022.42
7.0.200.0180.00914.67
7.0.140.0030.07322.15
7.0.60.0070.09019.85
7.0.50.0030.06017.90
7.0.40.0100.06320.20
7.0.30.0330.07720.19
7.0.20.0330.07320.12
7.0.10.0000.08720.20
7.0.00.0070.08020.20
5.6.280.0030.07321.09
5.6.210.0130.08020.72
5.6.200.0000.06018.21
5.6.190.0000.04720.63
5.6.180.0230.04320.67
5.6.170.0230.03320.49
5.6.160.0100.06720.50
5.6.150.0130.07318.10
5.6.140.0070.08018.12
5.6.130.0070.08318.21
5.6.120.0030.05720.88
5.6.110.0100.08721.12
5.6.100.0000.08021.02
5.6.90.0170.08020.96
5.6.80.0030.04720.41
5.5.350.0070.08020.39
5.5.340.0070.07318.02
5.5.330.0030.05020.37
5.5.320.3930.04020.34
5.5.310.0170.05720.12
5.5.300.0070.08017.92
5.5.290.0100.07317.91
5.5.280.0000.04720.96
5.5.270.0030.04320.94
5.5.260.0130.05720.95
5.5.250.0070.08320.65
5.5.240.0130.06320.15
5.4.450.0070.04719.57
5.4.440.0130.07019.48
5.4.430.1200.05319.12
5.4.420.1730.03719.56
5.4.410.2470.03719.35
5.4.400.2230.03319.10
5.4.390.2070.04319.14
5.4.380.2070.04318.91
5.4.370.2000.04719.13
5.4.360.2100.04019.09
5.4.350.0030.06318.77
5.4.340.0030.05718.80
5.4.320.0930.06318.77
5.4.310.1770.04318.80
5.4.300.1670.04019.08
5.4.290.1830.04018.93
5.4.280.1900.03319.26
5.4.270.1930.04318.93
5.4.260.1970.04319.07
5.4.250.0030.04319.21
5.4.240.0000.04719.12
5.4.230.0930.03719.07
5.4.220.1000.03719.09
5.4.210.0000.04319.17
5.4.200.0030.03719.21
5.4.190.1400.03719.23
5.4.180.1630.05718.88
5.4.170.1800.03019.07
5.4.160.1800.03018.78
5.4.150.1830.03318.78
5.4.140.1530.04016.33
5.4.130.1870.03016.25
5.4.120.1800.03716.45
5.4.110.1700.03716.43
5.4.100.1330.03716.47
5.4.90.0030.03716.42
5.4.80.0000.03716.32
5.4.70.0670.04316.50
5.4.60.1430.03716.28
5.4.50.1400.04316.33
5.4.40.1430.02716.18
5.4.30.1800.03016.18
5.4.20.1830.03016.18
5.4.10.1930.04316.03
5.4.00.1970.04315.76
5.3.290.1700.04314.51
5.3.280.1670.04314.52
5.3.270.1670.04014.45
5.3.260.1900.04314.69
5.3.250.1630.04014.57
5.3.240.1630.04014.45
5.3.230.1700.03314.43
5.3.220.1700.03714.50
5.3.210.1930.04314.66
5.3.200.1930.03714.46
5.3.190.1830.03714.42
5.3.180.1770.04314.51
5.3.170.1930.03714.50
5.3.160.1870.04714.55
5.3.150.1930.04714.39
5.3.140.1730.03314.57
5.3.130.1930.03714.49
5.3.120.2000.04314.42
5.3.110.2000.04714.38
5.3.100.1870.04313.88
5.3.90.2170.04313.93
5.3.80.2100.04313.97
5.3.70.2300.03713.97
5.3.60.2270.04713.87
5.3.50.2430.03013.89
5.3.40.1870.04313.89
5.3.30.1770.04313.84
5.3.20.1970.03313.67
5.3.10.1970.04013.49
5.3.00.1630.04313.59
5.2.170.1300.03311.15
5.2.160.1630.03310.98
5.2.150.1930.02711.00
5.2.140.1500.04010.97
5.2.130.1770.03010.98
5.2.120.1700.03711.18
5.2.110.1530.03011.00
5.2.100.1630.03711.27
5.2.90.1800.03311.14
5.2.80.2000.03711.25
5.2.70.1770.03710.96
5.2.60.1970.03010.98
5.2.50.2030.02710.91
5.2.40.1570.03011.00
5.2.30.1400.04010.84
5.2.20.1500.02310.97
5.2.10.1500.03310.78
5.2.00.1530.03710.71
5.1.60.1600.0279.99
5.1.50.1600.0309.93
5.1.40.1600.0339.84
5.1.30.1470.02310.25
5.1.20.1430.02710.27
5.1.10.1630.0339.95
5.1.00.1600.02710.14
5.0.50.0900.0278.46
5.0.40.0630.0178.30
5.0.30.0800.0438.14
5.0.20.0700.0178.27
5.0.10.0900.0278.14
5.0.00.0900.0308.13
4.4.90.0830.0238.13
4.4.80.0670.0208.13
4.4.70.0730.0238.13
4.4.60.0770.0278.13
4.4.50.0630.0208.13
4.4.40.0630.0238.13
4.4.30.0700.0178.13
4.4.20.0600.0178.13
4.4.10.0800.0238.13
4.4.00.0630.0238.13
4.3.110.0700.0138.13
4.3.100.0830.0238.13
4.3.90.0730.0208.13
4.3.80.0670.0308.13
4.3.70.0630.0138.13
4.3.60.0770.0238.13
4.3.50.0730.0208.13
4.3.40.0630.0208.13
4.3.30.0570.0278.13
4.3.20.0430.0308.13
4.3.10.0330.0138.13
4.3.00.0270.0177.50

preferences:
31.55 ms | 400 KiB | 5 Q