3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['foo' => 'bar', 'baz' => 'bam']; $b = ['foo' => null, 'baz' => null, 'blamo' => null]; var_dump(array_intersect_key($a, $b));

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.0220.00016.63
8.3.50.0070.00716.27
8.3.40.0070.00718.56
8.3.30.0120.00318.38
8.3.20.0030.00718.57
8.3.10.0040.00421.77
8.3.00.0050.00317.88
8.2.180.0090.00916.38
8.2.170.0110.00422.96
8.2.160.0030.01020.74
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00019.70
8.2.120.0040.00426.35
8.2.110.0030.00719.09
8.2.100.0120.00017.63
8.2.90.0030.00519.28
8.2.80.0070.00317.97
8.2.70.0040.00417.50
8.2.60.0060.00617.91
8.2.50.0000.00818.07
8.2.40.0040.00419.76
8.2.30.0020.00518.04
8.2.20.0020.00517.61
8.2.10.0000.00717.95
8.2.00.0040.00417.89
8.1.280.0060.01225.92
8.1.270.0040.00424.02
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.80
8.1.230.0070.00417.76
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0070.00018.10
8.1.170.0030.00518.51
8.1.160.0040.00421.94
8.1.150.0000.00818.77
8.1.140.0110.00019.50
8.1.130.0080.00017.56
8.1.120.0070.00017.42
8.1.110.0050.00217.20
8.1.100.0020.00517.40
8.1.90.0000.00917.36
8.1.80.0000.00717.41
8.1.70.0030.00317.28
8.1.60.0000.00717.51
8.1.50.0040.00417.43
8.1.40.0080.00017.43
8.1.30.0040.00417.57
8.1.20.0000.00917.45
8.1.10.0000.00817.42
8.1.00.0040.00417.26
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0000.00718.37
8.0.270.0030.00317.17
8.0.260.0000.00817.29
8.0.250.0000.00716.81
8.0.240.0030.00316.77
8.0.230.0000.00716.86
8.0.220.0040.00416.66
8.0.210.0000.00716.82
8.0.200.0000.00816.83
8.0.190.0000.00716.84
8.0.180.0000.00816.77
8.0.170.0060.00316.67
8.0.160.0000.00716.77
8.0.150.0000.00716.71
8.0.140.0030.00516.64
8.0.130.0050.00013.28
8.0.120.0050.00316.69
8.0.110.0080.00016.84
8.0.100.0040.00416.80
8.0.90.0080.00016.70
8.0.80.0100.00716.75
8.0.70.0040.00416.69
8.0.60.0070.00016.81
8.0.50.0070.00016.83
8.0.30.0100.00916.69
8.0.20.0100.01017.40
8.0.10.0040.00417.00
8.0.00.0090.01216.42
7.4.330.0000.00515.08
7.4.320.0030.00316.53
7.4.300.0070.00016.37
7.4.290.0030.00316.32
7.4.280.0040.00416.51
7.4.270.0000.00716.48
7.4.260.0000.00816.40
7.4.250.0080.00016.38
7.4.240.0040.00416.46
7.4.230.0030.00316.55
7.4.220.0150.00916.35
7.4.210.0080.00616.37
7.4.200.0070.00016.55
7.4.160.0040.01116.43
7.4.150.0060.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00916.36
7.4.120.0140.00316.31
7.4.110.0090.00916.50
7.4.100.0090.00916.41
7.4.90.0100.00616.43
7.4.80.0090.00919.39
7.4.70.0140.00516.46
7.4.60.0060.01016.41
7.4.50.0100.00716.43
7.4.40.0030.01716.59
7.4.30.0030.01316.35
7.4.00.0060.01014.94
7.3.330.0000.00612.97
7.3.320.0050.00012.95
7.3.310.0070.00016.25
7.3.300.0070.00016.17
7.3.290.0080.00816.11
7.3.280.0080.00716.09
7.3.270.0120.00617.40
7.3.260.0210.00316.22
7.3.250.0140.00616.33
7.3.240.0100.00616.13
7.3.230.0100.00716.39
7.3.210.0030.01716.48
7.3.200.0090.00919.39
7.3.190.0080.00816.11
7.3.180.0080.00816.55
7.3.170.0090.00916.08
7.3.160.0090.00616.11
7.3.120.0120.00314.26
7.3.110.0110.00214.61
7.3.100.0060.00714.84
7.3.90.0060.00614.71
7.3.80.0060.00914.24
7.3.70.0080.00414.64
7.3.60.0100.00314.74
7.3.50.0080.00414.28
7.3.40.0060.00614.76
7.3.30.0030.01414.42
7.3.20.0090.00616.54
7.3.10.0070.00416.29
7.3.00.0070.00716.48
7.2.330.0120.00416.22
7.2.320.0120.00816.49
7.2.310.0130.01016.64
7.2.300.0110.00716.24
7.2.290.0090.00916.36
7.2.240.0000.01514.80
7.2.230.0050.00514.41
7.2.220.0060.00914.47
7.2.210.0060.00614.76
7.2.200.0000.01114.43
7.2.190.0120.00315.00
7.2.180.0040.01114.54
7.2.170.0040.00914.89
7.2.160.0030.01414.70
7.2.150.0080.00416.68
7.2.140.0090.00616.71
7.2.130.0100.00316.85
7.2.120.0070.00716.89
7.2.110.0060.00316.82
7.2.100.0080.00616.72
7.2.90.0000.01416.67
7.2.80.0060.00316.78
7.2.70.0040.01116.91
7.2.60.0080.00616.75
7.2.50.0000.01216.68
7.2.40.0120.00316.80
7.2.30.0060.00616.73
7.2.20.0000.01116.52
7.2.10.0090.00916.72
7.2.00.0050.01117.93
7.1.330.0060.00915.92
7.1.320.0090.00615.67
7.1.310.0080.00815.60
7.1.300.0030.01015.73
7.1.290.0000.01615.59
7.1.280.0060.00315.41
7.1.270.0060.00315.71
7.1.260.0060.00615.67
7.1.250.0040.00415.49
7.1.200.0000.01515.77
7.1.100.0060.00818.18
7.1.70.0090.00617.05
7.1.60.0040.01919.33
7.1.00.0070.07322.33
7.0.200.0030.00716.39
7.0.60.0070.07021.73
7.0.50.0130.06020.28
7.0.40.0300.04720.21
7.0.30.0200.06020.42
7.0.20.0230.06020.22
7.0.10.0170.06020.32
7.0.00.0300.06320.27
5.6.280.0030.07321.14
5.6.210.0130.05320.71
5.6.200.0200.05721.13
5.6.190.0230.07321.04
5.6.180.0130.06321.11
5.6.170.0200.05321.04
5.6.160.0330.05021.05
5.6.150.0300.05320.96
5.6.140.0300.05721.11
5.6.130.0200.07021.02
5.6.120.0270.05021.11
5.6.110.0270.05721.05
5.6.100.0230.05721.15
5.6.90.0270.05721.13
5.6.80.0300.05020.33
5.6.70.0170.06320.49
5.6.60.0130.06320.39
5.6.50.0000.06720.41
5.6.40.0200.06020.55
5.6.30.0400.04320.40
5.6.20.0270.05320.46
5.6.10.0230.05720.32
5.6.00.0370.04320.39
5.5.350.0070.07720.37
5.5.340.0030.07020.71
5.5.330.0230.05320.84
5.5.320.0130.05720.71
5.5.310.0230.05020.83
5.5.300.0370.07320.86
5.5.290.0400.07020.70
5.5.280.0170.06720.95
5.5.270.0100.07020.89
5.5.260.0370.04320.76
5.5.250.0300.05720.70
5.5.240.0230.05720.36
5.5.230.0130.06320.24
5.5.220.0230.05020.16
5.5.210.0030.06320.24
5.5.200.0100.06320.12
5.5.190.0400.04320.36
5.5.180.0200.06020.16
5.5.160.0370.04020.16
5.5.150.0300.06020.08
5.5.140.0270.05720.20
5.5.130.0370.04320.18
5.5.120.0330.06020.13
5.5.110.0430.04020.13
5.5.100.0330.05020.01
5.5.90.0330.04020.12
5.5.80.0270.05020.04
5.5.70.0330.05020.12
5.5.60.0370.06320.11
5.5.50.0200.05320.09
5.5.40.0230.05720.02
5.5.30.0300.04720.11
5.5.20.0270.05320.08
5.5.10.0200.06019.96
5.5.00.0270.05020.10

preferences:
61.95 ms | 401 KiB | 5 Q