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_assoc($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.0100.01016.50
8.3.50.0140.00922.12
8.3.40.0160.00618.55
8.3.30.0090.00618.92
8.3.20.0000.00820.33
8.3.10.0040.00423.44
8.3.00.0060.00617.13
8.2.180.0090.00617.93
8.2.170.0000.01522.96
8.2.160.0100.00320.48
8.2.150.0040.00424.18
8.2.140.0040.01124.66
8.2.130.0070.00726.16
8.2.120.0000.00822.31
8.2.110.0060.00321.99
8.2.100.0040.00817.64
8.2.90.0000.00818.91
8.2.80.0040.00418.04
8.2.70.0050.00517.37
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0040.00417.91
8.2.20.0040.00417.61
8.2.10.0070.00018.01
8.2.00.0070.00417.57
8.1.280.0070.00725.92
8.1.270.0080.00022.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0080.00419.16
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0080.00317.13
8.1.190.0030.00617.41
8.1.180.0050.00518.10
8.1.170.0030.00618.38
8.1.160.0040.00421.89
8.1.150.0000.00718.51
8.1.140.0040.00417.38
8.1.130.0030.00317.87
8.1.120.0000.01017.36
8.1.110.0000.00817.28
8.1.100.0000.00717.29
8.1.90.0000.00717.39
8.1.80.0040.00417.39
8.1.70.0060.00317.41
8.1.60.0040.00417.54
8.1.50.0050.00317.43
8.1.40.0080.00017.42
8.1.30.0030.00617.51
8.1.20.0000.00717.52
8.1.10.0000.00817.29
8.1.00.0070.00017.36
8.0.300.0070.00018.77
8.0.290.0040.00417.12
8.0.280.0030.00318.32
8.0.270.0000.00717.23
8.0.260.0000.00617.24
8.0.250.0040.00416.79
8.0.240.0050.00316.92
8.0.230.0000.00916.90
8.0.220.0030.00316.89
8.0.210.0000.00716.73
8.0.200.0030.00316.78
8.0.190.0040.00416.76
8.0.180.0040.00416.82
8.0.170.0050.00316.76
8.0.160.0030.00316.83
8.0.150.0040.00416.81
8.0.140.0000.00716.71
8.0.130.0000.00613.20
8.0.120.0040.00416.84
8.0.110.0000.00716.65
8.0.100.0030.00516.84
8.0.90.0000.00716.68
8.0.80.0040.01116.79
8.0.70.0000.00716.79
8.0.60.0040.00416.77
8.0.50.0000.00716.60
8.0.30.0120.00617.04
8.0.20.0110.00817.40
8.0.10.0000.00816.91
8.0.00.0070.01316.71
7.4.330.0050.00015.02
7.4.320.0060.00316.54
7.4.300.0060.00016.54
7.4.290.0000.00716.43
7.4.280.0000.00716.54
7.4.270.0040.00416.47
7.4.260.0000.00716.32
7.4.250.0000.00816.46
7.4.240.0020.00516.36
7.4.230.0060.00016.25
7.4.220.0090.01616.48
7.4.210.0100.00516.46
7.4.200.0040.00416.45
7.4.190.0000.00716.41
7.4.160.0060.01016.24
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0080.00816.30
7.4.120.0050.01216.42
7.4.110.0150.00316.56
7.4.100.0030.01416.14
7.4.90.0110.00616.39
7.4.80.0090.00919.39
7.4.70.0100.01016.38
7.4.60.0150.00016.43
7.4.50.0040.00416.54
7.4.40.0110.00322.77
7.4.30.0120.00416.48
7.4.00.0000.01015.00
7.3.330.0000.00512.89
7.3.320.0030.00313.05
7.3.310.0040.00416.27
7.3.300.0000.00716.05
7.3.290.0090.00616.04
7.3.280.0080.01016.12
7.3.270.0130.00317.40
7.3.260.0100.00716.21
7.3.250.0150.00616.28
7.3.240.0030.01416.13
7.3.230.0080.00916.39
7.3.210.0060.01316.16
7.3.200.0110.00719.39
7.3.190.0130.00316.30
7.3.180.0030.01316.59
7.3.170.0060.00916.27
7.3.160.0090.01216.28
7.3.120.0000.01314.71
7.2.330.0090.00916.51
7.2.320.0100.00716.52
7.2.310.0050.01516.25
7.2.300.0150.00016.31
7.2.290.0120.00616.28
7.2.00.0000.01218.95
7.1.200.0070.00715.48
7.1.100.0100.00318.03
7.1.70.0040.00416.79
7.1.60.0060.01319.33
7.1.50.0070.01316.83
7.1.00.0030.07322.48
7.0.200.0580.00614.83
7.0.140.0000.07322.20
7.0.60.0270.07719.93
7.0.50.0170.07017.80
7.0.40.0070.04320.19
7.0.30.0200.04720.02
7.0.20.0330.07720.09
7.0.10.0030.05020.21
7.0.00.0030.06020.16
5.6.280.0030.07321.07
5.6.210.0100.06020.62
5.6.200.0000.04718.19
5.6.190.0170.06020.67
5.6.180.0030.04020.41
5.6.170.0300.07320.46
5.6.160.0070.04718.06
5.6.150.0070.08318.16
5.6.140.0030.08718.14
5.6.130.0000.06318.11
5.6.120.0070.04321.00
5.6.110.0100.07721.13
5.6.100.0070.06320.97
5.6.90.0200.06021.12
5.6.80.0030.07320.53
5.5.350.0230.07720.41
5.5.340.0070.04317.92
5.5.330.0000.04320.19
5.5.320.0300.08320.31
5.5.310.0100.05020.29
5.5.300.0070.05018.01
5.5.290.0070.08717.97
5.5.280.0100.04320.88
5.5.270.0030.08020.79
5.5.260.0130.03320.65
5.5.250.0070.08020.57
5.5.240.0230.06720.28
5.4.450.0300.07719.39
5.4.440.0270.04019.11
5.4.430.0300.07319.41
5.4.420.0230.04019.57
5.4.410.0330.06319.41
5.4.400.0270.04719.09
5.4.390.0300.06019.22
5.4.380.0270.06319.25
5.4.370.0270.04019.05
5.4.360.0230.04019.08
5.4.350.0230.06719.13
5.4.340.0300.04719.16
5.4.320.0270.04719.23
5.4.310.0370.06018.81
5.4.300.0300.05719.15
5.4.290.0330.05719.25
5.4.280.0330.06019.12
5.4.270.0270.05719.21
5.4.260.0300.06318.91
5.4.250.0330.07018.91
5.4.240.0270.04019.07
5.4.230.0270.04019.07
5.4.220.0370.06318.78
5.4.210.0330.07319.21
5.4.200.0400.06319.04
5.4.190.0270.04318.80
5.4.180.0300.06719.14
5.4.170.0270.04019.12
5.4.160.0330.06319.05
5.4.150.0330.05018.77
5.4.140.0300.04716.27
5.4.130.0200.04016.30
5.4.120.0370.05716.45
5.4.110.0230.04716.30
5.4.100.0200.04316.23
5.4.90.0270.04316.21
5.4.80.0300.03016.41
5.4.70.0270.03316.50
5.4.60.0270.05316.43
5.4.50.0300.05016.18
5.4.40.0370.06016.36
5.4.30.0400.06016.27
5.4.20.0370.04716.45
5.4.10.0300.06716.36
5.4.00.0370.04315.71
5.3.290.0270.07714.57
5.3.280.0330.06714.62
5.3.270.0330.05314.63
5.3.260.0300.06714.51
5.3.250.0330.05714.48
5.3.240.0330.05714.63
5.3.230.0200.04314.44
5.3.220.0270.06714.41
5.3.210.0370.07014.52
5.3.200.0230.05714.40
5.3.190.0200.04714.41
5.3.180.0200.04014.52
5.3.170.0200.04014.54
5.3.160.0370.05714.54
5.3.150.0400.06014.54
5.3.140.0330.06714.50
5.3.130.0270.07714.42
5.3.120.0300.07014.40
5.3.110.0300.06014.41
5.3.100.0270.04713.87
5.3.90.0330.06713.88
5.3.80.0270.07013.79
5.3.70.0200.04013.81
5.3.60.0330.06314.10
5.3.50.0170.06713.80
5.3.40.0330.05313.72
5.3.30.0330.05713.78
5.3.20.0200.05713.78
5.3.10.0230.04013.68
5.3.00.0270.03713.68
5.2.170.0230.03010.99
5.2.160.0330.04311.05
5.2.150.0270.03011.08
5.2.140.0200.02711.29
5.2.130.0230.03711.01
5.2.120.0270.05011.14
5.2.110.0270.03311.00
5.2.100.0200.03010.93
5.2.90.0200.04311.15
5.2.80.0230.06311.00
5.2.70.0430.03311.04
5.2.60.0230.04310.91
5.2.50.0270.04011.03
5.2.40.0130.03010.90
5.2.30.0130.03311.14
5.2.20.0170.03710.77
5.2.10.0230.04710.76
5.2.00.0130.04010.78
5.1.60.0200.05310.55
5.1.50.0200.04010.55
5.1.40.0230.04710.55
5.1.30.0200.04710.55
5.1.20.0230.03710.55
5.1.10.0270.04710.55
5.1.00.0230.04010.55
5.0.50.0100.04710.55
5.0.40.0070.03010.55
5.0.30.0070.03710.55
5.0.20.0100.04310.55
5.0.10.0100.02310.55
5.0.00.0130.05710.55
4.4.90.0130.03010.55
4.4.80.0130.01010.55
4.4.70.0130.01710.55
4.4.60.0030.02010.55
4.4.50.0070.02010.55
4.4.40.0170.03710.55
4.4.30.0100.02710.55
4.4.20.0100.03010.55
4.4.10.0130.03310.55
4.4.00.0170.03010.55
4.3.110.0100.03310.55
4.3.100.0100.02310.55
4.3.90.0130.02710.55
4.3.80.0270.03710.55
4.3.70.0100.03310.55
4.3.60.0100.02310.55
4.3.50.0100.02010.55
4.3.40.0100.05010.55
4.3.30.0030.01710.55
4.3.20.0030.04010.55
4.3.10.0070.03310.55
4.3.00.0100.02010.55

preferences:
26.89 ms | 401 KiB | 5 Q