3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key1 = openssl_pkey_new( [ 'ec' => [ 'curve_name' => 'prime192v1', 'x' => hex2bin('42ea6dd9969dd2a61fea1aac7f8e98edcc896c6e55857cc0'), 'y' => hex2bin('dfbe5d7c61fac88b11811bde328e8a0d12bf01a9d204b523'), ], ] ); $key2 = openssl_pkey_new( [ 'ec' => [ 'curve_name' => 'prime192v1', 'd' => hex2bin('f269c158637482aad644cd692dd1d3ef2c8a7c49e389f7f6'), ], ] ); // Should print 803d8ab2e5b6e6fca715737c3a82f7ce3c783124f6d51cd0 echo bin2hex(openssl_pkey_derive($key1, $key2));

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.70.0150.00316.88
8.3.60.0150.00618.43
8.3.50.0100.00718.19
8.3.40.0110.00718.64
8.3.30.0080.00818.74
8.3.20.0000.00721.74
8.3.10.0070.00021.91
8.3.00.0000.00819.67
8.2.190.0040.01116.63
8.2.180.0190.00016.38
8.2.170.0040.01122.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0060.00326.16
8.2.120.0040.00418.64
8.2.110.0080.00020.47
8.2.100.0040.00717.72
8.2.90.0000.00817.84
8.2.80.0060.00319.02
8.2.70.0050.00317.63
8.2.60.0060.00317.93
8.2.50.0000.01018.10
8.2.40.0000.00720.47
8.2.30.0060.00319.18
8.2.20.0070.00018.08
8.2.10.0040.00417.91
8.2.00.0060.00317.93
8.1.280.0110.00725.92
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00020.91
8.1.230.0070.00321.03
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0030.00517.13
8.1.180.0080.00318.10
8.1.170.0040.00418.36
8.1.160.0030.00518.77
8.1.150.0040.00420.70
8.1.140.0050.00317.62
8.1.130.0000.00717.33
8.1.120.0030.00317.38
8.1.110.0000.00717.33
8.1.100.0080.00317.36
8.1.90.0000.00917.34
8.1.80.0040.00417.38
8.1.70.0000.00817.29
8.1.60.0040.00417.36
8.1.50.0070.00017.45
8.1.40.0000.00717.30
8.1.30.0040.00417.56
8.1.20.0000.00717.58
8.1.10.0080.00017.50
8.1.00.0040.00417.34
8.0.300.0000.00720.05
8.0.290.0030.00516.63
8.0.280.0000.00718.32
8.0.270.0030.00316.84
8.0.260.0030.00316.81
8.0.250.0000.00716.85
8.0.240.0030.00616.96
8.0.230.0030.00316.91
8.0.220.0090.00016.88
8.0.210.0070.00016.91
8.0.200.0070.00017.00
8.0.190.0050.00316.85
8.0.180.0070.00016.92
8.0.170.0030.00616.82
8.0.160.0000.00716.88
8.0.150.0040.00416.83
8.0.140.0000.00716.84
8.0.130.0050.00013.40
8.0.120.0000.00716.77
8.0.110.0050.00316.79
8.0.100.0070.00016.67
8.0.90.0050.00316.88
8.0.80.0040.01116.77
8.0.70.0050.00216.88
8.0.60.0000.00716.84
8.0.50.0040.00416.90
8.0.30.0150.00417.03
8.0.20.0120.00717.40
8.0.10.0040.00416.83
8.0.00.0110.00616.63
7.4.330.0030.00315.55
7.4.320.0000.00916.41
7.4.300.0070.00016.30
7.4.290.0000.00716.34
7.4.280.0090.00016.36
7.4.270.0050.00316.44
7.4.260.0000.00716.53
7.4.250.0050.00316.55
7.4.240.0030.00316.52
7.4.230.0040.00416.55
7.4.220.0040.00416.43
7.4.210.0110.00716.57
7.4.200.0000.00716.34
7.4.160.0100.00816.43
7.4.140.0080.00917.86
7.4.130.0030.01616.40
7.4.120.0100.00816.49
7.4.110.0140.00316.52
7.4.100.0080.00816.52
7.4.90.0100.01016.41
7.4.80.0100.01719.39
7.4.70.0130.00616.63
7.4.60.0100.00716.38
7.4.50.0070.01016.70
7.4.40.0100.00616.56
7.4.10.0090.00914.89
7.4.00.0110.00614.95
7.3.330.0050.00013.20
7.3.320.0060.00013.21
7.3.310.0030.00316.18
7.3.300.0030.00316.18
7.3.290.0000.00716.27
7.3.280.0100.00816.26
7.3.260.0090.00916.36
7.3.240.0070.01116.39
7.3.230.0030.01316.43
7.3.210.0130.01016.49
7.3.200.0090.00616.62
7.3.190.0080.01616.44
7.3.180.0070.01016.44
7.3.170.0070.01016.24
7.3.160.0120.00316.43
7.3.130.0070.00715.04
7.3.120.0080.00814.93
7.3.110.0120.00914.89
7.3.100.0060.00614.77
7.3.90.0100.00714.77
7.3.80.0110.00414.96
7.3.70.0030.00914.62
7.3.60.0060.00614.50
7.3.50.0030.00714.84
7.3.40.0110.00414.61
7.3.30.0070.01014.80
7.3.20.0110.00616.66
7.3.10.0070.00316.63
7.3.00.0060.00316.77
7.2.330.0070.01016.39
7.2.320.0060.01916.19
7.2.310.0140.00416.73
7.2.300.0100.00716.54
7.2.290.0030.01416.60
7.2.260.0070.01115.18
7.2.250.0030.01414.86
7.2.240.0000.01314.98
7.2.230.0000.01615.09
7.2.220.0000.01314.88
7.2.210.0070.00714.75
7.2.200.0030.00914.93
7.2.190.0000.01414.82
7.2.180.0030.00614.95
7.2.170.0030.01314.71
7.2.160.0070.00714.87
7.2.150.0090.00316.93
7.2.140.0000.00916.75
7.2.130.0110.00316.83
7.2.120.0060.00616.75
7.2.110.0040.00816.59
7.2.100.0000.01516.80
7.2.90.0090.00316.88
7.2.80.0030.01316.61
7.2.70.0110.00416.85
7.2.60.0070.00716.88
7.2.50.0030.01316.82
7.2.40.1060.01217.64
7.2.30.0570.00917.49
7.2.20.0800.00917.31
7.2.10.0580.01317.52
7.2.00.0710.01117.31
7.1.330.0070.00715.83
7.1.320.0000.01015.59
7.1.310.0100.00015.70
7.1.300.0100.00015.72
7.1.290.0100.00015.45
7.1.280.0000.01115.78
7.1.270.0070.01115.50
7.1.260.0120.00615.35
7.1.250.0030.00715.67
7.1.240.0060.00315.64
7.1.230.0070.00715.66
7.1.220.0070.00715.61
7.1.210.0030.00615.68
7.1.200.0050.00715.58
7.1.190.0060.01015.61
7.1.180.0090.00615.55
7.1.170.0040.01515.57
7.1.160.0610.01116.22
7.1.150.0610.01116.40
7.1.140.1360.00916.32
7.1.130.0570.01016.28
7.1.120.0830.01216.33
7.1.110.0700.01316.03
7.1.100.0710.01315.77
7.1.90.0780.01115.81
7.1.80.0710.01115.92
7.1.70.0630.01115.55
7.1.60.0860.01324.56
7.1.50.1010.01124.32
7.1.40.0840.01624.12
7.1.30.0950.01224.08
7.1.20.0810.01124.15
7.1.10.0950.01115.25
7.1.00.0900.01115.20
7.0.330.0040.01114.92
7.0.320.0070.01015.32
7.0.310.0120.00315.26
7.0.300.0080.00615.19
7.0.290.0030.00615.47
7.0.280.0070.00715.45
7.0.270.0030.00715.35
7.0.260.0090.00615.28
7.0.250.0000.01215.01
7.0.240.0060.00615.25
7.0.230.0140.00015.22
7.0.220.0030.01015.24
7.0.210.0150.00315.43
7.0.200.0000.01015.28
7.0.190.0060.00315.27
7.0.180.0090.00315.39
7.0.170.0000.01315.28
7.0.160.0090.00315.31
7.0.150.0040.00415.36
7.0.140.0030.01015.18
7.0.130.0030.01015.31
7.0.120.0040.00415.44
7.0.110.0050.00315.45
7.0.100.0030.00915.26
7.0.90.0030.00915.05
7.0.80.0000.01115.21
7.0.70.0070.00315.54
7.0.60.0030.00615.16
7.0.50.0090.00015.30
7.0.40.0030.00913.46
7.0.30.0070.00713.03
7.0.20.0000.00813.33
7.0.10.0100.00313.25
7.0.00.0030.00513.46
5.6.400.0100.00314.30
5.6.390.0000.01414.09
5.6.380.0100.00314.12
5.6.370.0030.01113.98
5.6.360.0080.00613.82
5.6.350.0070.01013.78
5.6.340.0060.00614.09
5.6.330.0110.00713.97
5.6.320.0030.00713.78
5.6.310.0050.00514.27
5.6.300.0080.00014.19
5.6.290.0040.00714.28
5.6.280.0030.01014.26
5.6.270.0070.00414.23
5.6.260.0070.00714.01
5.6.250.0120.00013.89
5.6.240.0000.01414.16
5.6.230.0090.00314.07
5.6.220.0060.00314.13
5.6.210.0060.00913.96
5.6.200.0080.00414.19
5.6.190.0100.00313.90
5.6.180.0040.01114.07
5.6.170.0030.00714.18
5.6.160.0060.00314.08
5.6.150.0040.01114.13
5.6.140.0070.01014.11
5.6.130.0030.01314.07
5.6.120.0030.01413.85
5.6.110.0070.01014.13
5.6.100.0070.00413.83
5.6.90.0000.01114.19
5.6.80.0030.00713.89
5.6.70.0090.00614.13
5.6.60.0060.00614.28
5.6.50.0030.00913.91
5.6.40.0000.01213.93
5.6.30.0040.00813.87
5.6.20.0100.00314.29
5.6.10.0060.00814.15
5.6.00.0120.00414.05

preferences:
45.64 ms | 401 KiB | 5 Q