3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Keys taken from the phpecc unit tests, but that library's still vulnerable * to several side-channels, so don't use it. */ $private = '-----BEGIN EC PRIVATE KEY----- MHQCAQEEIOZ0ioEAxAkAH/7gnZZWIvReXfez9ahXMpOwHzdEkvKcoAcGBSuBBAAK oUQDQgAE8bjuAc1ucXAA/LbG9i2DSSD8pdgsze34XPD+ddINq3IR/F7TbNvHJdYL alPIMqm0GJuVB+UGg5duB+921yHYPQ== -----END EC PRIVATE KEY-----'; $public = '-----BEGIN PUBLIC KEY----- MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE8bjuAc1ucXAA/LbG9i2DSSD8pdgsze34 XPD+ddINq3IR/F7TbNvHJdYLalPIMqm0GJuVB+UGg5duB+921yHYPQ== -----END PUBLIC KEY-----'; $privateKey = openssl_pkey_get_private($private); $publicKey = openssl_pkey_get_public($public); $data = /* file_get_contents("download.zip")*/ 'Foo bar'; $res = openssl_sign($data, $signature, $privateKey, OPENSSL_ALGO_SHA256); var_dump(base64_encode($signature)); $ok = openssl_verify($data, $signature, $publicKey, OPENSSL_ALGO_SHA256); var_dump($ok);

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.4.10.0030.00619.80
8.3.140.0030.00520.61
8.3.130.0090.00018.40
8.3.120.0090.00018.89
8.3.110.0060.00320.94
8.3.100.0040.01124.06
8.3.90.0100.00026.77
8.3.80.0030.00617.97
8.3.70.0100.00716.88
8.3.60.0140.00718.56
8.3.50.0070.00922.71
8.3.40.0110.00718.69
8.3.30.0180.00418.83
8.3.20.0040.00420.34
8.3.10.0070.00021.90
8.3.00.0060.00319.32
8.2.260.0110.00716.62
8.2.250.0110.00718.48
8.2.240.0030.00617.25
8.2.230.0080.00022.58
8.2.220.0070.00337.54
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0090.00617.00
8.2.180.0140.00316.88
8.2.170.0040.01122.96
8.2.160.0070.00719.36
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.04
8.2.120.0040.00426.35
8.2.110.0030.00722.23
8.2.100.0070.00417.84
8.2.90.0030.00519.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0060.00317.91
8.2.50.0050.00318.10
8.2.40.0050.00320.50
8.2.30.0030.00519.08
8.2.20.0000.00717.80
8.2.10.0040.00418.12
8.2.00.0000.00818.07
8.1.310.0120.00316.50
8.1.300.0080.00816.93
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0050.00223.82
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0040.00421.03
8.1.230.0080.00419.48
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0080.00417.22
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0030.00322.15
8.1.150.0070.00020.59
8.1.140.0040.00419.44
8.1.130.0030.00317.53
8.1.120.0070.00317.31
8.1.110.0050.00217.40
8.1.100.0000.00717.33
8.1.90.0030.00517.45
8.1.80.0030.00517.45
8.1.70.0020.00517.41
8.1.60.0000.00717.56
8.1.50.0030.00617.57
8.1.40.0030.00517.56
8.1.30.0030.00617.68
8.1.20.0040.00417.63
8.1.10.0040.00417.66
8.1.00.0000.00817.58
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.40
8.0.270.0030.00417.09
8.0.260.0080.00017.12
8.0.250.0000.00716.89
8.0.240.0000.00716.86
8.0.230.0050.00316.99
8.0.220.0080.00016.95
8.0.210.0070.00016.86
8.0.200.0000.00717.00
8.0.190.0030.01016.84
8.0.180.0040.00416.98
8.0.170.0040.00416.82
8.0.160.0000.00716.95
8.0.150.0040.00416.86
8.0.140.0000.01116.92
8.0.130.0050.00013.31
8.0.120.0060.00316.88
8.0.110.0050.00316.80
8.0.100.0000.00717.02
8.0.90.0000.00716.80
8.0.80.0030.02016.88
8.0.70.0000.00816.92
8.0.60.0000.00816.90
8.0.50.0070.00016.95
8.0.30.0080.01017.17
8.0.20.0100.00917.40
8.0.10.0030.00517.02
8.0.00.0000.01716.75
7.4.330.0000.00815.08
7.4.320.0000.00716.36
7.4.300.0000.00716.61
7.4.290.0080.00016.52
7.4.280.0000.00916.51
7.4.270.0070.00016.59
7.4.260.0070.00016.51
7.4.250.0050.00216.58
7.4.240.0040.00416.52
7.4.230.0030.00316.52
7.4.220.0120.00816.61
7.4.210.0070.01116.55
7.4.200.0070.00016.36
7.4.150.0060.01217.40
7.4.140.0100.00917.86
7.4.130.0090.00816.45
7.4.120.0120.00416.56
7.4.110.0040.01316.47
7.4.100.0180.00016.44
7.4.90.0100.00716.53
7.4.80.0070.01019.39
7.4.70.0180.00016.39
7.4.60.0090.01316.52
7.4.50.0080.00416.33
7.4.40.0110.00616.46
7.4.30.0070.01016.62
7.4.00.0100.00715.08
7.3.330.0000.00513.18
7.3.320.0060.00013.03
7.3.310.0000.00716.10
7.3.300.0020.00516.14
7.3.290.0040.00416.24
7.3.280.0060.01016.27
7.3.270.0140.00317.40
7.3.260.0100.00716.45
7.3.250.0090.01416.32
7.3.240.0130.00416.30
7.3.230.0100.00716.55
7.3.210.0100.00716.23
7.3.200.0150.00316.24
7.3.190.0060.00916.39
7.3.180.0060.01016.34
7.3.170.0100.00616.44
7.3.160.0090.00916.50
7.3.30.0110.00514.63
7.3.20.3370.00714.77
7.3.10.2120.00414.70
7.3.00.3980.00814.72
7.2.330.0100.01016.29
7.2.320.0110.00816.52
7.2.310.0090.00916.54
7.2.300.0070.01116.49
7.2.290.0040.01216.40
7.2.160.0070.00914.59
7.2.150.4460.00814.81
7.2.140.3420.00914.68
7.2.130.3570.01214.91
7.2.120.2330.00714.70
7.2.110.2120.00714.83
7.2.100.2490.00814.71
7.2.90.1100.00414.71
7.2.80.1380.00714.65
7.2.70.0280.00914.87
7.2.60.0460.00814.86
7.2.50.0480.00914.68
7.2.40.1040.00714.73
7.2.30.0670.00914.64
7.2.20.1190.00814.72
7.2.10.0770.00814.63
7.2.00.0770.01014.74
7.1.270.3540.00813.67
7.1.260.4290.00913.64
7.1.250.2790.00713.65
7.1.240.1850.00513.62
7.1.230.1620.00813.54
7.1.220.1440.00313.76
7.1.210.0310.01213.67
7.1.200.0590.00613.56
7.1.190.0990.00413.60
7.1.180.1470.00613.61
7.1.170.0640.00413.67
7.1.160.1240.00813.66
7.1.150.0710.01213.52
7.1.140.0810.00613.50
7.1.130.1220.00913.68
7.1.120.1230.00713.64
7.1.110.0700.00713.72
7.1.100.1430.00613.46
7.1.90.0880.00613.65
7.1.80.0910.01013.68
7.1.70.0870.01013.82
7.1.60.0740.00713.79
7.1.50.0520.00613.75
7.1.40.0580.00313.42
7.1.30.0690.00713.81
7.1.20.0550.00513.65
7.1.10.0530.00613.57
7.1.00.0720.00913.68
7.0.330.3500.01113.41
7.0.320.0660.00613.38
7.0.310.0550.00613.27
7.0.300.1000.00313.27
7.0.290.1170.00713.49
7.0.280.0780.01013.46
7.0.270.1100.01113.41
7.0.260.0590.00413.29
7.0.250.1400.01013.43
7.0.240.1110.01013.50
7.0.230.1360.00913.41
7.0.220.1490.01113.54
7.0.210.0920.01113.59
7.0.200.0530.00713.47
7.0.190.0510.01013.49
7.0.180.0590.00513.39
7.0.170.0550.00913.51
7.0.160.0790.00213.47
7.0.150.0530.00913.56
7.0.140.1490.00813.41
7.0.130.0720.00813.49
7.0.120.0450.01013.61
7.0.110.1230.00213.46
7.0.100.0520.00613.47
7.0.90.1990.00313.46
7.0.80.0800.00913.41
7.0.70.0540.00813.43
7.0.60.0750.00613.36
7.0.50.0400.00713.48
7.0.40.0550.00813.40
7.0.30.0670.00913.40
7.0.20.0430.00913.39
7.0.10.0670.00713.43
7.0.00.0660.00813.42
5.6.400.0120.00514.28
5.6.390.0070.00714.15
5.6.380.0080.00814.21
5.6.370.0120.00714.33
5.6.360.0130.01014.08
5.6.350.0080.01414.08
5.6.340.0170.00613.97
5.6.330.0140.00714.13
5.6.320.0130.00614.08
5.6.310.0080.01314.23
5.6.300.0140.00514.16
5.6.290.0170.00913.98
5.6.280.0100.00814.24
5.6.270.0150.01014.07
5.6.260.0120.01014.42
5.6.250.0100.00914.24
5.6.240.0140.00514.13
5.6.230.0100.01014.15
5.6.220.0090.00913.93
5.6.210.0120.00713.97
5.6.200.0090.00713.99
5.6.190.0060.01214.12
5.6.180.0110.00814.15
5.6.170.0080.01314.20
5.6.160.0120.01114.09
5.6.150.0150.00614.02
5.6.140.0150.00714.03
5.6.130.0120.01014.06
5.6.120.0100.00914.10
5.6.110.0110.00814.14
5.6.100.0170.00614.06
5.6.90.0140.00614.05
5.6.80.0150.00414.02
5.6.70.0110.00714.02
5.6.60.0140.00614.06
5.6.50.0130.00913.90
5.6.40.0120.01013.97
5.6.30.0150.00614.06
5.6.20.0100.01013.99
5.6.10.0110.00613.97
5.6.00.0110.00614.08
5.5.380.0120.00612.99
5.5.370.0080.00912.49
5.5.360.0100.00612.42
5.5.350.0120.00612.48
5.5.340.0110.00712.48
5.5.330.0050.01012.48
5.5.320.0120.00512.38
5.5.310.0120.00612.41
5.5.300.0120.00512.38
5.5.290.0160.00212.31
5.5.280.0070.01112.47
5.5.270.0060.01012.43
5.5.260.0120.00812.52
5.5.250.0110.00612.35
5.5.240.0090.00812.35
5.5.230.0060.01312.21
5.5.220.0080.00912.28
5.5.210.0100.00512.38
5.5.200.0060.00912.43
5.5.190.0100.00812.43
5.5.180.0090.00812.40
5.5.170.0130.00513.97
5.5.160.0090.00512.29
5.5.150.0150.00612.35
5.5.140.0060.00912.40
5.5.130.0060.01112.44
5.5.120.0090.00712.34
5.5.110.0110.00412.40
5.5.100.0130.00312.37
5.5.90.0080.00712.41
5.5.80.0100.00612.43
5.5.70.0100.00712.31
5.5.60.0050.01212.28
5.5.50.0140.00412.31
5.5.40.0110.00312.21
5.5.30.0110.00612.41
5.5.20.0150.00412.36
5.5.10.0110.00512.52
5.5.00.0110.00612.46

preferences:
27.95 ms | 403 KiB | 5 Q