3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requiredAttributes = array('email', 'id', 'first_name', 'last_name'); $user= array('email' => 1, ); $missing = array_diff_key(array_flip($requiredAttributes), $user); var_dump($missing);

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.0040.01516.58
8.3.60.0120.00618.55
8.3.50.0120.00722.10
8.3.40.0140.00018.59
8.3.30.0160.00318.79
8.3.20.0040.00420.20
8.3.10.0040.00423.53
8.3.00.0040.00419.13
8.2.180.0040.01118.41
8.2.170.0110.00322.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0140.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00322.22
8.2.110.0050.00520.97
8.2.100.0040.00717.47
8.2.90.0000.00817.90
8.2.80.0000.00817.97
8.2.70.0090.00017.48
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0030.00617.90
8.2.20.0050.00317.65
8.2.10.0050.00218.10
8.2.00.0000.00817.70
8.1.280.0070.01125.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0050.00522.54
8.1.230.0040.00720.96
8.1.220.0030.00617.74
8.1.210.0040.00418.79
8.1.200.0060.00717.12
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0040.00418.56
8.1.160.0000.00721.89
8.1.150.0000.00718.81
8.1.140.0050.00317.27
8.1.130.0070.00017.73
8.1.120.0000.00717.38
8.1.110.0080.00017.34
8.1.100.0020.00517.39
8.1.90.0000.00717.41
8.1.80.0040.00417.42
8.1.70.0030.00317.34
8.1.60.0030.00717.39
8.1.50.0060.00317.34
8.1.40.0000.00717.40
8.1.30.0080.00017.48
8.1.20.0050.00317.64
8.1.10.0080.00017.41
8.1.00.0000.00717.30
8.0.300.0060.00319.91
8.0.290.0000.00816.63
8.0.280.0040.00418.41
8.0.270.0030.00317.16
8.0.260.0000.00618.35
8.0.250.0030.00316.81
8.0.240.0030.00316.84
8.0.230.0030.00316.78
8.0.220.0000.00716.83
8.0.210.0080.00016.86
8.0.200.0060.00016.74
8.0.190.0040.00416.89
8.0.180.0040.00416.82
8.0.170.0000.00916.82
8.0.160.0000.00716.83
8.0.150.0030.00316.65
8.0.140.0060.00316.77
8.0.130.0030.00313.21
8.0.120.0000.01016.79
8.0.110.0030.00316.75
8.0.100.0050.00316.77
8.0.90.0030.00316.70
8.0.80.0100.00716.70
8.0.70.0000.00816.64
8.0.60.0070.00016.76
8.0.50.0040.00316.70
8.0.30.0120.00816.94
8.0.20.0110.01117.40
8.0.10.0000.00717.02
8.0.00.0080.00816.63
7.4.330.0030.00315.02
7.4.320.0040.00416.54
7.4.300.0060.00016.41
7.4.290.0030.00316.31
7.4.280.0070.00016.51
7.4.270.0030.00316.42
7.4.260.0000.00716.44
7.4.250.0050.00316.39
7.4.240.0040.00416.44
7.4.230.0050.00216.55
7.4.220.0150.00316.46
7.4.210.0030.01216.55
7.4.200.0070.00016.51
7.4.160.0120.00316.48
7.4.150.0150.00917.40
7.4.140.0070.01117.86
7.4.130.0070.01016.47
7.4.120.0090.00916.40
7.4.110.0080.00816.34
7.4.100.0060.01016.25
7.4.90.0110.00616.49
7.4.80.0130.00719.39
7.4.70.0070.01016.36
7.4.60.0120.00316.62
7.4.50.0000.00816.40
7.4.40.0110.00516.41
7.4.30.0070.01016.45
7.4.00.0070.00714.93
7.3.330.0030.00313.05
7.3.320.0000.00512.98
7.3.310.0070.00016.09
7.3.300.0000.00916.04
7.3.290.0080.00716.16
7.3.280.0070.01116.15
7.3.270.0120.00717.40
7.3.260.0120.00616.16
7.3.250.0080.01216.33
7.3.240.0150.00816.35
7.3.230.0030.01316.39
7.3.210.0130.00316.28
7.3.200.0100.00719.39
7.3.190.0090.01316.02
7.3.180.0070.01016.32
7.3.170.0120.00916.30
7.3.160.0030.01216.18
7.2.330.0030.01416.62
7.2.320.0170.00616.55
7.2.310.0090.01016.65
7.2.300.0090.00916.57
7.2.290.0110.00716.53
7.2.110.0100.00316.37
7.2.100.0000.01216.53
7.2.90.0030.01016.31
7.2.80.0070.00716.59
7.2.70.0070.00316.48
7.2.60.0000.01417.00
7.2.50.0030.01416.59
7.2.40.0070.00316.37
7.2.30.0060.00616.88
7.2.20.0070.00316.46
7.2.10.0080.00416.78
7.2.00.0020.00917.97
7.1.230.0030.00715.74
7.1.220.0030.00915.64
7.1.210.0030.01015.59
7.1.200.0030.00915.66
7.1.190.0030.00615.73
7.1.180.0070.00715.76
7.1.170.0030.00615.80
7.1.160.0040.00415.68
7.1.150.0070.00715.45
7.1.140.0080.00415.63
7.1.130.0090.00415.72
7.1.120.0000.01215.53
7.1.110.0070.00715.60
7.1.100.0040.00817.08
7.1.90.0030.00915.64
7.1.80.0000.01215.62
7.1.70.0040.00516.41
7.1.60.0040.01617.42
7.1.50.0200.00825.17
7.1.40.0030.01415.99
7.1.30.0060.00915.95
7.1.20.0070.01015.72
7.1.10.0060.00615.85
7.1.00.0030.04219.03
7.0.310.0080.00015.34
7.0.300.0080.00415.21
7.0.290.0030.00915.35
7.0.280.0060.00615.35
7.0.270.0060.00315.35
7.0.260.0070.00415.14
7.0.250.0040.00715.48
7.0.240.0060.00615.14
7.0.230.0030.00615.38
7.0.220.0060.00315.09
7.0.210.0120.00315.38
7.0.200.0060.00315.99
7.0.190.0030.00915.35
7.0.180.0070.00015.52
7.0.170.0000.00715.29
7.0.160.0000.01115.34
7.0.150.0000.01315.09
7.0.140.0000.04118.83
7.0.130.0000.00815.54
7.0.120.0030.00915.18
7.0.110.0070.00815.41
7.0.100.0090.00615.05
7.0.90.0080.00415.29
7.0.80.0080.00615.49
7.0.70.0030.00715.48
7.0.60.0000.04717.66
7.0.50.0080.03516.61
7.0.40.0040.03816.72
7.0.30.0050.02916.71
7.0.20.0180.02916.74
7.0.10.0120.04016.80
7.0.00.0070.04216.76
5.6.380.0000.01014.28
5.6.370.0000.01514.36
5.6.360.0070.00314.10
5.6.350.0000.01113.83
5.6.340.0080.00414.00
5.6.330.0030.00914.21
5.6.320.0030.01014.11
5.6.310.0000.01214.18
5.6.300.0070.00414.04
5.6.290.0090.00314.23
5.6.280.0020.04217.54
5.6.270.0030.00714.00
5.6.260.0030.01013.95
5.6.250.0080.00014.28
5.6.240.0080.00414.21
5.6.230.0030.00914.38
5.6.220.0050.00514.18
5.6.210.0090.04017.44
5.6.200.0110.02016.12
5.6.190.0100.04617.36
5.6.180.0150.04217.38
5.6.170.0190.02417.18
5.6.160.0050.04717.39
5.6.150.0070.03216.29
5.6.140.0070.02016.14
5.6.130.0070.04716.11
5.6.120.0100.04317.61
5.6.110.0150.03717.60
5.6.100.0150.02517.72
5.6.90.0080.04317.59
5.6.80.0020.02717.06
5.6.70.2290.02117.35
5.6.60.0040.01113.96
5.6.50.0120.00014.12
5.6.40.0040.00814.21
5.6.30.0060.00614.22
5.6.20.0030.01214.40
5.6.10.0070.00714.04
5.6.00.0060.00313.98
5.5.380.0040.00411.28
5.5.370.0000.00710.88
5.5.360.0060.00010.95
5.5.350.0060.02115.78
5.5.340.0050.02314.38
5.5.330.0080.03015.81
5.5.320.0170.03015.46
5.5.310.0190.03815.59
5.5.300.0140.03514.61
5.5.290.0060.02314.40
5.5.280.0050.03915.87
5.5.270.0090.04215.94
5.5.260.0040.02315.91
5.5.250.0020.02915.75
5.5.240.0150.02515.49
5.5.230.0080.00310.90
5.5.220.0080.00310.81
5.5.210.0040.00810.97
5.5.200.0040.00411.02
5.5.190.0080.00010.98
5.5.180.0000.00610.94
5.5.170.0040.01113.99
5.5.160.0000.00810.79
5.5.150.0050.00310.95
5.5.140.0000.00810.73
5.5.130.0030.00610.96
5.5.120.0000.00510.84
5.5.110.0070.00010.69
5.5.100.0030.00310.98
5.5.90.0030.00310.73
5.5.80.0000.01010.77
5.5.70.0000.00610.83
5.5.60.0000.00610.89
5.5.50.0000.01011.02
5.5.40.0040.00410.97
5.5.30.0000.00811.05
5.5.20.0110.00010.73
5.5.10.0050.00010.77
5.5.00.0030.00311.06
5.4.450.0670.03415.08
5.4.440.0400.03515.37
5.4.430.0540.03615.19
5.4.420.0410.03315.15
5.4.410.0500.03015.07
5.4.400.0400.03014.90
5.4.390.0070.03214.91
5.4.380.0430.03014.77
5.4.370.0220.02714.88
5.4.360.0520.02814.88
5.4.350.0430.02014.96
5.4.340.0030.02211.43
5.4.330.0000.01010.56
5.4.320.0050.02011.65
5.4.310.0040.02111.76
5.4.300.0020.02411.55
5.4.290.0060.02011.60
5.4.280.0060.01811.59
5.4.270.0050.01811.63
5.4.260.0070.01811.54
5.4.250.0040.02211.70
5.4.240.0030.02211.50
5.4.230.0060.02011.58
5.4.220.0050.01811.41
5.4.210.0060.01811.68
5.4.200.0060.02011.60
5.4.190.0050.02011.58
5.4.180.0020.02411.64
5.4.170.0060.01911.53
5.4.160.0050.02411.56
5.4.150.0060.01911.43
5.4.140.0040.02211.41
5.4.130.0060.01911.44
5.4.120.0040.02511.39
5.4.110.0060.02111.53
5.4.100.0020.02311.56
5.4.90.0040.02511.47
5.4.80.0060.02011.55
5.4.70.0060.01911.26
5.4.60.0050.01811.42
5.4.50.0030.02311.37
5.4.40.0040.02111.49
5.4.30.0040.02011.40
5.4.20.0050.01811.38
5.4.10.0030.02211.25
5.4.00.0040.02011.00
5.3.290.0060.02211.66
5.3.280.0020.02511.54
5.3.270.0080.02311.58
5.3.260.0040.02711.60
5.3.250.0050.02311.58
5.3.240.0050.02311.45
5.3.230.0070.02011.56
5.3.220.0060.02011.40
5.3.210.0030.02411.48
5.3.200.0050.02011.44
5.3.190.0030.02211.55
5.3.180.0060.02011.63
5.3.170.0040.01911.63
5.3.160.0070.01911.46
5.3.150.0040.02411.57
5.3.140.0040.02111.57
5.3.130.0030.02711.56
5.3.120.0050.02211.45
5.3.110.0050.02111.56
5.3.100.0050.02111.34
5.3.90.0060.01811.17
5.3.80.0020.02311.16
5.3.70.0060.02111.18
5.3.60.0050.02511.32
5.3.50.0070.02011.17
5.3.40.0060.02211.11
5.3.30.0060.01611.21
5.3.20.0050.01810.97
5.3.10.0060.01810.85
5.3.00.0040.02510.92
5.2.170.0070.0149.33
5.2.160.0060.0159.33
5.2.150.0050.0179.30
5.2.140.0030.0199.27
5.2.130.0030.0189.25
5.2.120.0030.0169.30
5.2.110.0050.0179.29
5.2.100.0050.0169.29
5.2.90.0060.0179.11
5.2.80.0050.0179.21
5.2.70.0030.0199.10
5.2.60.0040.0189.17
5.2.50.0030.0189.19
5.2.40.0020.0179.19
5.2.30.0030.0169.16
5.2.20.0060.0139.11
5.2.10.0020.0198.98
5.2.00.0070.0148.95
5.1.60.0050.0128.55
5.1.50.0040.0148.55
5.1.40.0020.0148.54
5.1.30.0030.0148.72
5.1.20.0020.0168.73
5.1.10.0050.0148.59
5.1.00.0030.0158.59
5.0.50.0040.0107.83
5.0.40.0040.0167.76
5.0.30.0040.0157.67
5.0.20.0040.0117.65
5.0.10.0010.0137.64
5.0.00.0020.0187.64
4.4.90.0050.0096.91
4.4.80.0010.0126.90
4.4.70.0030.0096.90
4.4.60.0040.0106.90
4.4.50.0030.0116.91
4.4.40.0030.0136.88
4.4.30.0030.0096.90
4.4.20.0010.0106.95
4.4.10.0040.0076.95
4.4.00.0010.0146.90
4.3.110.0040.0076.86
4.3.100.0030.0086.86
4.3.90.0020.0106.84
4.3.80.0010.0146.81
4.3.70.0040.0076.83
4.3.60.0010.0116.84
4.3.50.0020.0106.83
4.3.40.0040.0136.79
4.3.30.0020.0096.16
4.3.20.0020.0106.15
4.3.10.0020.0116.13
4.3.00.0100.0118.03

preferences:
48.79 ms | 401 KiB | 5 Q