3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getFingeprint($publickey) { $hash = hash('sha256', $publickey); return implode(' ', [ substr($hash, 0, 8), substr($hash, 8, 8), substr($hash, 16, 8), substr($hash, 24, 8), '', // Extra space substr($hash, 32, 8), substr($hash, 40, 8), substr($hash, 48, 8), substr($hash, 56, 8), ]); } echo getFingerprint('-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/fYc4fDkgMdv7qdM7Fc yjS7IVvPWoV8z6V277jmKL735UoGsZunY0RJdxOW9Ucep/XMc0hIcNogmyYpCkna WB/20xI4sWuFgLXVHZhpU8k+sT16GzPY4/2RnvNs0cFCEA4CeI2nHOp+RnpzOXAO jv6K2LrH7fbChkXl8WHiC1+xC7a4zxvm1XbsUE6Jf/m+xljhwQWFpDLPIOvE8uzG Oo/MYxCCgxCzy/ze8V9hnyQyI4FHbKTYf44NiJP99svppEfbUkVsMlMwhtbWEUAh pZSwmsRV7aH+H8lCaVe5fxs4Sm6UcU6yImFiqvTpB92ElrwiHDZOanidimKynf0x YQIDAQAB -----END PUBLIC KEY-----');

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.0060.00916.63
8.3.50.0090.00617.85
8.3.40.0070.01418.82
8.3.30.0070.00718.68
8.3.20.0000.00720.33
8.3.10.0040.00421.90
8.3.00.0000.00823.58
8.2.180.0110.00716.38
8.2.170.0070.00722.96
8.2.160.0110.00422.13
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.01120.68
8.2.120.0040.00426.35
8.2.110.0030.00619.30
8.2.100.0110.00017.90
8.2.90.0090.00019.09
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0030.00618.04
8.2.50.0000.00818.09
8.2.40.0000.00822.32
8.2.30.0040.00419.42
8.2.20.0050.00217.55
8.2.10.0020.00518.03
8.2.00.0040.00417.91
8.1.280.0000.01425.92
8.1.270.0070.00722.14
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00323.97
8.1.230.0070.00417.64
8.1.220.0060.00317.74
8.1.210.0050.00518.77
8.1.200.0030.00617.22
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0050.00220.63
8.1.150.0040.00418.82
8.1.140.0030.00519.45
8.1.130.0030.00317.62
8.1.120.0000.00717.34
8.1.110.0040.00417.37
8.1.100.0040.00417.41
8.1.90.0040.00417.37
8.1.80.0030.00717.24
8.1.70.0000.00817.21
8.1.60.0000.00717.41
8.1.50.0060.00317.50
8.1.40.0040.00417.49
8.1.30.0000.00917.43
8.1.20.0040.00417.55
8.1.10.0040.00417.42
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0040.00418.34
8.0.270.0030.00517.25
8.0.260.0000.00617.18
8.0.250.0030.00316.91
8.0.240.0070.00016.83
8.0.230.0030.00317.00
8.0.220.0030.00616.77
8.0.210.0040.00416.88
8.0.200.0030.00316.94
8.0.190.0000.00816.95
8.0.180.0070.00316.81
8.0.170.0040.00416.89
8.0.160.0030.00316.96
8.0.150.0070.00016.96
8.0.140.0070.00016.90
8.0.130.0000.00513.32
8.0.120.0000.00716.89
8.0.110.0040.00416.88
8.0.100.0000.00716.74
8.0.90.0030.00316.93
8.0.80.0090.00616.88
8.0.70.0040.00416.84
8.0.60.0040.00416.80
8.0.50.0000.00816.86
8.0.30.0050.01216.96
8.0.20.0110.00717.40
8.0.10.0000.00716.80
8.0.00.0070.01216.58
7.4.330.0000.00516.78
7.4.320.0030.00316.38
7.4.300.0030.00316.45
7.4.290.0000.00716.36
7.4.280.0030.00616.36
7.4.270.0030.00516.45
7.4.260.0040.00416.53
7.4.250.0040.00416.41
7.4.240.0070.00016.55
7.4.230.0040.00416.54
7.4.220.0110.00716.48
7.4.210.0090.00816.50
7.4.200.0040.00416.57
7.4.160.0080.00816.46
7.4.150.0030.01317.40
7.4.140.0060.01417.86
7.4.130.0160.00316.40
7.4.120.0110.00716.60
7.4.110.0100.00716.57
7.4.100.0040.01316.50
7.4.90.0100.01316.46
7.4.80.0160.00719.39
7.4.70.0110.00716.50
7.4.60.0110.00716.33
7.4.50.0040.01116.52
7.4.40.0110.00516.30
7.4.30.0080.01116.42
7.4.00.0110.00814.90
7.3.330.0050.00013.30
7.3.320.0050.00013.13
7.3.310.0000.00616.19
7.3.300.0000.00716.34
7.3.290.0030.00316.22
7.3.280.0100.01016.29
7.3.270.0110.00617.40
7.3.260.0030.01316.64
7.3.250.0110.00916.47
7.3.240.0100.01016.44
7.3.230.0070.01016.39
7.3.210.0060.00916.58
7.3.200.0100.00719.39
7.3.190.0060.01016.32
7.3.180.0130.00316.51
7.3.170.0140.00616.30
7.3.160.0060.01016.48
7.3.120.0090.00614.79
7.3.110.0110.00714.74
7.3.100.0100.01014.59
7.3.90.0070.01414.72
7.3.80.0040.01114.70
7.3.70.0030.01314.45
7.3.60.0060.00614.75
7.3.50.0110.00414.41
7.3.40.0000.01114.79
7.3.30.0060.00614.65
7.3.20.0030.00716.79
7.3.10.0080.00816.57
7.3.00.0100.00316.67
7.2.330.0060.01216.25
7.2.320.0140.00316.60
7.2.310.0100.00616.66
7.2.300.0030.01616.31
7.2.290.0060.01016.56
7.2.250.0060.01315.04
7.2.240.0090.00614.61
7.2.230.0000.01414.91
7.2.220.0110.00714.48
7.2.210.0000.01314.80
7.2.200.0090.00614.92
7.2.190.0060.00914.84
7.2.180.0000.01614.63
7.2.170.0090.00614.96
7.2.60.0090.00616.61
7.2.00.0040.00819.10
7.1.330.0070.00715.68
7.1.320.0030.00815.60
7.1.310.0070.00715.67
7.1.300.0000.01515.76
7.1.290.0060.00515.67
7.1.280.0030.00715.33
7.1.270.0070.00715.49
7.1.260.0080.00615.67
7.1.200.0090.00315.35
7.1.100.0070.00718.13
7.1.70.0060.01016.75
7.1.60.0140.01019.40
7.1.50.0070.00716.83
7.1.00.0070.07322.31
7.0.200.0000.01016.64
7.0.60.0230.06721.74
7.0.50.0100.07317.86
7.0.40.0070.04320.24
7.0.30.0200.06320.21
7.0.20.0370.07320.19
7.0.10.0030.04720.09
7.0.00.0100.08020.07
5.6.280.0000.03321.08
5.6.210.0000.05020.60
5.6.200.0100.08018.24
5.6.190.0200.07320.64
5.6.180.0330.04020.46
5.6.170.0130.04320.50
5.6.160.0130.08020.52
5.6.150.0070.04318.19
5.6.140.0070.08018.21
5.6.130.0070.04318.27
5.6.120.0130.07321.02
5.6.110.0070.05720.99
5.6.100.0030.06320.95
5.6.90.0230.07021.11
5.6.80.0100.05020.51
5.5.350.0130.08020.33
5.5.340.0000.05017.98
5.5.330.0070.04020.47
5.5.320.0530.06020.30
5.5.310.0330.04020.24
5.5.300.0070.08018.07
5.5.290.0170.07018.08
5.5.280.0100.03320.88
5.5.270.0030.07720.74
5.5.260.0100.03320.86
5.5.250.0030.07020.58
5.5.240.0330.05320.02

preferences:
55.61 ms | 401 KiB | 5 Q