3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['test' => '1', 'test2' => 2, 'test3' => 3]; $filter = ['test', 'test2']; $a = array_intersect_key($a, array_flip($filter)); vardump($a);

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.0170.00316.63
8.3.50.0070.00717.86
8.3.40.0110.00418.66
8.3.30.0110.00418.46
8.3.20.0070.00020.04
8.3.10.0050.00323.66
8.3.00.0080.00023.51
8.2.180.0130.00616.50
8.2.170.0040.01219.08
8.2.160.0030.01722.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00019.27
8.2.120.0080.00026.35
8.2.110.0040.00422.14
8.2.100.0090.00317.80
8.2.90.0080.00019.05
8.2.80.0090.00017.97
8.2.70.0000.00917.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00422.33
8.2.30.0000.00820.54
8.2.20.0080.00017.68
8.2.10.0000.00717.92
8.2.00.0070.00018.04
8.1.280.0090.00925.92
8.1.270.0070.01020.43
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0090.00023.86
8.1.230.0070.00417.83
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.34
8.1.190.0030.00617.13
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0070.00020.75
8.1.150.0040.00418.87
8.1.140.0000.00819.42
8.1.130.0070.00017.59
8.1.120.0070.00017.35
8.1.110.0000.00717.27
8.1.100.0040.00417.25
8.1.90.0000.00717.35
8.1.80.0050.00217.43
8.1.70.0070.00017.36
8.1.60.0040.00417.46
8.1.50.0050.00317.45
8.1.40.0040.00417.40
8.1.30.0040.00417.48
8.1.20.0000.00817.54
8.1.10.0040.00417.50
8.1.00.0030.00617.42
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0070.00017.10
8.0.260.0030.00317.10
8.0.250.0030.00516.95
8.0.240.0050.00216.84
8.0.230.0070.00016.90
8.0.220.0040.00416.91
8.0.210.0000.00716.89
8.0.200.0000.00616.93
8.0.190.0060.00316.90
8.0.180.0030.00316.92
8.0.170.0000.00816.90
8.0.160.0040.00416.79
8.0.150.0030.00316.73
8.0.140.0040.00416.76
8.0.130.0030.00313.31
8.0.120.0050.00316.83
8.0.110.0000.00716.88
8.0.100.0030.00416.89
8.0.90.0020.00516.92
8.0.80.0100.00716.92
8.0.70.0000.00716.93
8.0.60.0040.00416.99
8.0.50.0040.00416.89
8.0.30.0110.00617.06
8.0.20.0080.01217.40
8.0.10.0040.00417.03
8.0.00.0110.00616.60
7.4.330.0050.00016.67
7.4.320.0000.00616.51
7.4.300.0060.00016.50
7.4.290.0000.00716.54
7.4.280.0040.00416.59
7.4.270.0030.00316.58
7.4.260.0030.00316.55
7.4.250.0050.00216.47
7.4.240.0010.00616.54
7.4.230.0040.00416.57
7.4.220.0030.01316.41
7.4.210.0120.00416.61
7.4.200.0000.00716.70
7.4.160.0120.00616.64
7.4.150.0070.01017.40
7.4.140.0050.01517.86
7.4.130.0160.00816.47
7.4.120.0120.00916.55
7.4.110.0030.01416.43
7.4.100.0060.01516.46
7.4.90.0110.00616.54
7.4.80.0120.01219.39
7.4.70.0130.01016.50
7.4.60.0120.00316.46
7.4.50.0000.01416.48
7.4.40.0040.01116.61
7.4.30.0090.00616.38
7.4.00.0100.00715.04
7.3.330.0000.00513.10
7.3.320.0000.00513.13
7.3.310.0040.00416.39
7.3.300.0040.00416.06
7.3.290.0070.00716.25
7.3.280.0060.00916.27
7.3.270.0110.00617.40
7.3.260.0060.01016.29
7.3.250.0110.00616.40
7.3.240.0060.01116.31
7.3.230.0110.00616.39
7.3.210.0060.01016.49
7.3.200.0110.00616.29
7.3.190.0080.01116.49
7.3.180.0000.01516.47
7.3.170.0060.00916.50
7.3.160.0140.00716.26
7.3.120.0100.00814.75
7.3.110.0060.00914.75
7.3.100.0060.01014.78
7.3.90.0060.00914.65
7.3.80.0050.00914.68
7.3.70.0040.01114.65
7.3.60.0090.00614.65
7.3.50.0060.00814.76
7.3.40.0070.00514.70
7.3.30.0080.00414.64
7.3.20.0100.00616.67
7.3.10.0030.00916.49
7.3.00.0050.00616.44
7.2.330.0060.01116.34
7.2.320.0140.00916.54
7.2.310.0070.01016.61
7.2.300.0150.00616.64
7.2.290.0110.00616.61
7.2.250.0130.00715.05
7.2.240.0070.01014.85
7.2.230.0050.00914.93
7.2.220.0070.00614.84
7.2.210.0090.00514.90
7.2.200.0070.00714.97
7.2.190.0070.00814.91
7.2.180.0050.00714.89
7.2.170.0020.01314.80
7.2.160.0040.01214.75
7.2.150.0030.00616.71
7.2.140.0030.01316.93
7.2.130.0030.01016.81
7.2.120.0050.00516.89
7.2.110.0040.00816.84
7.2.100.0100.00316.70
7.2.90.0090.00316.90
7.2.80.0030.01316.95
7.2.70.0030.01316.63
7.2.60.0070.00716.75
7.2.50.0030.00616.72
7.2.40.0080.00616.99
7.2.30.0040.00816.91
7.2.20.0000.01216.88
7.2.10.0000.01116.70
7.2.00.0040.00817.85
7.1.330.0070.00815.66
7.1.320.0040.01015.75
7.1.310.0080.00615.86
7.1.300.0060.00615.64
7.1.290.0070.00815.78
7.1.280.0050.00615.61
7.1.270.0090.00615.56
7.1.260.0080.00615.80
7.1.250.0060.00315.83
7.1.200.0070.00415.78
7.1.100.0000.01217.82
7.1.70.0050.00217.04
7.1.60.0110.01519.52
7.1.50.0060.01516.72
7.1.00.0030.07322.51
7.0.200.0080.00016.73
7.0.60.0100.03320.02
7.0.50.0230.04017.80
7.0.40.0100.04020.18
7.0.30.0330.04720.04
7.0.20.0230.06720.25
7.0.10.0100.06320.20
7.0.00.0130.07720.01
5.6.280.0030.05721.06
5.6.210.0030.08020.72
5.6.200.0100.08318.13
5.6.190.0100.08720.39
5.6.180.0270.08020.67
5.6.170.0300.07320.50
5.6.160.0070.08320.54
5.6.150.0070.06718.18
5.6.140.0030.04018.11
5.6.130.0070.05318.15
5.6.120.0030.06720.98
5.6.110.0070.06320.88
5.6.100.0000.08020.96
5.6.90.0030.08321.07
5.6.80.0100.06020.50
5.5.350.0370.07020.32
5.5.340.0130.07017.98
5.5.330.0130.04320.37
5.5.320.0730.06020.30
5.5.310.0300.07320.16
5.5.300.0030.07017.96
5.5.290.0070.08717.92
5.5.280.0100.08320.75
5.5.270.0030.05720.83
5.5.260.0030.09320.87
5.5.250.0130.05720.69
5.5.240.0100.03320.18

preferences:
58.08 ms | 400 KiB | 5 Q