3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getExpectedCiphertextSize(int $sizeOfInput) : int { return 4 // Version tag + 16 // IV + 16 // HKDF Salt + 32 // HMAC-SHA-256 + $sizeOfInput; } var_dump(getExpectedCiphertextSize(100));

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.0070.00716.47
8.3.50.0140.00722.10
8.3.40.0040.01118.67
8.3.30.0120.00318.60
8.3.20.0070.00020.25
8.3.10.0050.00323.65
8.3.00.0000.00823.56
8.2.180.0160.00616.38
8.2.170.0120.00922.96
8.2.160.0090.00520.28
8.2.150.0070.00024.18
8.2.140.0080.00824.66
8.2.130.0050.00219.82
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0060.00617.78
8.2.90.0040.00418.92
8.2.80.0000.00817.97
8.2.70.0100.00017.38
8.2.60.0060.00317.78
8.2.50.0040.00418.07
8.2.40.0040.00422.18
8.2.30.0000.00720.67
8.2.20.0040.00417.55
8.2.10.0040.00417.97
8.2.00.0030.00617.82
8.1.280.0120.00925.92
8.1.270.0150.00023.87
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0080.00423.83
8.1.230.0070.00322.11
8.1.220.0000.00717.74
8.1.210.0090.00018.77
8.1.200.0030.00617.09
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0000.00720.51
8.1.150.0000.00818.78
8.1.140.0080.00019.31
8.1.130.0070.00017.61
8.1.120.0000.00717.26
8.1.110.0080.00017.20
8.1.100.0050.00217.37
8.1.90.0000.00817.22
8.1.80.0000.00817.38
8.1.70.0030.00317.30
8.1.60.0040.00417.52
8.1.50.0060.00317.30
8.1.40.0050.00317.48
8.1.30.0040.00417.60
8.1.20.0000.00717.41
8.1.10.0040.00417.53
8.1.00.0030.00517.36
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0070.00018.35
8.0.270.0000.00717.09
8.0.260.0000.00817.14
8.0.250.0000.00716.95
8.0.240.0030.00516.92
8.0.230.0050.00216.86
8.0.220.0040.00416.86
8.0.210.0000.00816.85
8.0.200.0060.00016.74
8.0.190.0000.00816.95
8.0.180.0040.00416.73
8.0.170.0040.00416.73
8.0.160.0020.00516.86
8.0.150.0000.00816.70
8.0.140.0070.00016.66
8.0.130.0070.00013.20
8.0.120.0040.00416.80
8.0.110.0000.00816.82
8.0.100.0040.00416.82
8.0.90.0000.00716.84
8.0.80.0060.00916.83
8.0.70.0080.00016.64
8.0.60.0040.00416.85
8.0.50.0060.00316.67
8.0.30.0110.01017.04
8.0.20.0110.00817.40
8.0.10.0070.00016.80
8.0.00.0130.00516.62
7.4.330.0020.00216.77
7.4.320.0030.00316.26
7.4.300.0060.00316.44
7.4.290.0030.00316.45
7.4.280.0070.00316.42
7.4.270.0030.00316.53
7.4.260.0070.00016.37
7.4.250.0000.00716.30
7.4.240.0000.00716.49
7.4.230.0050.00316.39
7.4.220.0000.00716.37
7.4.210.0080.00716.53
7.4.200.0030.00316.53
7.4.160.0120.00316.36
7.4.150.0130.00317.40
7.4.140.0060.01217.86
7.4.130.0080.01016.40
7.4.120.0080.01016.34
7.4.110.0090.01516.21
7.4.100.0030.01316.38
7.4.90.0080.00816.46
7.4.80.0070.01419.39
7.4.70.0130.00416.59
7.4.60.0130.00316.27
7.4.50.0110.00316.49
7.4.40.0090.00916.34
7.4.30.0090.01216.39
7.4.00.0060.00915.03
7.3.330.0060.00013.34
7.3.320.0060.00013.16
7.3.310.0000.00716.15
7.3.300.0030.00316.30
7.3.290.0030.00316.39
7.3.280.0110.00816.31
7.3.270.0130.00617.40
7.3.260.0160.00616.32
7.3.250.0110.01016.37
7.3.240.0070.01016.46
7.3.230.0100.00716.48
7.3.210.0060.01016.23
7.3.200.0160.00019.39
7.3.190.0090.00916.56
7.3.180.0150.00316.59
7.3.170.0120.00716.46
7.3.160.0000.01716.54
7.2.330.0100.01416.23
7.2.320.0110.00916.55
7.2.310.0070.01016.49
7.2.300.0130.01016.25
7.2.290.0070.01316.44
7.2.60.0100.00316.75
7.2.00.0060.00319.20
7.1.200.0030.00315.63
7.1.100.0070.00318.21
7.1.70.0030.00717.07
7.1.60.0070.01819.20
7.1.50.0100.01316.68
7.1.00.0070.07322.40
7.0.200.0200.00014.76
7.0.60.0130.06721.78
7.0.50.0100.07017.84
7.0.40.0000.04720.11
7.0.30.0170.04020.11
7.0.20.0300.04020.07
7.0.10.0070.05020.09
7.0.00.0100.04020.21
5.6.280.0030.03321.09
5.6.210.0130.07320.66
5.6.200.0030.04018.18
5.6.190.0030.05020.34
5.6.180.0300.06320.50
5.6.170.0200.08720.55
5.6.160.0000.04320.44
5.6.150.0070.06018.18
5.6.140.0100.07718.18
5.6.130.0030.08318.16
5.6.120.0100.05021.03
5.6.110.0030.04721.11
5.6.100.0200.03721.00
5.6.90.0070.05021.00
5.6.80.0030.09020.42
5.5.350.0130.04320.36
5.5.340.0070.03717.95
5.5.330.0130.07720.57
5.5.320.0530.06020.52
5.5.310.0200.03720.51
5.5.300.0100.05018.02
5.5.290.0070.06018.03
5.5.280.0070.06320.61
5.5.270.0100.07320.76
5.5.260.0070.04020.77
5.5.250.0030.07320.68
5.5.240.0170.08020.23

preferences:
34 ms | 401 KiB | 5 Q