3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'test'; $password = 'test'; $streamContext = []; $streamContext['ssl'] = [ 'ciphers' => 'RC4-SHA', 'verify_peer' => false, 'verify_peer_name' => false ]; if (!empty($username) && !empty($password) ) { $streamContext['http'] = [ 'header' => "Authorization: Basic " . base64_encode("$username:$password") ]; } var_dump($streamContext);

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.0090.00916.50
8.3.50.0090.00616.36
8.3.40.0150.00018.82
8.3.30.0110.00418.67
8.3.20.0050.00220.38
8.3.10.0000.00821.85
8.3.00.0030.00517.63
8.2.180.0120.00316.50
8.2.170.0120.00322.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00220.92
8.2.110.0110.00022.14
8.2.100.0080.00417.90
8.2.90.0080.00019.35
8.2.80.0080.00018.05
8.2.70.0040.00417.63
8.2.60.0050.00318.03
8.2.50.0030.00618.10
8.2.40.0060.00320.47
8.2.30.0000.00821.06
8.2.20.0040.00418.18
8.2.10.0040.00418.12
8.2.00.0050.00218.05
8.1.280.0100.00725.92
8.1.270.0040.00422.06
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00523.92
8.1.230.0120.00017.76
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.47
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.86
8.1.160.0040.00418.93
8.1.150.0020.00518.86
8.1.140.0080.00019.63
8.1.130.0040.00418.84
8.1.120.0000.00717.35
8.1.110.0030.00517.43
8.1.100.0040.00417.47
8.1.90.0040.00417.36
8.1.80.0070.00017.43
8.1.70.0030.00317.40
8.1.60.0070.00017.63
8.1.50.0000.00817.50
8.1.40.0060.00317.58
8.1.30.0060.00317.64
8.1.20.0080.00017.65
8.1.10.0030.00617.63
8.1.00.0020.00517.52
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.34
8.0.270.0030.00317.16
8.0.260.0030.00316.87
8.0.250.0000.00617.02
8.0.240.0030.00316.99
8.0.230.0030.00316.86
8.0.220.0030.00316.86
8.0.210.0040.00416.79
8.0.200.0040.00416.88
8.0.190.0050.00316.94
8.0.180.0000.00716.93
8.0.170.0000.00716.90
8.0.160.0000.01016.84
8.0.150.0030.00316.80
8.0.140.0040.00416.74
8.0.130.0030.00313.36
8.0.120.0090.00016.88
8.0.110.0040.00416.74
8.0.100.0070.00016.71
8.0.90.0040.00416.75
8.0.80.0030.01516.77
8.0.70.0040.00416.78
8.0.60.0040.00416.71
8.0.50.0040.00416.75
8.0.30.0080.00917.12
8.0.20.0090.01017.40
8.0.10.0040.00416.96
8.0.00.0090.01316.98
7.4.330.0060.00015.55
7.4.320.0000.00716.58
7.4.300.0060.00016.57
7.4.290.0070.00016.59
7.4.280.0000.00816.54
7.4.270.0000.00616.53
7.4.260.0050.00516.56
7.4.250.0040.00416.48
7.4.240.0040.00416.39
7.4.230.0030.00316.67
7.4.220.0160.01316.60
7.4.210.0110.00416.70
7.4.200.0000.00716.59
7.4.160.0090.00716.47
7.4.150.0140.01017.40
7.4.140.0110.00817.86
7.4.130.0090.00916.61
7.4.120.0120.00616.59
7.4.110.0100.00616.40
7.4.100.0070.01516.44
7.4.90.0120.00416.50
7.4.80.0120.00619.39
7.4.70.0160.00016.32
7.4.60.0090.00616.49
7.4.50.0110.00016.37
7.4.40.0140.00316.50
7.4.30.0100.00616.47
7.4.00.0070.00815.04
7.3.330.0030.00313.19
7.3.320.0050.00013.16
7.3.310.0060.00016.20
7.3.300.0000.00616.27
7.3.290.0060.00916.30
7.3.280.0090.00616.29
7.3.270.0120.00617.40
7.3.260.0050.01416.49
7.3.250.0100.00916.36
7.3.240.0070.01016.52
7.3.230.0130.00416.66
7.3.210.0120.01216.57
7.3.200.0090.01316.31
7.3.190.0070.00716.34
7.3.180.0100.00616.59
7.3.170.0110.00616.60
7.3.160.0030.01316.34
7.3.120.0080.00815.80
7.3.110.0080.00816.04
7.3.100.0060.00816.13
7.3.90.0070.00715.97
7.3.80.0060.00915.90
7.3.70.0040.00916.06
7.3.60.0040.00816.00
7.3.50.0050.00716.04
7.3.40.0020.01216.00
7.3.30.0080.00316.05
7.3.20.0050.00917.00
7.3.10.0060.00716.73
7.3.00.0080.00516.84
7.2.330.0000.01816.66
7.2.320.0140.00416.70
7.2.310.0160.00016.53
7.2.300.0120.00916.55
7.2.290.0080.00816.59
7.2.250.0060.01315.05
7.2.240.0070.00915.92
7.2.230.0100.00616.04
7.2.220.0090.00716.14
7.2.210.0040.01115.88
7.2.200.0060.00816.16
7.2.190.0060.00916.05
7.2.180.0060.00916.06
7.2.170.0110.00416.06
7.2.160.0070.01017.15
7.2.150.0000.01317.15
7.2.140.0090.00617.15
7.2.130.0030.01016.95
7.2.120.0020.01316.90
7.2.110.0030.00917.02
7.2.100.0060.00916.87
7.2.90.0030.01016.97
7.2.80.0080.00516.92
7.2.70.0100.00516.97
7.2.60.0070.00716.90
7.2.50.0030.01116.92
7.2.40.0020.01217.01
7.2.30.0060.00816.90
7.2.20.0100.00716.96
7.2.10.0060.00616.85
7.2.00.0030.01117.52
7.1.330.0100.00316.44
7.1.320.0050.00816.43
7.1.310.0060.00416.51
7.1.300.0060.00616.44
7.1.290.0050.00816.48
7.1.280.0050.00916.40
7.1.270.0040.00916.36
7.1.260.0080.00516.34
7.1.250.0010.01116.22
7.1.240.0030.00715.64
7.1.230.0090.00615.66
7.1.220.0060.00315.47
7.1.210.0070.00715.70
7.1.200.0060.00315.74
7.1.190.0080.00315.49
7.1.180.0000.01115.77
7.1.170.0000.01015.85
7.1.160.0100.00315.70
7.1.150.0140.00015.36
7.1.140.0030.01015.83
7.1.130.0110.00715.77
7.1.120.0040.00715.67
7.1.110.0000.01415.60
7.1.100.0060.00716.94
7.1.90.0040.00815.78
7.1.80.0090.00315.79
7.1.70.0100.00616.51
7.1.60.0180.01025.45
7.1.50.0080.01225.30
7.1.40.0130.01125.00
7.1.30.0150.00825.16
7.1.20.0110.01025.18
7.1.10.0060.00816.13
7.1.00.0080.00616.26
7.0.330.0060.00615.46
7.0.320.0000.00815.00
7.0.310.0060.00915.05
7.0.300.0130.00015.00
7.0.290.0070.00415.41
7.0.280.0030.00615.16
7.0.270.0080.00815.45
7.0.260.0050.00515.23
7.0.250.0030.01015.36
7.0.240.0070.00715.15
7.0.230.0070.01015.26
7.0.220.0030.00715.48
7.0.210.0110.00415.32
7.0.200.0060.00816.10
7.0.190.0030.01016.12
7.0.180.0040.00715.77
7.0.170.0090.00915.69
7.0.160.0030.01215.86
7.0.150.0020.01315.62
7.0.140.0060.00715.68
7.0.130.0010.01115.87
7.0.120.0110.00415.85
7.0.110.0080.01015.85
7.0.100.0070.00415.96
7.0.90.0050.01015.74
7.0.80.0020.00916.01
7.0.70.0070.00715.72
7.0.60.0110.00515.71
7.0.50.0010.00915.94
7.0.40.0050.01014.80
7.0.30.0080.00614.91
7.0.20.0050.00715.00
7.0.10.0060.00814.82
7.0.00.0070.00815.01
5.6.380.0060.00614.10

preferences:
47.07 ms | 403 KiB | 5 Q