3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = writeBookmark(17); //debug readBookmark($tmp); //debug // Bookmark Encode Function (one site) function writeBookmark($site) { $site = intval($site); $ts = timeStamp(); // calulates the size of the site id (posible options: 1,2,3,4) $site_id_size = strlen($site); // concatonate site id size, timestamp and site id $decoded_num = $site_id_size . $ts . $site; // Encode timestamp (Base 36) $encoded_num = fromDecimalToBase($decoded_num,36); return $encoded_num; //debug }

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.40.0130.00319.02
8.3.30.0110.00418.92
8.3.20.0040.00420.34
8.3.10.0090.00623.68
8.3.00.0040.00417.63
8.2.170.0120.00622.96
8.2.160.0100.00320.43
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0020.00526.16
8.2.120.0040.00421.16
8.2.110.0080.00022.15
8.2.100.0080.00318.22
8.2.90.0080.00019.08
8.2.80.0000.00817.97
8.2.70.0060.00317.00
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0000.00918.22
8.2.30.0040.00418.06
8.2.20.0070.00017.57
8.2.10.0050.00318.09
8.2.00.0050.00217.72
8.1.270.0030.00623.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.04
8.1.230.0090.00319.09
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00518.47
8.1.160.0040.00421.96
8.1.150.0000.00718.83
8.1.140.0050.00517.45
8.1.130.0000.00717.75
8.1.120.0070.00017.30
8.1.110.0030.00517.44
8.1.100.0040.00417.36
8.1.90.0040.00417.34
8.1.80.0040.00417.35
8.1.70.0000.00717.42
8.1.60.0030.00517.48
8.1.50.0000.00817.56
8.1.40.0040.00417.56
8.1.30.0040.00417.54
8.1.20.0050.00217.67
8.1.10.0000.00817.59
8.1.00.0080.00017.55
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0030.00617.21
8.0.260.0040.00417.12
8.0.250.0000.00716.97
8.0.240.0090.00016.94
8.0.230.0080.00016.84
8.0.220.0030.00316.78
8.0.210.0030.00316.80
8.0.200.0030.00316.95
8.0.190.0030.00416.98
8.0.180.0000.00716.82
8.0.170.0030.00616.83
8.0.160.0030.00316.96
8.0.150.0040.00416.73
8.0.140.0000.00716.84
8.0.130.0000.00613.32
8.0.120.0040.00416.77
8.0.110.0000.00816.82
8.0.100.0000.00716.86
8.0.90.0040.00416.96
8.0.80.0000.01616.91
8.0.70.0050.00216.95
8.0.60.0050.00316.95
8.0.50.0000.00816.93
8.0.30.0130.00817.21
8.0.20.0110.00817.40
8.0.10.0040.00416.98
8.0.00.0150.00316.85
7.4.330.0030.00215.00
7.4.320.0030.00316.53
7.4.300.0000.00716.50
7.4.290.0000.00716.41
7.4.280.0040.00416.60
7.4.270.0040.00416.42
7.4.260.0050.00516.36
7.4.250.0000.00716.55
7.4.240.0030.00416.65
7.4.230.0000.00816.57
7.4.220.0140.00416.45
7.4.210.0130.00716.59
7.4.200.0000.00716.52
7.4.160.0110.00316.51
7.4.150.0130.00417.40
7.4.140.0070.01217.86
7.4.130.0070.01116.47
7.4.120.0030.01416.42
7.4.110.0160.00616.59
7.4.100.0110.01116.59
7.4.90.0090.00916.34
7.4.80.0080.00819.39
7.4.70.0100.01416.50
7.4.60.0130.00316.43
7.4.50.0000.00416.30
7.4.40.0140.00316.38
7.4.30.0100.00716.51
7.4.10.0120.00614.95
7.4.00.0090.00714.82
7.3.330.0060.00313.21
7.3.320.0000.00513.36
7.3.310.0000.00716.27
7.3.300.0070.00016.26
7.3.290.0040.01516.39
7.3.280.0090.00916.37
7.3.270.0110.00617.40
7.3.260.0120.00616.50
7.3.240.0140.00316.55
7.3.230.0070.01016.58
7.3.210.0120.00916.41
7.3.200.0110.00619.39
7.3.190.0100.00716.29
7.3.180.0040.01116.49
7.3.170.0070.01016.46
7.3.160.0030.01216.22
7.3.130.0100.00615.05
7.3.120.0060.00915.13
7.3.110.0100.00714.97
7.3.100.0030.01214.73
7.3.90.0060.00615.01
7.3.80.0040.00715.11
7.3.70.0000.01314.74
7.3.60.0060.00814.91
7.3.50.0000.01314.79
7.3.40.0070.00714.65
7.3.30.0040.01514.65
7.3.20.0100.00016.70
7.3.10.0060.00816.56
7.3.00.0070.00716.51
7.2.330.0120.00616.54
7.2.320.0120.00616.59
7.2.310.0100.00716.28
7.2.300.0140.00916.29
7.2.290.0110.01116.58
7.2.260.0030.01615.04
7.2.250.0060.01215.10
7.2.240.0080.00814.57
7.2.230.0130.00315.05
7.2.220.0000.01814.90
7.2.210.0090.00614.70
7.2.200.0030.01014.96
7.2.190.0070.00715.01
7.2.180.0070.00715.09
7.2.170.0000.01014.93
7.2.160.0060.00614.83
7.2.150.0100.00316.99
7.2.140.0090.00616.82
7.2.130.0040.00816.77
7.2.120.0080.00316.90
7.2.110.0050.00616.83
7.2.100.0070.00916.93
7.2.90.0060.00616.89
7.2.80.0090.00416.86
7.2.70.0060.00916.80
7.2.60.0050.00916.93
7.2.50.0030.01116.75
7.2.40.0050.00916.80
7.2.30.0000.01416.81
7.2.20.0070.00516.94
7.2.10.0080.00616.93
7.2.00.0020.01217.43
7.1.330.0000.01715.61
7.1.320.0130.00315.88
7.1.310.0100.00615.93
7.1.300.0030.01015.65
7.1.290.0060.00615.67
7.1.280.0070.01115.45
7.1.270.0040.01415.63
7.1.260.0090.00615.76
7.1.250.0050.01015.63
7.1.240.0080.00015.82
7.1.230.0040.01115.75
7.1.220.0070.00315.59
7.1.210.0070.00715.57
7.1.200.0070.00415.66
7.1.190.0060.00615.52
7.1.180.0000.01315.51
7.1.170.0030.01315.39
7.1.160.0000.01115.63
7.1.150.0040.00815.52
7.1.140.0130.00015.70
7.1.130.0030.00615.73
7.1.120.0090.00615.71
7.1.110.0060.00815.61
7.1.100.0040.00716.81
7.1.90.0040.00815.79
7.1.80.0100.00315.71
7.1.70.0020.01016.16
7.1.60.0050.00817.57
7.1.50.0090.00716.33
7.1.40.0030.01015.66
7.1.30.0130.00315.49
7.1.20.0030.00715.79
7.1.10.0060.00615.45
7.1.00.0050.04019.09
7.0.330.0080.00015.12
7.0.320.0070.00815.27
7.0.310.0100.00315.40
7.0.300.0030.00915.35
7.0.290.0030.00915.19
7.0.280.0000.00915.40
7.0.270.0100.00015.45
7.0.260.0060.00615.29
7.0.250.0100.00315.35
7.0.240.0030.00715.39
7.0.230.0040.01115.50
7.0.220.0060.00615.24
7.0.210.0000.01715.20
7.0.200.0030.00515.86
7.0.190.0030.00615.05
7.0.180.0090.00615.48
7.0.170.0080.00515.41
7.0.160.0040.00415.42
7.0.150.0070.00415.20
7.0.140.0100.04718.78
7.0.130.0060.00915.48
7.0.120.0040.01115.54
7.0.110.0060.00315.33
7.0.100.0070.00315.36
7.0.90.0050.00515.47
7.0.80.0000.01015.53
7.0.70.0040.01115.29
7.0.60.0000.03017.71
7.0.50.0080.04216.68
7.0.40.0140.02016.95
7.0.30.0250.03116.72
7.0.20.0120.03416.71
7.0.10.0130.03016.69
7.0.00.0030.04316.83
5.6.400.0070.00414.38
5.6.390.0080.00814.12
5.6.380.0000.01314.35
5.6.370.0060.00314.06
5.6.360.0050.00513.98
5.6.350.0030.01014.20
5.6.340.0080.00814.15
5.6.330.0060.00614.05
5.6.320.0040.00714.20
5.6.310.0000.01114.36
5.6.300.0030.00613.91
5.6.290.0000.01014.20
5.6.280.0070.03817.44
5.6.270.0090.00614.23
5.6.260.0090.00014.49
5.6.250.0040.00714.09
5.6.240.0030.01014.05
5.6.230.0090.00314.13
5.6.220.0030.01214.22
5.6.210.0030.04717.39
5.6.200.0090.03216.20
5.6.190.0070.04417.36
5.6.180.0070.04017.31
5.6.170.0130.03817.35
5.6.160.0030.03117.36
5.6.150.0080.03516.10
5.6.140.0060.04816.12
5.6.130.0050.03716.21
5.6.120.0070.03217.47
5.6.110.0030.04717.64
5.6.100.0060.02417.65
5.6.90.0090.04217.64
5.6.80.0030.03217.40
5.6.70.0080.03117.34
5.6.60.0030.01013.97
5.6.50.0030.01314.38
5.6.40.0110.00314.08
5.6.30.0060.00913.97
5.6.20.0030.00914.00
5.6.10.0070.01014.00
5.6.00.0110.00314.12
5.5.380.0030.00614.10
5.5.370.0000.01414.34
5.5.360.0060.00314.38
5.5.350.0020.05017.12
5.5.340.0070.02016.14
5.5.330.0050.02217.28
5.5.320.0030.04617.16
5.5.310.0190.02517.11
5.5.300.0100.03816.01
5.5.290.0050.04615.97
5.5.280.0070.02417.45
5.5.270.0050.03517.47
5.5.260.0100.03517.29
5.5.250.0050.03917.34
5.5.240.0030.04417.20
5.5.230.0000.01714.29
5.5.220.0000.01313.82
5.5.210.0030.01314.14
5.5.200.0040.01113.92
5.5.190.0040.00413.96
5.5.180.0070.00713.95
5.5.170.0090.00913.99
5.5.160.0100.00714.07
5.5.150.0060.00814.03
5.5.140.0120.00313.91
5.5.130.0060.00614.19
5.5.120.0030.01013.88
5.5.110.0090.00613.90
5.5.100.0040.01113.78
5.5.90.0130.00014.16
5.5.80.0100.00714.02
5.5.70.0060.01013.93
5.5.60.0080.00813.86
5.5.50.0000.01314.05
5.5.40.0070.00714.15
5.5.30.0080.00314.10
5.5.20.0040.01414.08
5.5.10.0000.01714.22
5.5.00.0120.00013.50
5.4.450.0050.03515.14
5.4.440.0120.02715.24
5.4.430.0180.02215.06
5.4.420.0070.03215.24
5.4.410.0100.02714.88
5.4.400.0150.03014.75
5.4.390.0030.03214.81
5.4.380.0070.03014.72
5.4.370.0030.02514.65
5.4.360.0080.02714.69
5.4.350.0040.02911.39
5.4.340.0080.01911.46
5.4.330.0080.00011.02
5.4.320.0040.02411.78
5.4.310.0080.02011.74
5.4.300.0040.02411.56
5.4.290.0050.02211.74
5.4.280.0040.02211.53
5.4.270.0070.02011.67
5.4.260.0060.02611.64
5.4.250.0070.02311.50
5.4.240.0060.01911.54
5.4.230.0070.02211.65
5.4.220.0050.02311.55
5.4.210.0040.02511.55
5.4.200.0040.02411.68
5.4.190.0070.02111.64
5.4.180.0090.01811.59
5.4.170.0040.02011.66
5.4.160.0050.02211.47
5.4.150.0080.01611.49
5.4.140.0060.02111.56
5.4.130.0050.02311.34
5.4.120.0040.02211.51
5.4.110.0060.02011.43
5.4.100.0060.02211.32
5.4.90.0090.02111.47
5.4.80.0070.02211.53
5.4.70.0050.01811.46
5.4.60.0050.01911.45
5.4.50.0040.02211.52
5.4.40.0060.02111.42
5.4.30.0040.02211.44
5.4.20.0070.02011.28
5.4.10.0060.01911.53
5.4.00.0060.02011.27
5.3.290.0070.03912.80
5.3.280.0100.03612.71
5.3.270.0110.03512.73
5.3.260.0030.04212.72
5.3.250.0080.03612.72
5.3.240.0060.03912.72
5.3.230.0040.04012.71
5.3.220.0080.03612.68
5.3.210.0060.03912.68
5.3.200.0060.03612.68
5.3.190.0060.04412.68
5.3.180.0050.03912.67
5.3.170.0080.04312.66
5.3.160.0110.03412.68
5.3.150.0040.04112.67
5.3.140.0100.03612.66
5.3.130.0140.04112.66
5.3.120.0060.04012.65
5.3.110.0140.03212.66
5.3.100.0040.04012.12
5.3.90.0040.04012.10
5.3.80.0030.03812.09
5.3.70.0100.03212.10
5.3.60.0070.03412.08
5.3.50.0050.03612.02
5.3.40.0050.03712.02
5.3.30.0070.03411.98
5.3.20.0050.03711.76
5.3.10.0050.03711.73
5.3.00.0090.03911.72
5.2.170.0070.0289.22
5.2.160.0050.0299.22
5.2.150.0050.0309.22
5.2.140.0100.0259.21
5.2.130.0070.0339.18
5.2.120.0100.0349.18
5.2.110.0060.0289.18
5.2.100.0080.0339.18
5.2.90.0080.0389.18
5.2.80.0060.0419.17
5.2.70.0060.0309.18
5.2.60.0080.0289.13
5.2.50.0030.0339.10
5.2.40.0060.0279.07
5.2.30.0030.0329.04
5.2.20.0070.0379.03
5.2.10.0060.0358.95
5.2.00.0020.0328.80
5.1.60.0080.0318.09
5.1.50.0040.0268.09
5.1.40.0070.0308.06
5.1.30.0040.0278.41
5.1.20.0030.0348.44
5.1.10.0060.0328.16
5.1.00.0040.0258.16
5.0.50.0020.0226.64
5.0.40.0020.0216.50
5.0.30.0010.0336.31
5.0.20.0020.0206.28
5.0.10.0050.0186.27
5.0.00.0070.0276.26
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0050.0144.75
4.4.50.0050.0194.77
4.4.40.0020.0264.71
4.4.30.0010.0174.75
4.4.20.0010.0184.84
4.4.10.0020.0174.85
4.4.00.0040.0284.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0020.0154.64
4.3.80.0050.0294.58
4.3.70.0040.0134.63
4.3.60.0040.0214.63
4.3.50.0040.0144.63
4.3.40.0020.0354.54
4.3.30.0030.0163.30
4.3.20.0030.0153.28
4.3.10.0020.0163.24
4.3.00.0130.0207.34

preferences:
33.48 ms | 400 KiB | 5 Q