3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accessible = array('title', 'description', 'category_ids'); $attributes = array('id', 'title' => 'Pippo', 'description' => 'Lollo', 'permalink', 'author_id', 'category_ids' => array('ciao', 'come', 'va'), 'pippo'); print_r(array_intersect_key($attributes, $accessible)); // print_r(array_diff($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.60.0210.00316.50
8.3.50.0100.00616.42
8.3.40.0080.00618.54
8.3.30.0140.00418.43
8.3.20.0080.00018.50
8.3.10.0040.00420.44
8.3.00.0040.00419.13
8.2.180.0110.01118.20
8.2.170.0140.00022.96
8.2.160.0100.00721.09
8.2.150.0060.01225.66
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00920.74
8.2.110.0070.00420.52
8.2.100.0040.00817.78
8.2.90.0030.00519.05
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0030.00617.92
8.2.50.0050.00518.10
8.2.40.0050.00520.50
8.2.30.0040.00417.98
8.2.20.0090.00017.53
8.2.10.0000.00717.62
8.2.00.0040.00417.66
8.1.280.0070.01125.92
8.1.270.0000.00724.66
8.1.260.0150.00426.35
8.1.250.0060.01328.09
8.1.240.0040.00422.69
8.1.230.0110.00017.70
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00917.23
8.1.180.0070.00018.10
8.1.170.0040.00418.65
8.1.160.0040.00518.82
8.1.150.0000.00718.62
8.1.140.0000.00717.42
8.1.130.0030.00317.39
8.1.120.0040.00417.46
8.1.110.0050.00317.43
8.1.100.0000.00717.27
8.1.90.0000.00717.35
8.1.80.0030.00517.40
8.1.70.0060.00317.35
8.1.60.0060.00317.55
8.1.50.0000.00917.32
8.1.40.0000.00817.45
8.1.30.0000.00717.49
8.1.20.0020.00517.60
8.1.10.0050.00317.39
8.1.00.0030.00617.28
8.0.300.0070.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0030.00317.10
8.0.260.0060.00016.75
8.0.250.0030.00616.90
8.0.240.0030.00316.78
8.0.230.0070.00016.87
8.0.220.0080.00016.89
8.0.210.0000.00716.80
8.0.200.0000.00616.88
8.0.190.0040.00416.84
8.0.180.0100.00016.81
8.0.170.0030.00616.88
8.0.160.0040.00416.89
8.0.150.0000.00916.72
8.0.140.0030.00616.80
8.0.130.0000.00513.21
8.0.120.0000.00716.80
8.0.110.0000.00816.73
8.0.100.0030.00516.70
8.0.90.0050.00216.80
8.0.80.0110.00316.79
8.0.70.0000.00716.80
8.0.60.0040.00416.70
8.0.50.0070.00016.89
8.0.30.0110.00817.00
8.0.20.0110.01117.02
8.0.10.0040.00416.82
8.0.00.0120.00616.77
7.4.330.0050.00013.00
7.4.320.0030.00316.56
7.4.300.0090.00016.42
7.4.290.0000.00816.57
7.4.280.0040.00416.52
7.4.270.0000.00716.43
7.4.260.0070.00013.21
7.4.250.0060.00316.36
7.4.240.0000.00716.53
7.4.230.0030.00316.44
7.4.220.0160.01016.44
7.4.210.0060.00916.51
7.4.200.0000.00716.55
7.4.190.0030.00316.60
7.4.160.0080.01416.36
7.4.150.0120.00616.56
7.4.140.0090.00816.32
7.4.130.0070.01016.44
7.4.120.0050.01216.45
7.4.110.0130.00316.18
7.4.100.0130.00316.30
7.4.90.0080.02016.44
7.4.80.0070.01819.39
7.4.70.0050.01116.70
7.4.60.0060.00916.49
7.4.50.0040.00416.29
7.4.40.0070.01016.29
7.4.30.0120.00316.44
7.4.00.0030.01314.88
7.3.330.0030.00312.80
7.3.320.0030.00313.03
7.3.310.0040.00415.98
7.3.300.0040.00415.98
7.3.290.0090.00916.19
7.3.280.0100.00716.16
7.3.270.0030.01316.23
7.3.260.0160.00416.42
7.3.250.0100.01116.14
7.3.240.0060.01016.39
7.3.230.0080.00816.13
7.3.210.0070.01016.03
7.3.200.0070.01016.04
7.3.190.0090.01016.34
7.3.180.0130.00316.45
7.3.170.0060.01216.13
7.3.160.0120.00916.41
7.3.120.0030.01214.59
7.2.330.0000.01816.25
7.2.320.0060.01216.39
7.2.310.0160.00616.44
7.2.300.0000.01516.31
7.2.290.0070.01016.20
7.2.00.0040.00718.89
7.1.100.0030.01317.87
7.1.70.0040.00716.91
7.1.60.0110.00719.40
7.1.50.0080.01516.79
7.1.00.0000.05322.51
7.0.200.0040.00416.78
7.0.140.0030.07321.92
7.0.120.0000.07722.00
7.0.60.0130.06319.89
7.0.50.0030.08717.93
7.0.40.0070.05019.91
7.0.30.0270.03720.20
7.0.20.0270.06020.06
7.0.10.0400.06320.13
7.0.00.0100.05020.29
5.6.280.0000.07320.89
5.6.210.0130.07020.45
5.6.200.0000.04318.16
5.6.190.0030.09020.39
5.6.180.0330.07320.42
5.6.170.0370.07320.54
5.6.160.0030.04020.54
5.6.150.0100.03318.19
5.6.140.0030.07318.14
5.6.130.0130.05018.33
5.6.120.0070.08020.87
5.6.110.0030.08321.11
5.6.100.0070.05321.13
5.6.90.0030.08720.96
5.6.80.0030.08320.53
5.6.70.0170.05720.47
5.5.350.0300.06020.46
5.5.340.0030.04017.95
5.5.330.0170.06720.41
5.5.320.0230.07320.39
5.5.310.0270.06320.32
5.5.300.0030.04317.95
5.5.290.0030.07018.08
5.5.280.0170.07320.76
5.5.270.0070.08320.88
5.5.260.0130.04720.86
5.5.250.0170.07720.50
5.5.240.0030.04020.26
5.4.450.0070.04019.45
5.4.440.0030.04019.47
5.4.430.0130.07319.39
5.4.420.0070.06019.46
5.4.410.0130.05019.35
5.4.400.0130.03718.98
5.4.390.0070.08019.20
5.4.380.0070.08019.14
5.4.370.0130.07019.24
5.4.360.0030.06019.14
5.4.350.0100.03319.25
5.4.340.0070.04019.23
5.4.320.0100.03318.87
5.4.310.0030.06719.26
5.4.300.0100.04319.24
5.4.290.0030.04018.92
5.4.280.0070.04019.15
5.4.270.0070.04319.23
5.4.260.0100.06318.96
5.4.250.0000.07719.23
5.4.240.0100.03019.14
5.4.230.0030.06019.23
5.4.220.0070.04719.14
5.4.210.0030.05019.23
5.4.200.0030.08019.15
5.4.190.0030.07019.13
5.4.180.0130.07019.19
5.4.170.0030.05319.23
5.4.160.0070.05318.96
5.4.150.0000.04319.09
5.4.140.0130.06716.33
5.4.130.0030.04716.32
5.4.120.0130.06016.30
5.4.110.0030.05316.41
5.4.100.0100.07316.39
5.4.90.0000.08016.66
5.4.80.0030.03716.45
5.4.70.0030.07716.41
5.4.60.0000.04016.43
5.4.50.0100.04716.36
5.4.40.0070.04716.34
5.4.30.0130.03716.46
5.4.20.0100.06716.27
5.4.10.0030.07716.38
5.4.00.0070.05715.85
5.3.290.0030.04014.68
5.3.280.0000.05014.62
5.3.270.0030.07314.48
5.3.260.0100.03314.63
5.3.250.0030.03714.64
5.3.240.0000.04714.59
5.3.230.0100.04714.48
5.3.220.0070.04714.48
5.3.210.0100.05014.59
5.3.200.0030.04314.59
5.3.190.0030.05314.61
5.3.180.0000.04014.59
5.3.170.0030.04714.70
5.3.160.0030.08014.63
5.3.150.0030.05014.55
5.3.140.0070.04714.55
5.3.130.0070.07714.59
5.3.120.0100.07714.56
5.3.110.0200.03314.61
5.3.100.0030.04014.09
5.3.90.0070.07714.03
5.3.80.0130.07014.02
5.3.70.0000.08313.93
5.3.60.0130.06713.88
5.3.50.0070.06713.97
5.3.40.0130.04013.95
5.3.30.0000.04013.91
5.3.20.0070.08013.71
5.3.10.0030.06713.54
5.3.00.0070.06013.78
5.2.170.0070.06311.21
5.2.160.0130.04711.10
5.2.150.0030.05711.14
5.2.140.0030.06311.19
5.2.130.0070.06011.06
5.2.120.0070.06011.09
5.2.110.0100.04311.04
5.2.100.0030.03711.13
5.2.90.0070.07011.16
5.2.80.0030.04011.09
5.2.70.0030.03311.08
5.2.60.0070.06311.11
5.2.50.0070.04710.90
5.2.40.0000.03710.99
5.2.30.0070.05711.02
5.2.20.0000.03710.95
5.2.10.0070.02710.90
5.2.00.0030.05010.78
5.1.60.0030.0439.94
5.1.50.0030.04710.04
5.1.40.0030.05310.03
5.1.30.0030.05310.29
5.1.20.0030.04010.35
5.1.10.0070.05010.12
5.1.00.0070.04310.13
5.0.50.0070.0438.62
5.0.40.0030.0478.35
5.0.30.0000.0608.18
5.0.20.0030.0478.18
5.0.10.0070.0308.18
5.0.00.0000.0338.18
4.4.90.0030.0338.18
4.4.80.0000.0238.18
4.4.70.0030.0338.18
4.4.60.0000.0308.18
4.4.50.0030.0238.18
4.4.40.0070.0508.18
4.4.30.0000.0238.18
4.4.20.0000.0308.18
4.4.10.0000.0278.18
4.4.00.0070.0308.18
4.3.110.0000.0378.18
4.3.100.0000.0238.18
4.3.90.0030.0308.18
4.3.80.0000.0478.18
4.3.70.0000.0208.18
4.3.60.0030.0308.18
4.3.50.0000.0238.18
4.3.40.0000.0378.18
4.3.30.0000.0278.18
4.3.20.0070.0308.18
4.3.10.0070.0338.18
4.3.00.0030.0338.18

preferences:
53.66 ms | 400 KiB | 5 Q