3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_key = <<< TEXT -----BEGIN RSA PUBLIC KEY----- MIIBCgKCAQEAp11fZi2kaPCCdOYQPHkHItqGcXaF0Uu9qfBBrcaDXo/Vaqy/niZt 34mO+l+7t/LQjsZl4P/Vjr4wQHZ2rd7PS1rL4XC08vn40szoCpfwyQcnirLkSzx0 wEu8a+bTCNP0i/XLoAaPsWKyZuF9oT6pmPtvvlHxqunaTrqNtFIQNWXrPksZEXh+ zx/2Z5dQ88QIWH6uRMbT+oq9IBE9VGBawzFPwpER2b4sX1ig+vgZhMhSGmHY0/qO VmW7m09T5UnnqSdG1nyICIJ17HBXaDToeqRrwiq7SamkBYpu4KP7ZGFo41/MHsnD NQ7kr7xwDQr+H8FmnSO1f9nB33WvboHJcwIDAQAB -----END RSA PUBLIC KEY----- TEXT; $start_key = str_replace('-----BEGIN RSA PUBLIC KEY-----', '', $start_key); $start_key = trim(str_replace('-----END RSA PUBLIC KEY-----', '', $start_key)); $key = 'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A' . str_replace("\n", '', $start_key); $key = "-----BEGIN PUBLIC KEY-----\n" . wordwrap($key, 64, "\n", true) . "\n-----END PUBLIC KEY-----"; echo openssl_pkey_get_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.1.70.0030.00317.45
8.1.60.0030.00617.59
8.1.50.0040.00417.50
8.1.40.0000.00717.42
8.1.30.0050.00217.71
8.1.20.0000.00817.54
8.1.10.0040.00417.58
8.1.00.0000.00817.49
8.0.200.0030.00616.90
8.0.190.0060.00317.10
8.0.180.0000.00716.95
8.0.170.0000.00716.96
8.0.160.0000.00717.01
8.0.150.0050.00316.92
8.0.140.0030.01016.92
8.0.130.0040.00413.39
8.0.120.0040.00416.89
8.0.110.0060.00316.85
8.0.100.0020.00516.87
8.0.90.0000.00717.02
8.0.80.0090.00617.01
8.0.70.0040.00416.91
8.0.60.0000.00716.80
8.0.50.0000.00716.87
8.0.30.0090.00917.15
8.0.20.0130.00617.03
8.0.10.0070.00016.92
8.0.00.0070.01016.79
7.4.300.0040.00416.52
7.4.290.0030.00316.59
7.4.280.0060.00316.43
7.4.270.0030.00316.51
7.4.260.0030.00313.34
7.4.250.0040.00416.59
7.4.240.0070.00016.47
7.4.230.0040.00416.54
7.4.220.0060.01216.63
7.4.210.0060.00816.61
7.4.200.0030.00416.55
7.4.190.0000.00716.61
7.4.160.0030.01316.52
7.4.150.0090.01616.43
7.4.140.0100.01016.55
7.4.130.0090.00916.54
7.4.120.0130.00616.59
7.4.110.0100.00616.62
7.4.100.0150.00316.49
7.4.90.0090.01216.54
7.4.80.0000.01616.63
7.4.70.0120.01216.52
7.4.60.0090.00816.51
7.4.50.0000.00816.55
7.4.40.0150.00016.41
7.4.30.0110.00616.53
7.4.00.0030.01315.26
7.3.330.0030.00313.14
7.3.320.0030.00313.00
7.3.310.0000.00716.36
7.3.300.0030.00316.18
7.3.290.0030.01716.32
7.3.280.0070.00916.28
7.3.270.0110.00616.36
7.3.260.0110.00616.50
7.3.250.0080.00916.42
7.3.240.0100.00716.50
7.3.230.0100.00716.46
7.3.210.0100.00716.48
7.3.200.0120.00419.39
7.3.190.0060.01216.32
7.3.180.0120.00616.34
7.3.170.0110.00716.53
7.3.160.0060.00916.45
7.3.120.0070.00314.64
7.2.330.0070.01016.57
7.2.320.0090.01316.62
7.2.310.0100.01016.47
7.2.300.0130.00316.53
7.2.290.0100.00716.54
7.2.60.0100.00316.94
7.2.50.0090.00016.97
7.1.200.0000.01115.59
7.1.70.0050.00318.71
7.1.60.0100.00318.71
7.1.50.0100.00318.71
7.1.40.0050.00518.71
7.1.30.0070.00718.71
7.1.20.0060.00918.71
7.1.10.0040.00818.71
7.1.00.0030.01218.71
7.0.200.0000.01418.71
7.0.190.0000.00918.71
7.0.180.0040.01118.71
7.0.170.0030.01018.71
7.0.160.0040.01118.71
7.0.150.0000.01418.71
7.0.140.0050.00518.71
7.0.130.0030.00618.71
7.0.120.0000.00818.71
7.0.110.0060.00918.71
7.0.100.0070.01318.71
7.0.90.0080.00418.71
7.0.80.0040.01218.71
7.0.70.0050.00318.71
7.0.60.0030.00618.71
7.0.50.0000.01118.71
7.0.40.0110.00418.71
7.0.30.0070.00718.71
7.0.20.0030.01118.71
7.0.10.0030.00618.71
7.0.00.0000.00918.71
5.6.300.0040.07120.68
5.6.290.0150.03320.88
5.6.280.0030.06420.98
5.6.270.0070.05221.07
5.6.260.0070.06620.82
5.6.250.0030.06320.99
5.6.240.0070.05921.01
5.6.230.0100.05120.97
5.6.220.0060.03920.94
5.6.210.0100.03620.63
5.6.200.0110.03920.83
5.6.190.0130.03220.82
5.6.180.0110.04920.86
5.6.170.0030.04620.99
5.6.160.0030.04320.91
5.6.150.0090.05520.83
5.6.140.0000.05120.82
5.6.130.0030.04320.85
5.6.120.0210.05120.84
5.6.110.0040.04320.82
5.6.100.0060.04120.84
5.6.90.0000.04320.78
5.6.80.0000.08420.25
5.6.70.0060.05120.40
5.6.60.0000.04720.11
5.6.50.0290.04220.34
5.6.40.0070.03320.21
5.6.30.0040.04320.16
5.6.20.0060.04220.14
5.6.10.0030.03820.19
5.6.00.0040.03920.39
5.5.380.0000.04818.71
5.5.370.0000.05118.71
5.5.360.0070.03918.71
5.5.350.0070.03518.71
5.5.340.0000.04118.71
5.5.330.0040.03918.71
5.5.320.0000.04318.71
5.5.310.0000.04518.71
5.5.300.0070.06118.71
5.5.290.0000.05718.71
5.5.280.0070.03818.71
5.5.270.0070.03918.71
5.5.260.0000.04718.71
5.5.250.0130.03218.71
5.5.240.0000.06518.71
5.5.230.0000.06618.71
5.5.220.0000.06018.71
5.5.210.0000.04118.71
5.5.200.0130.06818.71
5.5.190.0040.03918.71
5.5.180.0030.04118.71
5.5.160.0030.03818.71
5.5.150.0060.04818.71
5.5.140.0000.04118.71
5.5.130.0030.07318.71
5.5.120.0070.04018.71
5.5.110.0100.03118.71
5.5.100.0000.04118.71
5.5.90.0130.03018.71
5.5.80.0030.03718.71
5.5.70.0000.04118.71
5.5.60.0000.05318.71
5.5.50.0030.05318.71
5.5.40.0000.04118.71
5.5.30.0030.03918.71
5.5.20.0030.04218.71
5.5.10.0030.03818.71
5.5.00.0070.03318.71
5.4.450.0000.04919.48
5.4.440.0030.04219.31
5.4.430.0070.07719.34
5.4.420.0070.03519.30
5.4.410.0100.05019.34
5.4.400.0200.03919.14
5.4.390.0000.04219.03
5.4.380.0030.04918.91
5.4.370.0030.03618.92
5.4.360.0030.05018.91
5.4.350.0000.04619.16
5.4.340.0030.03818.94
5.4.320.0030.05719.20
5.4.310.0030.03818.91
5.4.300.0100.04819.11
5.4.290.0070.07418.88
5.4.280.0030.05418.82
5.4.270.0030.05019.00
5.4.260.0100.03219.07
5.4.250.0000.04918.82
5.4.240.0040.03618.97
5.4.230.0060.04219.07
5.4.220.0130.05319.20
5.4.210.0030.03719.02
5.4.200.0030.03619.15
5.4.190.0070.04319.04
5.4.180.0030.04418.98
5.4.170.0070.03319.02
5.4.160.0030.04719.00
5.4.150.0100.03119.15
5.4.140.0030.04518.71
5.4.130.0100.03718.71
5.4.120.0000.07218.71
5.4.110.0100.02918.71
5.4.100.0090.03818.71
5.4.90.0030.03418.71
5.4.80.0070.03118.71
5.4.70.0000.03818.71
5.4.60.0060.03118.71
5.4.50.0030.05118.71
5.4.40.0000.05218.71
5.4.30.0000.04718.71
5.4.20.0030.03418.71
5.4.10.0000.04318.71
5.4.00.0000.07118.71
5.3.290.0000.06818.71
5.3.280.0090.03118.71
5.3.270.0030.03618.71
5.3.260.0000.04518.71
5.3.250.0030.05518.71
5.3.240.0130.04718.71
5.3.230.0000.04118.71
5.3.220.0030.03618.71
5.3.210.0070.03818.71
5.3.200.0040.03618.71
5.3.190.0030.03518.71
5.3.180.0000.04118.71
5.3.170.0030.04518.71
5.3.160.0030.03818.71
5.3.150.0030.05218.71
5.3.140.0000.05118.71
5.3.130.0000.04018.71
5.3.120.0070.03418.71
5.3.110.0030.05918.71
5.3.100.0030.03518.71
5.3.90.0030.06318.71
5.3.80.0030.03318.71
5.3.70.0030.03618.71
5.3.60.0030.03718.71
5.3.50.0030.03518.71
5.3.40.0120.02818.71
5.3.30.0030.04018.71
5.3.20.0030.03318.71
5.3.10.0030.03518.71
5.3.00.0000.03618.71
5.2.170.0060.02618.71
5.2.160.0000.03618.71
5.2.150.0030.02818.71
5.2.140.0040.03218.71
5.2.130.0000.03018.71
5.2.120.0000.03718.71
5.2.110.0030.03018.71
5.2.100.0000.03118.71
5.2.90.0000.03018.71
5.2.80.0100.02618.71
5.2.70.0000.03318.71
5.2.60.0030.03818.71
5.2.50.0030.03318.71
5.2.40.0030.03518.71
5.2.30.0130.02918.71
5.2.20.0030.03118.71
5.2.10.0070.02818.71
5.2.00.0000.03018.71
5.1.60.0000.02618.71
5.1.50.0000.02718.71
5.1.40.0030.05218.71
5.1.30.0030.02718.71
5.1.20.0000.04818.71
5.1.10.0030.02318.71
5.1.00.0030.02618.71
5.0.50.0000.02318.71
5.0.40.0030.02618.71
5.0.30.0030.03218.71
5.0.20.0070.02018.71
5.0.10.0030.03418.71
5.0.00.0030.03418.71
4.4.90.0030.03218.71
4.4.80.0030.02018.71
4.4.70.0090.00918.71
4.4.60.0070.01418.71
4.4.50.0030.01618.71
4.4.40.0070.03718.71
4.4.30.0000.02618.71
4.4.20.0000.02318.71
4.4.10.0000.03218.71
4.4.00.0030.02218.71
4.3.110.0030.01718.71
4.3.100.0000.03618.71
4.3.90.0000.02518.71
4.3.80.0030.03818.71
4.3.70.0000.01618.71
4.3.60.0000.01818.71
4.3.50.0030.01318.71
4.3.40.0000.02718.71
4.3.30.0070.03018.71
4.3.20.0030.02018.71
4.3.10.0000.01718.71
4.3.00.0030.01318.71

preferences:
68.37 ms | 406 KiB | 5 Q