3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Bob Jenkins' One-At-A-Time hashing algorithm. function jenkins_hash($key) { $key = (string)$key; $len = strlen($key); for($hash = $i = 0; $i < $len; ++$i) { $hash += ord($key[$i]); $hash += ($hash << 10); $hash ^= ($hash >> 6); } $hash += ($hash << 3); $hash ^= ($hash >> 11); $hash += ($hash << 15); return str_pad(dechex($hash),16,0,STR_PAD_LEFT); } echo jenkins_hash("3v4l.org is an online shell that allows you to evaluate (hence 3v4l) your code on my server.");

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)
8.3.70.0040.01116.88
8.3.60.0060.01018.68
8.3.50.0100.01122.87
8.3.40.0110.00419.05
8.3.30.0040.01519.15
8.3.20.0040.00420.34
8.3.10.0060.00320.79
8.3.00.0040.00419.51
8.2.180.0130.00716.75
8.2.170.0090.00922.96
8.2.160.0090.00620.35
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00320.98
8.2.110.0030.00720.33
8.2.100.0090.00318.16
8.2.90.0030.00919.23
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0040.00418.16
8.2.50.0000.00918.07
8.2.40.0040.00418.28
8.2.30.0040.00419.41
8.2.20.0080.00017.69
8.2.10.0000.00818.10
8.2.00.0000.00817.87
8.1.280.0150.00625.92
8.1.270.0030.00522.32
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0080.00023.97
8.1.230.0030.00919.23
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0110.00417.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0090.00018.71
8.1.160.0000.00822.02
8.1.150.0040.00418.89
8.1.140.0000.00717.46
8.1.130.0000.00717.81
8.1.120.0040.00417.45
8.1.110.0040.00417.44
8.1.100.0070.00017.40
8.1.90.0050.00217.39
8.1.80.0000.00817.38
8.1.70.0000.00717.39
8.1.60.0080.00417.68
8.1.50.0040.00417.46
8.1.40.0050.00317.55
8.1.30.0050.00317.58
8.1.20.0030.00617.73
8.1.10.0000.00717.52
8.1.00.0000.00817.57
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0030.00318.37
8.0.270.0040.00417.20
8.0.260.0030.00317.36
8.0.250.0070.00017.00
8.0.240.0040.00416.91
8.0.230.0000.00717.05
8.0.220.0020.00516.96
8.0.210.0030.00516.82
8.0.200.0000.00617.00
8.0.190.0070.00016.92
8.0.180.0070.00017.02
8.0.170.0030.00616.93
8.0.160.0000.00816.75
8.0.150.0000.00716.86
8.0.140.0040.00316.84
8.0.130.0030.00313.28
8.0.120.0040.00416.86
8.0.110.0000.00716.90
8.0.100.0040.00416.73
8.0.90.0040.00416.87
8.0.80.0080.00716.95
8.0.70.0040.00417.01
8.0.60.0040.00416.96
8.0.50.0000.00817.02
8.0.30.0140.00517.34
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0110.00616.95
7.4.330.0050.00015.07
7.4.320.0030.00316.62
7.4.300.0000.00616.52
7.4.290.0000.00716.57
7.4.280.0080.00316.57
7.4.270.0080.00016.46
7.4.260.0030.00316.68
7.4.250.0070.00016.58
7.4.240.0060.00216.63
7.4.230.0050.00316.73
7.4.220.0090.00916.65
7.4.210.0110.00416.59
7.4.200.0070.00016.77
7.4.160.0060.01016.66
7.4.150.0150.00317.40
7.4.140.0110.01117.86
7.4.130.0140.00316.53
7.4.120.0100.00816.53
7.4.110.0140.01016.55
7.4.100.0100.00716.45
7.4.90.0100.00716.54
7.4.80.0090.00919.39
7.4.70.0120.01116.76
7.4.60.0150.00816.52
7.4.50.0080.00016.61
7.4.40.0070.01016.70
7.4.30.0030.01816.61
7.4.00.0120.00315.11
7.3.330.0020.00213.30
7.3.320.0000.00513.45
7.3.310.0070.00016.43
7.3.300.0030.00316.35
7.3.290.0030.01016.36
7.3.280.0110.00816.41
7.3.270.0140.00617.40
7.3.260.0130.00316.75
7.3.250.0120.00716.49
7.3.240.0130.00416.66
7.3.230.0090.00916.72
7.3.210.0120.00616.50
7.3.200.0140.00819.39
7.3.190.0060.00916.44
7.3.180.0100.00616.55
7.3.170.0090.01216.43
7.3.160.0130.00616.50
7.3.10.0040.01116.55
7.3.00.0060.00616.86
7.2.330.0070.01016.85
7.2.320.0140.00416.95
7.2.310.0080.01516.83
7.2.300.0140.00416.77
7.2.290.0100.00716.84
7.2.130.0000.00917.09
7.2.120.0050.00517.01
7.2.110.0060.01217.09
7.2.100.0070.00717.22
7.2.90.0110.00317.00
7.2.80.0030.00917.08
7.2.70.0120.00316.84
7.2.60.0110.00417.01
7.2.50.0140.00317.05
7.2.40.0100.01017.14
7.2.30.0160.00316.75
7.2.20.0120.00817.12
7.2.10.0040.01117.09
7.2.00.0040.01117.00
7.1.250.0060.00615.83
7.1.240.0090.00615.81
7.1.230.0070.00715.92
7.1.220.0040.00815.67
7.1.210.0160.00315.83
7.1.200.0050.00615.83
7.1.190.0110.00515.67
7.1.180.0100.00315.66
7.1.170.0100.00615.96
7.1.160.0070.00715.84
7.1.150.0000.01415.62
7.1.140.0030.00615.79
7.1.130.0130.00715.87
7.1.120.0000.01015.91
7.1.110.0140.00315.87
7.1.100.0030.01016.02
7.1.90.0000.01416.05
7.1.80.0090.00315.90
7.1.70.0030.00816.31
7.1.60.0080.00817.74
7.1.50.0050.01316.39
7.1.40.0060.01215.75
7.1.30.0070.00415.84
7.1.20.0040.00815.86
7.1.10.0110.00415.83
7.1.00.0020.04619.29
7.0.330.0080.00815.24
7.0.320.0090.00315.08
7.0.310.0120.00615.58
7.0.300.0140.00415.25
7.0.290.0030.01215.47
7.0.280.0060.00315.49
7.0.270.0070.00715.43
7.0.260.0080.00015.47
7.0.250.0020.00515.47
7.0.240.0000.00815.27
7.0.230.0030.00815.45
7.0.220.0100.00315.49
7.0.210.0090.00315.54
7.0.200.0060.00616.26
7.0.190.0050.00515.41
7.0.180.0100.00015.48
7.0.170.0040.01115.26
7.0.160.0030.00715.64
7.0.150.0040.00815.31
7.0.140.0080.03818.73
7.0.130.0070.00715.64
7.0.120.0040.00815.56
7.0.110.0030.00715.45
7.0.100.0040.01115.45
7.0.90.0030.01015.56
7.0.80.0030.01315.64
7.0.70.0030.01015.32
7.0.60.0070.04217.82
7.0.50.0130.02716.71
7.0.40.0020.05316.84
7.0.30.0140.03616.82
7.0.20.0160.02216.95
7.0.10.0080.04516.93
7.0.00.0150.03816.90
5.6.380.0100.00314.33
5.6.370.0070.01014.52
5.6.360.0000.01514.80
5.6.350.0110.00414.14
5.6.340.0000.01714.48
5.6.330.0090.00614.37
5.6.320.0050.01414.54
5.6.310.0080.00814.57
5.6.300.0110.00814.26
5.6.290.0030.01314.49
5.6.280.0060.04217.72
5.6.270.0080.00814.43
5.6.260.0090.00914.43
5.6.250.0000.01514.69
5.6.240.0120.00014.52
5.6.230.0090.00914.52
5.6.220.0000.01814.54
5.6.210.0130.04217.71
5.6.200.0040.03116.25
5.6.190.0100.04817.55
5.6.180.0190.02517.44
5.6.170.0250.02017.61
5.6.160.0020.02517.58
5.6.150.0050.03716.37
5.6.140.0080.04316.36
5.6.130.0050.04316.22
5.6.120.0080.02317.79
5.6.110.0060.04817.90
5.6.100.0050.04317.86
5.6.90.0100.03017.91
5.6.80.0070.03717.47
5.6.70.1750.02817.47
5.6.60.0130.00314.51
5.6.50.0060.00614.29
5.6.40.0030.01114.32
5.6.30.0120.00314.25
5.6.20.0090.00614.51
5.6.10.0090.00014.60
5.6.00.0000.01514.25
5.5.380.0030.01010.98
5.5.370.0060.00611.09
5.5.360.0030.00911.21
5.5.350.0190.03315.87
5.5.340.0080.04214.59
5.5.330.0050.03015.91
5.5.320.0260.02915.75
5.5.310.0180.03215.86
5.5.300.0070.04114.78
5.5.290.0130.02014.53
5.5.280.0080.02616.25
5.5.270.0050.03916.16
5.5.260.0080.04016.21
5.5.250.0050.02316.01
5.5.240.0190.04115.65
5.5.230.0060.00311.11
5.5.220.0030.00311.17
5.5.210.0030.01011.20
5.5.200.0000.01311.18
5.5.190.0000.01211.04
5.5.180.0090.00311.12
5.5.170.0090.00311.08
5.5.160.0030.01011.00
5.5.150.0070.00311.15
5.5.140.0060.00611.14
5.5.130.0000.01110.59
5.5.120.0030.00911.02
5.5.110.0100.00010.81
5.5.100.0090.00311.41
5.5.90.0060.00610.99
5.5.80.0030.00711.35
5.5.70.0060.00610.98
5.5.60.0030.00711.20
5.5.50.0060.00311.02
5.5.40.0030.00710.92
5.5.30.0040.00811.20
5.5.20.0000.00811.34
5.5.10.0000.01110.98
5.5.00.0040.00410.98
5.4.450.0340.02115.21
5.4.440.0260.02115.26
5.4.430.0480.02815.36
5.4.420.0070.03015.15
5.4.410.0440.03515.30
5.4.400.0320.03714.82
5.4.390.0330.03115.31
5.4.380.0120.03414.80
5.4.370.0210.03015.07
5.4.360.0120.03514.81
5.4.350.0120.03014.92
5.4.340.0100.03815.02
5.4.330.0040.00411.03
5.4.320.0050.02311.82
5.4.310.0070.01911.61
5.4.300.0070.02411.79
5.4.290.0050.02211.77
5.4.280.0050.01911.74
5.4.270.0060.01911.85
5.4.260.0050.02511.62
5.4.250.0050.02111.81
5.4.240.0050.02511.60
5.4.230.0050.02511.62
5.4.220.0050.02111.64
5.4.210.0020.02411.72
5.4.200.0040.02311.75
5.4.190.0060.02211.80
5.4.180.0060.02211.63
5.4.170.0080.02011.66
5.4.160.0090.02611.74
5.4.150.0040.02611.83
5.4.140.0070.02111.49
5.4.130.0020.02211.51
5.4.120.0040.01911.62
5.4.110.0080.02011.53
5.4.100.0060.02011.75
5.4.90.0060.02111.62
5.4.80.0020.02411.54
5.4.70.0050.01911.62
5.4.60.0060.02011.50
5.4.50.0060.02011.44
5.4.40.0070.02511.41
5.4.30.0020.02511.59
5.4.20.0060.02311.51
5.4.10.0040.02311.59
5.4.00.0020.02411.22
5.3.290.0030.02511.79
5.3.280.0060.02311.60
5.3.270.0090.02711.72
5.3.260.0090.02111.59
5.3.250.0060.02511.71
5.3.240.0090.02011.65
5.3.230.0070.02011.54
5.3.220.0050.02311.59
5.3.210.0090.01811.60
5.3.200.0090.01911.47
5.3.190.0070.02011.46
5.3.180.0050.02311.64
5.3.170.0070.02211.49
5.3.160.0070.02011.65
5.3.150.0080.01911.64
5.3.140.0040.02311.65
5.3.130.0090.02011.65
5.3.120.0090.02211.63
5.3.110.0040.02311.63
5.3.100.0050.02211.38
5.3.90.0070.02011.46
5.3.80.0070.02111.26
5.3.70.0060.02011.31
5.3.60.0070.01511.33
5.3.50.0040.02611.29
5.3.40.0060.02211.19
5.3.30.0070.02211.15
5.3.20.0020.02311.15
5.3.10.0040.02111.04
5.3.00.0070.01911.01
5.2.170.0030.0229.73
5.2.160.0060.0139.73
5.2.150.0040.0199.73
5.2.140.0030.0199.73
5.2.130.0030.0179.71
5.2.120.0060.0209.71
5.2.110.0040.0169.71
5.2.100.0020.0169.71
5.2.90.0060.0149.71
5.2.80.0030.0209.71
5.2.70.0030.0199.71
5.2.60.0050.0179.69
5.2.50.0040.0189.67
5.2.40.0030.0189.66
5.2.30.0050.0159.65
5.2.20.0060.0159.64
5.2.10.0030.0179.60
5.2.00.0060.0149.53
5.1.60.0070.0119.17
5.1.50.0040.0149.17
5.1.40.0040.0159.16
5.1.30.0040.0169.33
5.1.20.0020.0169.34
5.1.10.0050.0149.21
5.1.00.0030.0159.21
5.0.50.0030.0138.44
5.0.40.0030.0128.38
5.0.30.0040.0188.28
5.0.20.0040.0128.26
5.0.10.0020.0178.26
5.0.00.0040.0188.25
4.4.90.0010.0117.52
4.4.80.0030.0117.50
4.4.70.0010.0107.51
4.4.60.0040.0087.50
4.4.50.0030.0117.51
4.4.40.0040.0127.48
4.4.30.0050.0077.51
4.4.20.0030.0097.55
4.4.10.0040.0077.55
4.4.00.0020.0157.51
4.3.110.0050.0097.46
4.3.100.0010.0117.46
4.3.90.0020.0097.44
4.3.80.0030.0147.42
4.3.70.0010.0107.44
4.3.60.0030.0097.44
4.3.50.0030.0097.44
4.3.40.0020.0157.39
4.3.30.0010.0126.78
4.3.20.0010.0096.76
4.3.10.0010.0126.75
4.3.00.0020.01014.21

preferences:
60.32 ms | 401 KiB | 5 Q