3v4l.org

run code in 300+ PHP versions simultaneously
<?php $compat_level = 'foo'; $headers['X-EBAY-API-COMPATIBILITY-LEVEL'] = $compat_level; var_dump($headers); $headers = array ( 'X-EBAY-API-COMPATIBILITY-LEVEL: ' . $compat_level ); var_dump($headers); // But I think you may have meant: $headers = array( 'X-EBAY-API-COMPATIBILITY-LEVEL' => $compat_level ); var_dump($headers);

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.0090.00820.11
8.5.00.0140.00720.11
8.4.160.0060.00421.62
8.4.150.0020.00014.05
8.4.140.0160.00417.84
8.4.130.0150.00417.73
8.4.120.0060.00624.04
8.4.110.0100.01122.45
8.4.100.0120.00818.90
8.4.90.0140.00918.88
8.4.80.0030.00520.45
8.4.70.0100.00617.96
8.4.60.0110.00918.93
8.4.50.0100.01019.02
8.4.40.0080.00417.67
8.4.30.0120.00317.83
8.4.20.0100.01020.60
8.4.10.0070.00417.55
8.3.290.0110.00920.94
8.3.280.0100.01018.52
8.3.270.0100.00916.46
8.3.260.0080.00916.68
8.3.250.0110.00818.95
8.3.240.0140.00517.05
8.3.230.0110.00818.93
8.3.220.0100.00618.88
8.3.210.0070.00816.54
8.3.200.0040.00516.64
8.3.190.0120.00617.09
8.3.180.0100.00817.14
8.3.170.0050.00318.78
8.3.160.0150.00417.02
8.3.150.0160.00317.18
8.3.140.0110.00716.39
8.3.130.0080.00018.34
8.3.120.0060.00320.65
8.3.110.0090.00020.94
8.3.100.0050.00324.06
8.3.90.0110.00426.77
8.3.80.0070.00318.43
8.3.70.0200.00016.50
8.3.60.0090.00618.31
8.3.50.0070.01122.11
8.3.40.0070.01419.02
8.3.30.0070.00718.67
8.3.20.0070.00018.97
8.3.10.0060.00321.90
8.3.00.0080.00021.01
8.2.300.0110.01022.15
8.2.290.0090.00920.33
8.2.280.0100.00918.52
8.2.270.0110.00717.20
8.2.260.0080.00016.53
8.2.250.0140.00016.90
8.2.240.0090.00018.85
8.2.230.0080.00022.58
8.2.220.0030.00937.54
8.2.210.0000.00726.77
8.2.200.0040.01416.63
8.2.190.0110.00816.88
8.2.180.0110.00418.16
8.2.170.0070.00722.96
8.2.160.0040.01118.88
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00722.25
8.2.120.0000.00726.35
8.2.110.0030.00619.27
8.2.100.0090.00317.90
8.2.90.0030.00719.17
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0060.00320.66
8.2.30.0000.00819.32
8.2.20.0080.00018.14
8.2.10.0000.00718.14
8.2.00.0050.00317.63
8.1.340.0020.00717.66
8.1.330.0080.01122.14
8.1.320.0110.00916.22
8.1.310.0060.00318.54
8.1.300.0080.01118.39
8.1.290.0060.00330.84
8.1.280.0130.00625.92
8.1.270.0000.00822.05
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00724.02
8.1.230.0050.00617.76
8.1.220.0060.00317.79
8.1.210.0060.00318.77
8.1.200.0060.00317.38
8.1.190.0050.00317.25
8.1.180.0070.00018.10
8.1.170.0050.00318.75
8.1.160.0020.00518.90
8.1.150.0000.00720.19
8.1.140.0030.00519.46
8.1.130.0060.00317.83
8.1.120.0050.00217.46
8.1.110.0000.00817.34
8.1.100.0000.00717.49
8.1.90.0040.00417.41
8.1.80.0030.00517.49
8.1.70.0040.00417.46
8.1.60.0000.00717.60
8.1.50.0000.00817.41
8.1.40.0040.00417.51
8.1.30.0060.00317.73
8.1.20.0070.00017.63
8.1.10.0040.00417.57
8.1.00.0040.00417.40
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.29
8.0.260.0060.00017.28
8.0.250.0060.00016.94
8.0.240.0030.00516.93
8.0.230.0000.00716.98
8.0.220.0000.00716.89
8.0.210.0000.00816.91
8.0.200.0000.00616.87
8.0.190.0060.00616.89
8.0.180.0030.00316.86
8.0.170.0040.00416.95
8.0.160.0000.00716.80
8.0.150.0000.00816.88
8.0.140.0000.00816.75
8.0.130.0000.00813.42
8.0.120.0040.00416.82
8.0.110.0070.00016.85
8.0.100.0000.00716.94
8.0.90.0040.00416.93
8.0.80.0090.01216.89
8.0.70.0000.00816.70
8.0.60.0040.00416.91
8.0.50.0040.00316.96
8.0.30.0050.01316.98
8.0.20.0100.00917.42
8.0.10.0040.00417.01
8.0.00.0120.00816.66
7.4.330.0000.00515.55
7.4.320.0030.00316.57
7.4.300.0000.00816.61
7.4.290.0030.00316.51
7.4.280.0030.00616.47
7.4.270.0050.00316.57
7.4.260.0030.00316.50
7.4.250.0070.00016.63
7.4.240.0000.00716.51
7.4.230.0030.00316.60
7.4.220.0090.00616.57
7.4.210.0090.00716.45
7.4.200.0050.00216.54
7.4.160.0060.01016.60
7.4.150.0190.00017.40
7.4.140.0110.01317.86
7.4.130.0120.00516.47
7.4.120.0130.00816.47
7.4.110.0030.01316.35
7.4.100.0070.01416.57
7.4.90.0120.00616.41
7.4.80.0110.00819.39
7.4.70.0050.01616.34
7.4.60.0120.00616.49
7.4.50.0070.00716.71
7.4.40.0060.00916.59
7.4.30.0090.00616.63
7.4.00.0080.00314.71
7.3.330.0070.00013.32
7.3.320.0030.00313.15
7.3.310.0000.00816.20
7.3.300.0000.00716.31
7.3.290.0070.00016.38
7.3.280.0120.00716.35
7.3.270.0130.00617.40
7.3.260.0100.00916.51
7.3.250.0160.00316.52
7.3.240.0110.00616.50
7.3.230.0120.00616.39
7.3.210.0210.00316.45
7.3.200.0110.00416.36
7.3.190.0090.00716.36
7.3.180.0080.00816.47
7.3.170.0130.00916.41
7.3.160.0130.00316.52
7.3.10.0170.00515.87
7.3.00.0180.00916.05
7.2.330.0100.01016.71
7.2.320.0060.01216.27
7.2.310.0030.01416.53
7.2.300.0140.00416.27
7.2.290.0100.00716.73
7.2.130.0140.01216.38
7.2.120.0130.01316.19
7.2.110.0160.00816.17
7.2.100.0130.00716.15
7.2.90.0200.01116.42
7.2.80.0200.00616.20
7.2.70.0220.00616.23
7.2.60.0190.00716.47
7.2.50.0260.00916.22
7.2.40.0150.00816.23
7.2.30.0310.00716.17
7.2.20.0190.00616.14
7.2.10.0170.00816.23
7.2.00.0240.00616.24
7.1.250.0200.00415.25
7.1.240.0240.00614.82
7.1.230.0220.00814.68
7.1.220.0220.00614.62
7.1.210.0240.00714.68
7.1.200.0260.00614.92
7.1.190.0190.00514.55
7.1.180.0230.01014.78
7.1.170.0230.00814.79
7.1.160.0200.00614.64
7.1.150.0230.01014.86
7.1.140.0220.00814.65
7.1.130.0290.00914.68
7.1.120.0310.00514.77
7.1.110.0230.00514.77
7.1.100.0170.00814.79
7.1.90.0290.00614.72
7.1.80.0310.01014.64
7.1.70.0170.00615.53
7.1.60.0230.00415.54
7.1.50.0300.00614.75
7.1.40.0260.00914.81
7.1.30.0210.01414.50
7.1.20.0330.00214.73
7.1.10.0260.00314.62
7.1.00.0170.02417.32
7.0.330.0250.00814.24
7.0.320.0220.01014.51
7.0.310.0290.00814.39
7.0.300.0360.01514.42
7.0.290.0360.00814.25
7.0.280.0280.00314.49
7.0.270.0300.01014.23
7.0.260.0290.00514.29
7.0.250.0300.00814.55
7.0.240.0220.00814.32
7.0.230.0310.00614.56
7.0.220.0300.00914.63
7.0.210.0300.00714.54
7.0.200.0310.00914.41
7.0.190.0380.00814.48
7.0.180.0320.00514.65
7.0.170.0480.01214.56
7.0.160.0360.00514.55
7.0.150.0300.00514.46
7.0.140.0230.03216.98
7.0.130.0270.02016.92
7.0.120.0310.02716.94
7.0.110.0240.02816.84
7.0.100.0290.02217.01
7.0.90.0220.02317.00
7.0.80.0220.02817.08
7.0.70.0160.02317.00
7.0.60.0270.02217.02
7.0.50.0240.02017.05
7.0.40.0150.02516.29
7.0.30.0200.02216.28
7.0.20.0170.02516.34
7.0.10.0210.02416.39
7.0.00.0160.03016.40
5.6.380.0060.00814.23
5.6.370.0110.01114.19
5.6.360.0070.01514.34
5.6.350.0140.00114.54
5.6.340.0150.00614.31
5.6.330.0050.01714.64
5.6.320.0120.00914.41
5.6.310.0100.01114.18
5.6.300.0100.01514.61
5.6.290.0120.02616.55
5.6.280.0100.02716.65
5.6.270.0100.02416.73
5.6.260.0090.03016.65
5.6.250.0070.02516.51
5.6.240.0080.03216.43
5.6.230.0070.02816.63
5.6.220.0080.02716.60
5.6.210.0140.02916.54
5.6.200.0110.02516.56
5.6.190.0090.02816.55
5.6.180.0030.03116.45
5.6.170.0120.02016.49
5.6.160.0100.02916.54
5.6.150.0090.02516.55
5.6.140.0090.02816.50
5.6.130.0120.02016.59
5.6.120.0150.02616.55
5.6.110.0150.02616.49
5.6.100.0110.03016.62
5.6.90.0090.03316.60
5.6.80.0110.02716.26
5.6.70.0080.03116.34
5.6.60.0080.02616.33
5.6.50.0070.03216.17
5.6.40.0100.02316.35
5.6.30.0100.02216.25
5.6.20.0070.02716.34
5.6.10.0140.02216.32
5.6.00.0140.02816.33

preferences:
30.16 ms | 403 KiB | 5 Q