3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['teste' => 'teste']; $key = 'teste'; var_dump($a[$key] ?? $key === null ? $a : null);

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.0110.00416.37
8.3.50.0110.01121.21
8.3.40.0120.00318.54
8.3.30.0090.00618.56
8.3.20.0080.00020.21
8.3.10.0000.00823.53
8.3.00.0040.00423.63
8.2.180.0040.01416.63
8.2.170.0130.01018.76
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0070.00019.64
8.2.120.0000.00726.35
8.2.110.0090.00019.27
8.2.100.0090.00318.04
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0000.00917.36
8.2.60.0000.00817.88
8.2.50.0080.00018.07
8.2.40.0000.00720.60
8.2.30.0030.00320.59
8.2.20.0040.00417.67
8.2.10.0040.00418.00
8.2.00.0040.00418.02
8.1.280.0030.01025.92
8.1.270.0060.00324.01
8.1.260.0000.00828.09
8.1.250.0050.00228.09
8.1.240.0090.00023.78
8.1.230.0040.00719.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0030.00320.56
8.1.150.0040.00418.81
8.1.140.0000.00819.56
8.1.130.0000.00717.66
8.1.120.0040.00417.38
8.1.110.0040.00417.37
8.1.100.0000.00817.30
8.1.90.0000.00717.27
8.1.80.0070.00017.37
8.1.70.0030.00317.41
8.1.60.0000.00717.45
8.1.50.0040.00417.41
8.1.40.0030.00617.40
8.1.30.0080.00017.59
8.1.20.0040.00417.63
8.1.10.0060.00317.46
8.1.00.0000.00817.43
8.0.300.0050.00318.77
8.0.290.0070.00016.75
8.0.280.0030.00318.37
8.0.270.0000.00717.24
8.0.260.0000.00618.29
8.0.250.0070.00016.88
8.0.240.0000.00716.92
8.0.230.0000.00716.75
8.0.220.0050.00216.72
8.0.210.0040.00416.73
8.0.200.0040.00416.86
8.0.190.0000.00716.89
8.0.180.0070.00016.74
8.0.170.0040.00416.75
8.0.160.0000.00716.79
8.0.150.0030.00516.82
8.0.140.0040.00416.76
8.0.130.0000.00513.25
8.0.120.0000.00816.84
8.0.110.0040.00416.82
8.0.100.0070.00016.80
8.0.90.0030.00516.64
8.0.80.0060.00916.88
8.0.70.0060.00316.82
8.0.60.0040.00416.64
8.0.50.0000.00716.68
8.0.30.0130.00417.05
8.0.20.0120.00717.40
8.0.10.0040.00417.06
8.0.00.0130.00616.76
7.4.330.0000.00516.69
7.4.320.0030.00316.50
7.4.300.0000.00616.45
7.4.290.0000.00716.44
7.4.280.0070.00316.29
7.4.270.0030.00316.43
7.4.260.0040.00416.46
7.4.250.0080.00016.41
7.4.240.0030.00416.45
7.4.230.0020.00516.32
7.4.220.0110.02016.32
7.4.210.0060.01216.46
7.4.200.0070.00016.41
7.4.160.0130.00316.31
7.4.150.0090.00917.40
7.4.140.0050.01217.86
7.4.130.0100.00816.52
7.4.120.0080.01016.41
7.4.110.0100.00716.48
7.4.100.0090.00916.58
7.4.90.0090.00916.46
7.4.80.0090.01319.39
7.4.70.0030.01716.45
7.4.60.0070.01016.52
7.4.50.0090.00616.46
7.4.40.0110.00716.39
7.4.30.0140.00316.48
7.4.00.0050.00514.64
7.3.330.0050.00013.11
7.3.320.0030.00313.18
7.3.310.0050.00316.14
7.3.300.0000.00616.21
7.3.290.0000.00616.18
7.3.280.0130.00416.23
7.3.270.0060.01517.40
7.3.260.0110.00816.71
7.3.250.0120.00516.17
7.3.240.0100.01216.31
7.3.230.0070.01116.48
7.3.210.0060.01216.44
7.3.200.0070.01019.39
7.3.190.0140.00416.54
7.3.180.0030.01516.42
7.3.170.0100.01016.27
7.3.160.0150.00616.50
7.2.330.0090.00916.18
7.2.320.0150.00316.66
7.2.310.0110.00616.66
7.2.300.0110.00716.35
7.2.290.0030.01316.57
7.2.60.0030.01016.95
7.2.00.0030.01019.25
7.1.200.0070.00715.58
7.1.100.0000.01617.99
7.1.70.0040.00817.13
7.1.60.0150.00919.21
7.1.50.0130.00616.84
7.1.00.0030.07322.48
7.0.200.0000.00716.67
7.0.60.0030.07021.80
7.0.50.0000.04717.83
7.0.40.0030.09320.12
7.0.30.0370.06720.16
7.0.20.0270.09020.33
7.0.10.0070.07320.21
7.0.00.0070.09020.17
5.6.280.0030.07020.86
5.6.210.0170.03720.50
5.6.200.0000.04718.16
5.6.190.0070.05320.61
5.6.180.0230.04320.55
5.6.170.0230.04720.44
5.6.160.0100.06020.57
5.6.150.0170.07018.15
5.6.140.0030.06018.14
5.6.130.0100.06718.20
5.6.120.0130.03721.02
5.6.110.0070.04020.97
5.6.100.0070.08320.97
5.6.90.0030.06721.00
5.6.80.0000.09020.35
5.5.350.0100.08320.43
5.5.340.0100.07317.98
5.5.330.0070.06720.28
5.5.320.0470.06020.23
5.5.310.0230.03320.28
5.5.300.0100.07017.98
5.5.290.0070.04017.95
5.5.280.0100.04320.96
5.5.270.0070.07020.66
5.5.260.0030.08320.86
5.5.250.0000.08720.79
5.5.240.0200.05320.00

preferences:
40.74 ms | 401 KiB | 5 Q