3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = array( 'User-Agent' => 'Mozilla', ); $headers = array_change_key_case($headers); // Convert all keys to lower $keyExists = array_key_exists('user-Agent', $headers); var_dump($keyExists);

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.5.10.0120.00816.77
8.5.00.0120.01219.96
8.4.150.0020.00014.05
8.4.140.0130.00817.59
8.4.130.0110.00918.70
8.4.120.0150.00718.62
8.4.110.0140.00520.52
8.4.100.0120.00817.61
8.4.90.0120.00820.23
8.4.80.0060.00220.52
8.4.70.0070.00820.52
8.4.60.0020.00620.43
8.4.50.0130.00720.37
8.4.40.0140.00319.41
8.4.30.0080.00019.38
8.4.20.0040.00417.79
8.4.10.0040.00419.54
8.3.280.0060.01418.34
8.3.270.0110.01016.42
8.3.260.0110.00816.48
8.3.250.0120.00616.50
8.3.240.0080.01116.57
8.3.230.0090.01116.42
8.3.220.0130.00618.81
8.3.210.0080.01116.41
8.3.200.0050.00416.41
8.3.190.0050.00416.97
8.3.180.0110.00719.09
8.3.170.0160.00317.23
8.3.160.0130.00518.30
8.3.150.0110.00816.60
8.3.140.0110.00716.59
8.3.130.0050.00316.64
8.3.120.0090.00618.86
8.3.110.0100.00720.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0030.00620.32
8.3.70.0090.00616.50
8.3.60.0150.00616.63
8.3.50.0090.00917.24
8.3.40.0110.00418.67
8.3.30.0130.00318.59
8.3.20.0050.00320.16
8.3.10.0040.00422.09
8.3.00.0000.00823.66
8.2.290.0120.00616.95
8.2.280.0110.00918.14
8.2.270.0070.01116.71
8.2.260.0120.00617.19
8.2.250.0040.01116.45
8.2.240.0060.00318.94
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0200.00026.77
8.2.200.0060.00316.50
8.2.190.0150.00416.58
8.2.180.0100.01316.32
8.2.170.0060.00922.96
8.2.160.0130.00419.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00719.32
8.2.120.0070.00026.35
8.2.110.0090.00022.24
8.2.100.0040.00718.16
8.2.90.0040.00419.65
8.2.80.0050.00318.04
8.2.70.0030.00618.03
8.2.60.0000.00718.02
8.2.50.0080.00018.10
8.2.40.0070.00020.60
8.2.30.0000.00719.24
8.2.20.0060.00318.05
8.2.10.0000.00718.00
8.2.00.0000.00718.04
8.1.330.0110.00715.95
8.1.320.0040.00617.95
8.1.310.0100.00716.54
8.1.300.0060.00316.07
8.1.290.0040.00418.88
8.1.280.0180.00025.92
8.1.270.0080.00023.83
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0100.00020.43
8.1.230.0110.00021.04
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.00
8.1.180.0020.00518.10
8.1.170.0000.00718.91
8.1.160.0040.00418.75
8.1.150.0000.00820.12
8.1.140.0040.00419.31
8.1.130.0030.00318.80
8.1.120.0000.00717.43
8.1.110.0040.00417.30
8.1.100.0000.01017.27
8.1.90.0000.00717.37
8.1.80.0050.00317.35
8.1.70.0000.00817.30
8.1.60.0050.00517.52
8.1.50.0040.00417.45
8.1.40.0030.00617.41
8.1.30.0000.00717.46
8.1.20.0000.00717.62
8.1.10.0040.00417.46
8.1.00.0060.00317.45
8.0.300.0040.00421.56
8.0.290.0080.00016.63
8.0.280.0070.00018.36
8.0.270.0040.00416.67
8.0.260.0030.00318.80
8.0.250.0000.00616.80
8.0.240.0080.00016.91
8.0.230.0030.00316.79
8.0.220.0070.00416.84
8.0.210.0050.00316.68
8.0.200.0030.00316.92
8.0.190.0000.00716.79
8.0.180.0040.00416.72
8.0.170.0050.00316.74
8.0.160.0060.00316.83
8.0.150.0000.00716.77
8.0.140.0000.00716.78
8.0.130.0050.00013.29
8.0.120.0000.00716.79
8.0.110.0040.00416.84
8.0.100.0000.00716.68
8.0.90.0040.00416.69
8.0.80.0120.00316.76
8.0.70.0040.00416.62
8.0.60.0000.00716.82
8.0.50.0040.00416.71
8.0.30.0110.00516.75
8.0.20.0130.00617.40
8.0.10.0000.00716.97
8.0.00.0060.01316.68
7.4.330.0000.00415.55
7.4.320.0000.00616.54
7.4.300.0060.00016.39
7.4.290.0030.00316.39
7.4.280.0000.00816.50
7.4.270.0030.00316.59
7.4.260.0030.00316.38
7.4.250.0060.00316.54
7.4.240.0000.00716.59
7.4.230.0030.00516.28
7.4.220.0070.01016.57
7.4.210.0090.00616.63
7.4.200.0030.00316.54
7.4.160.0070.01216.52
7.4.150.0150.00417.40
7.4.140.0070.01417.86
7.4.130.0030.01616.39
7.4.120.0100.01016.59
7.4.110.0070.01116.58
7.4.100.0030.02016.55
7.4.90.0110.00816.47
7.4.80.0120.00919.39
7.4.70.0140.00316.34
7.4.60.0130.00316.52
7.4.50.0070.01116.54
7.4.40.0070.01016.45
7.4.30.0030.01416.54
7.4.00.0000.01414.51
7.3.330.0050.00013.04
7.3.320.0020.00212.96
7.3.310.0070.00016.10
7.3.300.0000.00616.13
7.3.290.0030.00316.08
7.3.280.0070.00916.14
7.3.270.0100.01017.40
7.3.260.0120.00516.29
7.3.250.0070.01016.21
7.3.240.0070.01116.26
7.3.230.0120.00916.13
7.3.210.0130.00316.46
7.3.200.0070.01016.21
7.3.190.0120.00416.29
7.3.180.0160.00016.45
7.3.170.0120.01016.27
7.3.160.0060.00916.29
7.3.10.0070.00616.19
7.3.00.0140.00016.19
7.2.330.0070.01016.31
7.2.320.0120.00616.64
7.2.310.0030.01316.63
7.2.300.0100.00716.39
7.2.290.0030.01316.44
7.2.130.0030.00716.50
7.2.120.0040.01116.26
7.2.110.0030.01016.42
7.2.100.0160.00316.77
7.2.90.0040.01116.42
7.2.80.0160.00616.49
7.2.70.0120.00316.59
7.2.60.0020.01316.73
7.2.50.0030.00916.91
7.2.40.0060.00316.53
7.2.30.0060.00616.59
7.2.20.0000.01616.66
7.2.10.0070.00416.69
7.2.00.0060.00616.74
7.1.250.0090.00315.44
7.1.200.0080.00415.70
7.1.90.0070.00717.86
7.1.80.0080.00417.79
7.1.70.0060.00616.89
7.1.60.0100.01734.98
7.1.50.0160.00934.71
7.1.40.0160.01034.38
7.1.30.0110.01534.25
7.1.20.0100.02734.51
7.1.10.0030.01016.55
7.1.00.0070.00716.82
7.0.230.0030.01017.76
7.0.220.0030.00917.33
7.0.210.0080.00416.63
7.0.200.0030.00916.35
7.0.190.0030.00916.49
7.0.180.0060.00616.09
7.0.170.0080.00516.29
7.0.160.0030.01415.93
7.0.150.0040.00815.93
7.0.140.0060.00616.39
7.0.130.0000.01316.62
7.0.120.0060.00616.17
7.0.110.0040.00816.14
7.0.100.0000.01216.42
7.0.90.0070.01016.09
7.0.80.0030.01316.18
7.0.70.0000.01316.11
7.0.60.0070.00715.91
7.0.50.0030.00916.22
7.0.40.0030.01016.33
7.0.30.0040.01216.48
7.0.20.0100.00316.43
7.0.10.0000.01316.25
7.0.00.0060.00616.25

preferences:
38.94 ms | 403 KiB | 5 Q