3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '5.5.5') { echo 'Wrong version.'; die; } $config = array( "digest_alg" => "sha512", "private_key_bits" => 4096, "private_key_type" => OPENSSL_KEYTYPE_RSA, ); // Create the private and public key $res = openssl_pkey_new($config); $data = 'this-is-data'; //$t = openssl_seal($data, $sealed, $keys, []);

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)
7.3.10.0140.01416.36
7.3.00.0210.00616.22
7.2.130.0120.01516.64
7.2.120.0210.00316.13
7.2.110.0160.00316.23
7.2.100.0070.01316.73
7.2.90.0100.01016.15
7.2.80.0080.00816.80
7.2.70.0090.01815.97
7.2.60.0170.00316.57
7.2.50.0080.00416.71
7.2.40.0040.01516.32
7.2.30.0060.00816.83
7.2.20.0130.00716.21
7.2.10.0030.00716.37
7.2.00.0060.00818.06
7.1.250.0100.01015.32
7.1.100.0070.01417.59
7.1.70.0000.01117.17
7.1.60.0040.02119.36
7.1.50.0040.01116.96
7.1.00.0030.03322.36
7.0.200.0080.00016.76
7.0.140.0070.09322.23
7.0.110.0100.07719.89
7.0.100.0030.05719.96
7.0.90.0000.08719.87
7.0.80.0070.08719.93
7.0.70.0070.08719.89
7.0.60.0130.07319.89
7.0.50.0070.08320.30
7.0.40.0130.08320.03
7.0.30.0070.08720.02
7.0.20.0030.07720.04
7.0.10.0100.07720.24
7.0.00.0100.07720.02
5.6.280.0030.07321.01
5.6.260.0100.07720.71
5.6.250.0130.07320.74
5.6.240.0030.08720.56
5.6.230.0070.07720.46
5.6.220.0100.07320.68
5.6.210.0170.07320.60
5.6.200.0130.07721.29
5.6.190.0200.07321.12
5.6.180.0100.05021.08
5.6.170.0070.08321.28
5.6.160.0170.07321.11
5.6.150.0100.07021.26
5.6.140.0130.07021.21
5.6.130.0130.07720.95
5.6.120.0100.08021.18
5.6.110.0130.08320.87
5.6.100.0070.07021.07
5.6.90.0100.07721.17
5.6.80.0070.06720.59
5.6.70.0130.06720.43
5.6.60.0030.05720.39
5.6.50.0130.07320.50
5.6.40.0100.05020.44
5.6.30.0100.07720.50
5.6.20.0100.08320.30
5.6.10.0030.08320.34
5.6.00.0070.06320.53
5.5.380.0100.08320.23
5.5.370.0130.06720.36
5.5.360.0100.07320.35
5.5.350.0030.07720.50
5.5.340.0070.08720.89
5.5.330.0070.08320.95
5.5.320.0070.08321.04
5.5.310.0100.07320.95
5.5.300.0070.08720.96
5.5.290.0100.07720.79
5.5.280.0100.08320.89
5.5.270.0130.07720.79
5.5.260.0200.05720.94
5.5.250.0070.08020.78
5.5.240.0100.04020.41
5.5.230.0000.09020.27
5.5.220.0170.06720.32
5.5.210.0030.08320.28
5.5.200.0130.06020.39
5.5.190.0130.07320.25
5.5.180.0100.08020.25
5.5.160.0030.08020.25
5.5.150.0030.05720.23
5.5.140.0100.08020.18
5.5.130.0070.07020.20
5.5.120.0000.04320.38
5.5.110.0100.03320.32
5.5.100.0030.04020.02
5.5.90.0130.06020.04
5.5.80.0030.07020.11
5.5.70.0100.03320.03
5.5.60.0030.03720.13
5.5.50.0800.67320.51
5.5.40.0100.04320.20
5.5.30.0000.04320.23
5.5.20.0100.03320.14
5.5.10.0070.06019.92
5.5.00.0000.05320.02
5.4.450.0100.06319.35
5.4.440.0030.08719.40
5.4.430.0000.08319.27
5.4.420.0030.08319.34
5.4.410.0030.09019.23
5.4.400.0070.06318.95
5.4.390.0070.07319.00
5.4.380.0030.05719.02
5.4.370.0100.04319.25
5.4.360.0070.07318.95
5.4.350.0130.03019.10
5.4.340.0070.07319.12
5.4.320.0170.06319.07
5.4.310.0100.07319.00
5.4.300.0070.04319.27
5.4.290.0030.08319.07
5.4.280.0030.04319.16
5.4.270.0030.03719.25
5.4.260.0030.03719.11
5.4.250.0100.03719.11
5.4.240.0070.03318.94
5.4.230.0030.03719.02
5.4.220.0000.04019.26
5.4.210.0000.04319.30
5.4.200.0030.04018.94
5.4.190.0030.05019.06
5.4.180.0130.06319.09
5.4.170.0030.03318.94
5.4.160.0000.04319.07
5.4.150.0030.04019.10
5.4.140.0070.04016.17
5.4.130.0070.04016.45
5.4.120.0070.03316.18
5.4.110.0000.04016.56
5.4.100.0070.05316.18
5.4.90.0030.03316.30
5.4.80.0000.04016.27
5.4.70.0030.03316.27
5.4.60.0030.03716.36
5.4.50.0100.02716.50
5.4.40.0030.03716.51
5.4.30.0030.05016.50
5.4.20.0030.03316.47
5.4.10.0030.03316.25
5.4.00.0100.03315.70
5.3.290.0100.05714.66
5.3.280.0000.04014.42
5.3.270.0000.04014.40
5.3.260.0100.03714.50
5.3.250.0100.03014.45
5.3.240.0070.04314.54
5.3.230.0070.03314.67
5.3.220.0070.03714.57
5.3.210.0030.06714.50
5.3.200.0000.04014.43
5.3.190.0030.04714.44
5.3.180.0070.05014.56
5.3.170.0030.03714.43
5.3.160.0030.03714.43
5.3.150.0100.03314.39
5.3.140.0030.03314.34
5.3.130.0000.04014.66
5.3.120.0100.05014.37
5.3.110.0000.04014.55
5.3.100.0030.03713.96
5.3.90.0070.03013.88
5.3.80.0030.04313.95
5.3.70.0000.04014.02
5.3.60.0000.04713.79
5.3.50.0000.03713.84
5.3.40.0000.04013.88
5.3.30.0000.04013.82
5.3.20.0000.03313.79
5.3.10.0000.05713.55
5.3.00.0030.08013.54
5.2.170.0000.03011.97
5.2.160.0000.03711.97
5.2.150.0000.04711.97
5.2.140.0000.05011.97
5.2.130.0070.03711.97
5.2.120.0070.02311.97
5.2.110.0100.05711.97
5.2.100.0030.06311.97
5.2.90.0130.03011.97
5.2.80.0070.05311.97
5.2.70.0030.06311.97
5.2.60.0030.05311.97
5.2.50.0030.06011.97
5.2.40.0070.05711.97
5.2.30.0070.06011.97
5.2.20.0070.05711.97
5.2.10.0030.06311.97
5.2.00.0030.04711.97
5.1.60.0070.05311.97
5.1.50.0030.05311.97
5.1.40.0000.06311.97
5.1.30.0030.05311.97
5.1.20.0070.05711.97
5.1.10.0030.05711.97
5.1.00.0030.06011.97
5.0.50.0070.04311.97
5.0.40.0030.04311.97
5.0.30.0100.05711.97
5.0.20.0130.03711.97
5.0.10.0000.03311.97
5.0.00.0000.05711.97
4.4.90.0100.02711.97
4.4.80.0000.03311.97
4.4.70.0030.01711.97
4.4.60.0000.04011.97
4.4.50.0030.03711.97
4.4.40.0000.05711.97
4.4.30.0000.03711.97
4.4.20.0000.03711.97
4.4.10.0070.03311.97
4.4.00.0070.04711.97
4.3.110.0070.03311.97
4.3.100.0000.02011.97
4.3.90.0070.03711.97
4.3.80.0000.02711.97
4.3.70.0030.03311.97
4.3.60.0070.02311.97
4.3.50.0000.02311.97
4.3.40.0030.04011.97
4.3.30.0000.02011.97
4.3.20.0000.03711.97
4.3.10.0030.02711.97
4.3.00.0000.03311.97

preferences:
32.57 ms | 401 KiB | 5 Q