3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ciphers = openssl_get_cipher_methods(); $ciphers_and_aliases = openssl_get_cipher_methods(true); $cipher_aliases = array_diff($ciphers_and_aliases, $ciphers); //print_r($ciphers); //print_r($cipher_aliases); $context = stream_context_create(['ssl' => [ 'ciphers' => 'ECDHE-ECDSA-AES128-SHA' ]]); $timeout = 42; $connFlags = STREAM_CLIENT_CONNECT; // Works as before $sock = stream_socket_client('tls://best-free-games.eu:443', $errno, $errstr, $timeout, $connFlags, $context); // Negotiates SSLv3, TLSv1.1 or TLSv1.2 because tls:// default is overridden by the context $context = stream_context_create(['ssl' => [ 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_SSLv3_CLIENT ]]); $sock = stream_socket_client('tls://github.com:443', $errno, $errstr, $timeout, $connFlags, $context);

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.0140.00716.63
8.3.50.0050.01422.11
8.3.40.0120.00618.82
8.3.30.0060.00918.40
8.3.20.0070.00020.18
8.3.10.0040.00423.41
8.3.00.0040.00419.50
8.2.180.0060.00918.54
8.2.170.0040.01122.96
8.2.160.0150.00020.20
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0110.00017.63
8.2.120.0040.00426.35
8.2.110.0100.00021.13
8.2.100.0090.00317.84
8.2.90.0030.00519.16
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0080.00018.04
8.2.50.0060.00318.07
8.2.40.0030.00519.45
8.2.30.0030.00320.66
8.2.20.0070.00317.64
8.2.10.0040.00417.95
8.2.00.0040.00418.02
8.1.280.0090.00625.92
8.1.270.0070.00722.20
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0110.00019.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0040.00417.64
8.1.180.0070.00018.10
8.1.170.0000.00818.59
8.1.160.0050.00221.98
8.1.150.0040.00418.78
8.1.140.0040.00419.56
8.1.130.0030.00317.65
8.1.120.0000.00717.38
8.1.110.0040.00417.41
8.1.100.0050.00317.33
8.1.90.0070.00017.36
8.1.80.0040.00417.36
8.1.70.0000.00817.23
8.1.60.0040.00417.52
8.1.50.0030.00517.36
8.1.40.0040.00417.48
8.1.30.0000.00817.64
8.1.20.0040.00417.59
8.1.10.0040.00417.56
8.1.00.0000.00917.47
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0040.00418.42
8.0.270.0000.00817.16
8.0.260.0060.00017.07
8.0.250.0000.00616.96
8.0.240.0030.00316.95
8.0.230.0060.00317.00
8.0.220.0080.00016.91
8.0.210.0040.00416.83
8.0.200.0000.00617.00
8.0.190.0060.00316.88
8.0.180.0000.00816.89
8.0.170.0080.00016.95
8.0.160.0000.00716.99
8.0.150.0000.00716.75
8.0.140.0000.00716.87
8.0.130.0030.00313.41
8.0.120.0040.00416.77
8.0.110.0000.00716.83
8.0.100.0000.00716.91
8.0.90.0080.00016.95
8.0.80.0090.00616.93
8.0.70.0050.00316.72
8.0.60.0000.00716.94
8.0.50.0030.00516.83
8.0.30.0090.00916.89
8.0.20.0090.01017.40
8.0.10.0040.00416.86
8.0.00.0090.00816.57
7.4.330.0020.00216.80
7.4.320.0030.00316.48
7.4.300.0070.00016.48
7.4.290.0070.00016.48
7.4.280.0040.00416.56
7.4.270.0000.00716.42
7.4.260.0030.00316.54
7.4.250.0000.00716.36
7.4.240.0030.00516.56
7.4.230.0000.00716.33
7.4.220.0090.00916.67
7.4.210.0110.00316.54
7.4.200.0000.00716.66
7.4.160.0090.00616.47
7.4.150.0040.01317.40
7.4.140.0120.00917.86
7.4.130.0100.00916.51
7.4.120.0100.00816.51
7.4.110.0120.00616.44
7.4.100.0150.00716.48
7.4.90.0120.00616.33
7.4.80.0140.00619.39
7.4.70.0100.01316.59
7.4.60.0090.00616.70
7.4.50.0090.00616.64
7.4.40.0120.00616.46
7.4.30.0030.01316.59
7.4.00.0140.00314.92
7.3.330.0000.00913.07
7.3.320.0000.00813.11
7.3.310.0070.00016.29
7.3.300.0030.00316.15
7.3.290.0080.00816.26
7.3.280.0110.00916.29
7.3.270.0100.00717.40
7.3.260.0060.01216.53
7.3.250.0100.00916.29
7.3.240.0080.00816.35
7.3.230.0130.00716.39
7.3.210.0030.01916.29
7.3.200.0060.00916.32
7.3.190.0060.00916.49
7.3.180.0070.01416.35
7.3.170.0100.00716.52
7.3.160.0110.00416.32
7.3.00.0080.00816.42
7.2.330.0090.00916.48
7.2.320.0070.01316.50
7.2.310.0070.01016.30
7.2.300.0070.01016.67
7.2.290.0030.01316.38
7.2.130.0080.00816.88
7.2.120.0140.00716.55
7.2.110.0170.00316.66
7.2.100.0040.01216.46
7.2.90.0070.01616.70
7.2.80.0180.00616.61
7.2.70.0090.00616.79
7.2.60.0040.00916.85
7.2.50.0130.00716.62
7.2.40.0130.00616.66
7.2.30.0130.00616.46
7.2.20.0100.00316.52
7.2.10.0130.00716.84
7.2.00.0030.01116.75
7.1.250.0080.00815.64
7.1.240.0050.01115.33
7.1.230.0120.00615.64
7.1.220.0090.00915.54
7.1.210.0130.00615.44
7.1.200.0090.00515.43
7.1.190.0090.01515.64
7.1.180.0100.01015.53
7.1.170.0070.01115.27
7.1.160.0000.01415.36
7.1.150.0030.01215.53
7.1.140.0040.00815.61
7.1.130.0090.00415.50
7.1.120.0000.01315.51
7.1.110.0120.00615.60
7.1.100.0100.00015.69
7.1.90.0110.00415.35
7.1.80.0110.00015.59
7.1.70.0080.00616.39
7.1.60.0070.00416.57
7.1.50.0050.01216.44
7.1.40.0130.00015.22
7.1.30.0040.00715.36
7.1.20.0130.00315.43
7.1.10.0000.00815.20
7.1.00.0090.04019.03
7.0.330.0050.01115.22
7.0.320.0030.00715.10
7.0.310.0120.00814.83
7.0.300.0120.00814.81
7.0.290.0070.01015.09
7.0.280.0090.00415.32
7.0.270.0060.00915.24
7.0.260.0090.00415.10
7.0.250.0040.00715.23
7.0.240.0130.00315.18
7.0.230.0110.00015.18
7.0.220.0080.00315.02
7.0.210.0030.00614.78
7.0.200.0050.01016.01
7.0.190.0030.01215.18
7.0.180.0100.00315.34
7.0.170.0100.00614.93
7.0.160.0070.00715.16
7.0.150.0030.00714.61
7.0.140.0070.01115.13
7.0.130.0030.01015.11
7.0.120.0110.00914.93
7.0.110.0180.00614.87
7.0.100.0290.01015.03
7.0.90.0210.01315.43
7.0.80.0240.01215.29
7.0.70.0250.00315.32
7.0.60.0110.04417.94
7.0.50.0070.04016.71
7.0.40.0030.02916.84
7.0.30.0200.03317.01
7.0.20.0080.03116.76
7.0.10.0090.04316.96
7.0.00.0050.02816.87
5.6.380.0060.00813.68
5.6.370.0000.00914.27
5.6.360.0030.01614.11
5.6.350.0030.01014.33
5.6.340.0070.00414.21
5.6.330.0070.00314.11
5.6.320.0090.00314.24
5.6.310.0100.00013.88
5.6.300.0030.01013.96
5.6.290.0070.00713.79
5.6.280.0090.03617.77
5.6.270.0040.01114.15
5.6.260.0170.00314.04
5.6.250.0080.01114.16
5.6.240.0090.00614.32
5.6.230.0140.01114.01
5.6.220.0070.01113.88
5.6.210.0090.04317.65
5.6.200.0030.03016.26
5.6.190.0040.02917.55
5.6.180.0430.03517.60
5.6.170.0170.04517.29
5.6.160.0090.03717.46
5.6.150.0020.02716.45
5.6.140.0080.04316.49
5.6.130.0100.04516.28
5.6.120.0080.04017.66
5.6.110.0110.04217.60
5.6.100.0030.03117.82
5.6.90.0130.01817.81
5.6.80.0100.04017.48
5.6.70.0040.00813.88
5.6.60.0030.01014.03
5.6.50.0040.00714.00
5.6.40.0000.01014.05
5.6.30.0000.00814.02
5.6.20.0030.01013.72
5.6.10.0060.00614.05
5.6.00.0050.00214.26
5.5.380.0000.00811.18
5.5.370.0060.00311.18
5.5.360.0030.00511.18
5.5.350.2030.02315.97
5.5.340.0050.03514.82
5.5.330.0090.02516.09
5.5.320.0100.03815.95
5.5.310.0180.03415.96
5.5.300.0070.04414.77
5.5.290.0020.04814.77
5.5.280.0050.02216.26
5.5.270.0050.04416.18
5.5.260.0050.04016.18
5.5.250.0080.02516.15
5.5.240.0130.01515.85
5.5.230.0060.00311.18
5.5.220.0040.00411.18
5.5.210.0030.00311.18
5.5.200.0030.00711.18
5.5.190.0030.00611.18
5.5.180.0000.00911.18
5.5.170.0060.00311.18
5.5.160.0000.01011.18
5.5.150.0000.00611.18
5.5.140.0030.00311.18
5.5.130.0060.00611.18
5.5.120.0060.00611.18
5.5.110.0050.00311.18
5.5.100.0000.00811.18
5.5.90.0040.00411.18
5.5.80.0030.00811.18
5.5.70.0030.00711.18
5.5.60.0100.00311.18
5.5.50.0030.00611.18
5.5.40.0030.00311.18
5.5.30.0030.00711.18
5.5.20.0030.01011.18
5.5.10.0000.00911.18
5.5.00.0030.00611.18

preferences:
53.53 ms | 401 KiB | 5 Q