3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bytesToBits(string $bytestring) : string { $tmp = strlen($bytestring); if ($tmp % 4) { $bytestring = str_pad($bytestring, intdiv($tmp, 4) * 4 + 4, '0', STR_PAD_LEFT); } $tmp = ''; foreach (str_split($bytestring, 4) as $chunk) { $tmp .= str_pad(base_convert(unpack('H*', $chunk)[1], 16, 2), 32, '0', STR_PAD_LEFT); } return $tmp; }

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.60.0090.00916.38
8.3.50.0070.00718.07
8.3.40.0140.00318.77
8.3.30.0110.01118.59
8.3.20.0040.00420.39
8.3.10.0060.00323.48
8.3.00.0020.00523.57
8.2.180.0170.00318.16
8.2.170.0030.01322.96
8.2.160.0070.01120.39
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.91
8.2.110.0060.00321.03
8.2.100.0070.00420.38
8.2.90.0060.00317.50
8.2.80.0000.00917.97
8.2.70.0040.00417.38
8.2.60.0030.00617.25
8.2.50.0040.00417.80
8.2.40.0080.00019.35
8.2.30.0070.00019.11
8.2.20.0000.00717.80
8.2.10.0000.00717.99
8.2.00.0000.00717.91
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0180.00322.19
8.1.230.0110.00020.94
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0080.00417.10
8.1.190.0050.00517.22
8.1.180.0050.00318.10
8.1.170.0060.00317.62
8.1.160.0040.00418.76
8.1.150.0020.00519.98
8.1.140.0000.00917.38
8.1.130.0070.00018.98
8.1.120.0070.00017.35
8.1.110.0000.00817.33
8.1.100.0040.00417.34
8.1.90.0040.00417.32
8.1.80.0000.00817.26
8.1.70.0000.00717.31
8.1.60.0030.00517.45
8.1.50.0030.00517.40
8.1.40.0080.00317.38
8.1.30.0040.00417.50
8.1.20.0000.00717.52
8.1.10.0000.00717.25
8.1.00.0030.00517.32
8.0.300.0000.00719.65
8.0.290.0050.00316.63
8.0.280.0030.00318.38
8.0.270.0000.00916.61
8.0.260.0030.00316.60
8.0.250.0000.00716.87
8.0.240.0040.00416.83
8.0.230.0000.00716.80
8.0.220.0000.00716.77
8.0.210.0000.00716.75
8.0.200.0030.00316.83
8.0.190.0000.00716.89
8.0.180.0000.00816.69
8.0.170.0040.00416.77
8.0.160.0060.00316.71
8.0.150.0000.00716.69
8.0.140.0030.00616.67
8.0.130.0050.00013.16
8.0.120.0000.00816.61
8.0.110.0060.00316.65
8.0.100.0020.00516.82
8.0.90.0040.00416.81
8.0.80.0090.01516.72
8.0.70.0030.00516.80
8.0.60.0040.00416.81
8.0.50.0030.00616.79
8.0.30.0160.00416.83
8.0.20.0060.01417.40
8.0.10.0040.00416.88
8.0.00.0100.00716.47
7.4.330.0000.00515.55
7.4.320.0000.00616.45
7.4.300.0070.00016.39
7.4.290.0030.00616.46
7.4.280.0040.00416.44
7.4.270.0000.00616.43
7.4.260.0030.00316.41
7.4.250.0070.00016.45
7.4.240.0030.00316.50
7.4.230.0020.00516.54
7.4.220.0060.01316.47
7.4.210.0050.00916.38
7.4.200.0000.00716.47
7.4.150.0040.01317.40
7.4.140.0110.00917.86
7.4.130.0080.01116.60
7.4.120.0120.00816.34
7.4.110.0130.00316.29
7.4.100.0100.01316.23
7.4.90.0130.00316.43
7.4.80.0090.00619.39
7.4.70.0120.01216.36
7.4.60.0090.00616.27
7.4.50.0130.00316.32
7.4.40.0070.01016.48
7.4.30.0160.00716.23
7.4.10.0040.01414.62
7.4.00.0070.01014.83
7.3.330.0030.00312.94
7.3.320.0000.00513.13
7.3.310.0030.00316.17
7.3.300.0040.00416.18
7.3.290.0090.00516.13
7.3.280.0070.01016.16
7.3.270.0130.00917.40
7.3.260.0120.01016.40
7.3.250.0080.01016.13
7.3.240.0070.00916.28
7.3.230.0150.00316.24
7.3.210.0070.01016.48
7.3.200.0180.00316.51
7.3.190.0070.01116.22
7.3.180.0090.00616.21
7.3.170.0030.01416.15
7.3.160.0040.01216.31
7.3.130.0100.00714.64
7.3.120.0060.01014.70
7.3.110.0080.00714.53
7.3.100.0060.01014.72
7.3.90.0090.00514.50
7.3.80.0020.01014.74
7.3.70.0050.00714.55
7.3.60.0020.01114.67
7.3.50.0070.00514.68
7.3.40.0080.00614.37
7.3.30.0070.00814.69
7.3.20.0060.00816.38
7.3.10.0090.00716.59
7.3.00.0080.00316.52
7.2.330.0030.01416.54
7.2.320.0070.01016.64
7.2.310.0150.00616.54
7.2.300.0090.01316.38
7.2.290.0110.00916.51
7.2.260.0030.01115.02
7.2.250.0090.00914.87
7.2.240.0060.00814.90
7.2.230.0100.00914.95
7.2.220.0070.00714.66
7.2.210.0050.01014.74
7.2.200.0070.00814.65
7.2.190.0110.00514.99
7.2.180.0070.00714.80
7.2.170.0050.00914.82
7.2.160.0040.00714.90
7.2.150.0030.00716.73
7.2.140.0060.01016.45
7.2.130.0000.01316.89
7.2.120.0060.00616.74
7.2.110.0040.01116.68
7.2.100.0000.01416.70
7.2.90.0090.00616.79
7.2.80.0030.01016.69
7.2.70.0040.00716.45
7.2.60.0050.01116.89
7.2.50.0040.01116.54
7.2.40.0060.00916.55
7.2.30.0110.00016.91
7.2.20.0040.00916.68
7.2.10.0030.01316.67
7.2.00.0060.00616.93
7.1.330.0100.00315.45
7.1.320.0050.00915.52
7.1.310.0050.00715.61
7.1.300.0060.00715.54
7.1.290.0060.00615.41
7.1.280.0030.00815.42
7.1.270.0070.00715.63
7.1.260.0060.00815.52
7.1.250.0030.00715.46
7.1.240.0070.00415.44
7.1.230.0060.00915.61
7.1.220.0040.00815.64
7.1.210.0060.00615.52
7.1.200.0050.00715.52
7.1.190.0030.01215.57
7.1.180.0070.00415.63
7.1.170.0000.01415.50
7.1.160.0030.00915.21
7.1.150.0070.00715.40
7.1.140.0110.00415.67
7.1.130.0060.00615.36
7.1.120.0040.00815.55
7.1.110.0070.01016.02
7.1.100.0090.00815.70
7.1.90.0050.01215.88
7.1.80.1700.00815.94
7.1.70.1970.00915.45
7.1.60.2040.00724.24
7.1.50.1920.00824.05
7.1.40.1710.00723.89
7.1.30.2570.00823.95
7.1.20.1750.01224.07
7.1.10.1790.00715.09
7.1.00.1520.01115.09
7.0.330.0040.00815.45
7.0.320.0070.00715.44
7.0.310.0050.00315.13
7.0.300.0030.00915.28
7.0.290.0110.00415.37
7.0.280.0030.01315.18
7.0.270.0100.00315.37
7.0.260.0000.01114.95
7.0.250.0070.00715.35
7.0.240.1610.00415.61
7.0.230.0090.00615.52
7.0.220.1770.00515.58
7.0.210.1780.00514.96
7.0.200.2070.00714.94
7.0.190.2060.00914.93
7.0.180.1490.01414.83
7.0.170.3020.01014.81
7.0.160.2320.00714.82
7.0.150.1600.01114.80
7.0.140.1710.00814.70
7.0.130.1530.00815.11
7.0.120.1410.00714.83
7.0.110.1270.00814.68
7.0.100.1280.01214.71
7.0.90.1350.00814.80
7.0.80.1370.00815.02
7.0.70.1300.00714.92
7.0.60.1240.00514.87
7.0.50.1740.00814.93
7.0.40.1520.00914.13
7.0.30.1280.00914.17
7.0.20.1320.00814.10
7.0.10.1360.00514.04
7.0.00.1410.01014.03
5.6.400.0030.01014.15
5.6.390.0070.00413.98
5.6.380.0040.01114.32
5.6.370.0040.01114.28
5.6.360.0070.00714.39
5.6.350.0080.00414.12
5.6.340.0000.01214.24
5.6.330.0050.00814.49
5.6.320.0040.00413.96
5.6.310.0030.01014.14
5.6.300.0000.00814.06
5.6.290.0060.00613.95
5.6.280.0040.01113.87
5.6.270.0090.00614.26
5.6.260.0110.00414.38
5.6.250.0060.00914.05
5.6.240.0030.00814.00
5.6.230.0030.01314.07
5.6.220.0060.00314.04
5.6.210.0060.00614.26
5.6.200.0070.00714.31
5.6.190.0070.01014.21
5.6.180.0080.00414.09
5.6.170.0000.00814.03
5.6.160.0070.00714.21
5.6.150.0000.01514.02
5.6.140.0100.00314.24
5.6.130.0040.01014.24
5.6.120.0040.00414.16
5.6.110.0100.00014.08
5.6.100.0000.01014.06
5.6.90.0100.00314.21
5.6.80.0070.00714.17
5.6.70.0030.00814.10
5.6.60.0070.00713.95
5.6.50.0060.00614.19
5.6.40.0030.00614.07
5.6.30.0060.00314.13
5.6.20.0030.00914.16
5.6.10.0060.00614.09
5.6.00.0030.00713.92

preferences:
64.23 ms | 401 KiB | 5 Q