3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accessible = array('title', 'description', 'category_ids'); $accessible = array_fill(0, count($accessible) - 1, 0); print_r($accessible); return; $attributes = array('id' => 1, 'title' => 'Pippo', 'description' => 'Lollo', 'permalink' => 'ciao', 'author_id' => 3, 'category_ids' => array('ciao', 'come', 'va'), 'pippo' => null); print_r(array_intersect_key($attributes, $accessible)); print_r(array_diff_key($attributes, $accessible));

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.70.0070.01116.63
8.3.60.0090.01216.63
8.3.50.0070.01417.45
8.3.40.0060.01018.59
8.3.30.0040.01418.39
8.3.20.0080.00018.44
8.3.10.0040.00420.22
8.3.00.0030.00519.13
8.2.180.0120.00816.32
8.2.170.0060.00922.96
8.2.160.0070.00718.68
8.2.150.0140.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.12
8.2.110.0030.00619.38
8.2.100.0090.00318.17
8.2.90.0060.00317.50
8.2.80.0060.00317.97
8.2.70.0000.01017.80
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0000.00820.93
8.2.30.0000.00819.23
8.2.20.0060.00617.72
8.2.10.0030.00517.66
8.2.00.0000.00817.67
8.1.280.0100.00725.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.01117.35
8.1.230.0080.00319.55
8.1.220.0000.00817.77
8.1.210.0000.00818.77
8.1.200.0000.01217.23
8.1.190.0070.00317.25
8.1.180.0060.00318.10
8.1.170.0060.00318.48
8.1.160.0040.00418.98
8.1.150.0000.00718.79
8.1.140.0000.00717.28
8.1.130.0000.00717.83
8.1.120.0030.00317.47
8.1.110.0040.00717.34
8.1.100.0000.00717.48
8.1.90.0000.00817.41
8.1.80.0030.00317.43
8.1.70.0070.00017.40
8.1.60.0070.00017.62
8.1.50.0040.00417.33
8.1.40.0080.00017.44
8.1.30.0080.00017.68
8.1.20.0060.00317.59
8.1.10.0050.00317.43
8.1.00.0050.00217.34
8.0.300.0110.00018.77
8.0.290.0000.00816.63
8.0.280.0070.00018.28
8.0.270.0030.00317.18
8.0.260.0000.00816.70
8.0.250.0050.00316.90
8.0.240.0030.00516.84
8.0.230.0040.00416.77
8.0.220.0040.00416.82
8.0.210.0000.00716.88
8.0.200.0040.00416.71
8.0.190.0040.00416.81
8.0.180.0050.00216.80
8.0.170.0040.00416.86
8.0.160.0040.00416.83
8.0.150.0000.00916.77
8.0.140.0060.00616.82
8.0.130.0000.00513.33
8.0.120.0000.00816.73
8.0.110.0000.00816.89
8.0.100.0040.00416.78
8.0.90.0040.00416.77
8.0.80.0060.01316.89
8.0.70.0040.00416.82
8.0.60.0040.00416.82
8.0.50.0070.00016.86
8.0.30.0100.00717.03
8.0.20.0090.01116.98
8.0.10.0040.00416.99
8.0.00.0100.01216.66
7.4.330.0000.00512.99
7.4.320.0000.00616.39
7.4.300.0000.00716.54
7.4.290.0000.00716.57
7.4.280.0000.00816.48
7.4.270.0040.00416.41
7.4.260.0050.00013.30
7.4.250.0080.00016.39
7.4.240.0000.00716.51
7.4.230.0040.00416.46
7.4.220.0130.01316.43
7.4.210.0130.01016.65
7.4.200.0030.00316.67
7.4.190.0080.00016.55
7.4.160.0060.01116.61
7.4.150.0070.01116.37
7.4.140.0030.01316.48
7.4.130.0040.01716.38
7.4.120.0120.00916.27
7.4.110.0070.01016.56
7.4.100.0080.00816.36
7.4.90.0090.00916.49
7.4.80.0100.00619.39
7.4.70.0060.01316.45
7.4.60.0140.00616.46
7.4.50.0060.00316.66
7.4.40.0030.01316.54
7.4.30.0040.01416.44
7.4.00.0000.01114.82
7.3.330.0000.00613.19
7.3.320.0040.00413.14
7.3.310.0000.00716.29
7.3.300.0000.00616.29
7.3.290.0070.00616.28
7.3.280.0110.00616.24
7.3.270.0170.00816.34
7.3.260.0150.00916.36
7.3.250.0110.00716.42
7.3.240.0090.01716.18
7.3.230.0100.00716.26
7.3.210.0100.00716.39
7.3.200.0130.00516.47
7.3.190.0070.01516.29
7.3.180.0100.00616.10
7.3.170.0140.00016.27
7.3.160.0130.00316.20
7.3.120.0130.00314.91
7.2.330.0060.01316.78
7.2.320.0160.00716.63
7.2.310.0100.00716.45
7.2.300.0130.00316.59
7.2.290.0130.00316.72
7.2.00.0040.00819.17
7.1.100.0000.01118.30
7.1.70.0090.00317.11
7.1.60.0120.01219.30
7.1.50.0060.00916.61
7.1.00.0030.03022.45
7.0.200.0030.00716.70
7.0.140.0100.06322.01
7.0.120.0000.07721.96
7.0.60.0030.08020.03
7.0.50.0030.06017.87
7.0.40.0030.05020.20
7.0.30.0300.08020.17
7.0.20.0130.04720.23
7.0.10.0070.08720.05
7.0.00.0170.07020.02
5.6.280.0030.07321.14
5.6.210.0130.07020.50
5.6.200.0000.04318.27
5.6.190.0000.08020.50
5.6.180.0500.06320.41
5.6.170.0130.04720.57
5.6.160.0070.04020.54
5.6.150.0030.04018.15
5.6.140.0070.05718.21
5.6.130.0030.10318.28
5.6.120.0070.07020.98
5.6.110.0070.08721.11
5.6.100.0070.04021.02
5.6.90.0030.04320.98
5.6.80.0130.05320.34
5.5.350.0030.08020.42
5.5.340.0030.04717.92
5.5.330.0000.09320.42
5.5.320.0270.04320.30
5.5.310.0230.04320.18
5.5.300.0000.04018.00
5.5.290.0130.06717.95
5.5.280.0000.05720.68
5.5.270.0030.08720.86
5.5.260.0170.06720.86
5.5.250.0030.07720.61
5.5.240.0170.07720.06
5.4.450.0030.07319.58
5.4.440.0130.07319.48
5.4.430.0070.06719.16
5.4.420.0030.06019.46
5.4.410.0100.06719.47
5.4.400.0070.04319.21
5.4.390.0130.07019.20
5.4.380.0070.06018.92
5.4.370.0130.07019.14
5.4.360.0070.07018.92
5.4.350.0070.07019.14
5.4.340.0070.07019.07
5.4.320.0030.05319.14
5.4.310.0100.06718.98
5.4.300.0070.07718.91
5.4.290.0070.04319.15
5.4.280.0100.06319.07
5.4.270.0030.07719.15
5.4.260.0100.07319.00
5.4.250.0130.07018.91
5.4.240.0130.03319.11
5.4.230.0100.05018.86
5.4.220.0000.08018.84
5.4.210.0030.05319.23
5.4.200.0070.03719.07
5.4.190.0070.03319.19
5.4.180.0030.04319.13
5.4.170.0070.03318.99
5.4.160.0030.03718.83
5.4.150.0030.03719.13
5.4.140.0000.03716.35
5.4.130.0000.04316.37
5.4.120.0030.03316.42
5.4.110.0130.03316.27
5.4.100.0030.05016.45
5.4.90.0070.03716.39
5.4.80.0030.03316.29
5.4.70.0000.03716.39
5.4.60.0030.03316.40
5.4.50.0030.03316.43
5.4.40.0030.03316.36
5.4.30.0000.03716.38
5.4.20.0100.03316.46
5.4.10.0030.03316.39
5.4.00.0030.03715.84
5.3.290.0070.07314.66
5.3.280.0130.04014.58
5.3.270.0030.03714.63
5.3.260.0000.04014.65
5.3.250.0000.04014.65
5.3.240.0000.04714.65
5.3.230.0030.04014.60
5.3.220.0070.07714.56
5.3.210.0000.04014.56
5.3.200.0070.03314.61
5.3.190.0030.03714.55
5.3.180.0000.04014.71
5.3.170.0000.04014.59
5.3.160.0000.03714.70
5.3.150.0030.03714.55
5.3.140.0000.04314.55
5.3.130.0030.03714.60
5.3.120.0000.04014.56
5.3.110.0070.04714.57
5.3.100.0000.03714.10
5.3.90.0070.03014.04
5.3.80.0070.03314.02
5.3.70.0030.03314.06
5.3.60.0100.03014.00
5.3.50.0030.04313.98
5.3.40.0070.03013.88
5.3.30.0000.03713.90
5.3.20.0000.03713.84
5.3.10.0130.02313.67
5.3.00.0030.03313.63
5.2.170.0000.03711.21
5.2.160.0100.02011.09
5.2.150.0000.03011.06
5.2.140.0030.02711.11
5.2.130.0070.02311.07
5.2.120.0000.03011.14
5.2.110.0000.03011.04
5.2.100.0000.03011.05
5.2.90.0030.03711.24
5.2.80.0070.03311.05
5.2.70.0030.05711.00
5.2.60.0130.03711.05
5.2.50.0030.05710.97
5.2.40.0030.05011.00
5.2.30.0030.04711.01
5.2.20.0030.02711.11
5.2.10.0070.04010.92
5.2.00.0100.05310.66
5.1.60.0030.03710.05
5.1.50.0100.04310.05
5.1.40.0100.03310.03
5.1.30.0030.05710.32
5.1.20.0070.04310.39
5.1.10.0030.06010.12
5.1.00.0100.05010.09
5.0.50.0030.0338.52
5.0.40.0100.0308.38
5.0.30.0030.0308.12
5.0.20.0030.0478.18
5.0.10.0100.0408.13
5.0.00.0030.0608.06
4.4.90.0000.0407.80
4.4.80.0000.0307.80
4.4.70.0030.0137.80
4.4.60.0030.0277.80
4.4.50.0030.0137.80
4.4.40.0030.0477.80
4.4.30.0000.0237.80
4.4.20.0000.0177.80
4.4.10.0030.0277.80
4.4.00.0000.0337.80
4.3.110.0000.0237.80
4.3.100.0030.0137.80
4.3.90.0030.0337.80
4.3.80.0000.0537.80
4.3.70.0030.0377.80
4.3.60.0070.0307.80
4.3.50.0030.0207.80
4.3.40.0070.0307.80
4.3.30.0000.0307.80
4.3.20.0000.0207.80
4.3.10.0030.0307.80
4.3.00.0030.0307.80

preferences:
44.31 ms | 401 KiB | 5 Q