3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user= array('email' => 1, ); $requiredAttributes = array('email', 'id', 'first_name', 'last_name'); if ($missing = array_diff_key(array_flip($requiredAttributes), $user)) { $message = sprintf( 'Facebook API Error: User does not have required attributes. Missing: "%s"', implode(", ", array_keys($missing)) ); } var_dump($message);

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.0180.00018.43
8.3.50.0090.00922.01
8.3.40.0120.00318.70
8.3.30.0130.00718.84
8.3.20.0040.00420.30
8.3.10.0040.00423.65
8.3.00.0150.00319.25
8.2.180.0070.01016.32
8.2.170.0070.00722.96
8.2.160.0040.01120.39
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.08
8.2.110.0060.00322.10
8.2.100.0040.00717.50
8.2.90.0070.00019.09
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0070.00017.93
8.2.50.0030.00518.07
8.2.40.0000.00718.03
8.2.30.0000.00918.06
8.2.20.0070.00017.61
8.2.10.0040.00417.93
8.2.00.0000.00917.67
8.1.280.0130.00725.92
8.1.270.0040.00423.89
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0040.00423.79
8.1.230.0080.00319.15
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0000.00917.23
8.1.190.0050.00316.97
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0030.00321.94
8.1.150.0040.00418.75
8.1.140.0000.00717.43
8.1.130.0000.00717.82
8.1.120.0000.00717.32
8.1.110.0000.00817.34
8.1.100.0040.00417.42
8.1.90.0000.00717.36
8.1.80.0040.00417.35
8.1.70.0000.00717.35
8.1.60.0030.00517.41
8.1.50.0040.00417.41
8.1.40.0070.00017.33
8.1.30.0040.00417.60
8.1.20.0000.00717.46
8.1.10.0040.00417.45
8.1.00.0000.00717.37
8.0.300.0030.00518.77
8.0.290.0060.00316.63
8.0.280.0070.00018.42
8.0.270.0000.00817.10
8.0.260.0030.00517.13
8.0.250.0030.00316.94
8.0.240.0040.00416.95
8.0.230.0000.00816.83
8.0.220.0000.00716.70
8.0.210.0000.00816.68
8.0.200.0000.00716.81
8.0.190.0050.00216.88
8.0.180.0040.00316.87
8.0.170.0050.00316.88
8.0.160.0000.00716.88
8.0.150.0040.00416.79
8.0.140.0000.00716.75
8.0.130.0000.00813.25
8.0.120.0080.00016.69
8.0.110.0040.00416.80
8.0.100.0050.00216.87
8.0.90.0000.00716.74
8.0.80.0070.01016.87
8.0.70.0040.00416.82
8.0.60.0050.00216.67
8.0.50.0000.00716.78
8.0.30.0070.01317.00
8.0.20.0140.00517.40
8.0.10.0000.00717.00
8.0.00.0090.00816.52
7.4.330.0040.00415.02
7.4.320.0070.00016.45
7.4.300.0000.00616.44
7.4.290.0040.00416.50
7.4.280.0000.00716.48
7.4.270.0000.00616.38
7.4.260.0090.00016.51
7.4.250.0000.00716.50
7.4.240.0060.00216.45
7.4.230.0070.00016.59
7.4.220.0060.01216.29
7.4.210.0070.00716.48
7.4.200.0030.00316.26
7.4.160.0100.00616.47
7.4.150.0180.00317.40
7.4.140.0120.00917.86
7.4.130.0110.00616.39
7.4.120.0090.01116.37
7.4.110.0060.01016.25
7.4.100.0070.01016.23
7.4.90.0130.00516.59
7.4.80.0100.01019.39
7.4.70.0100.01016.44
7.4.60.0140.00316.44
7.4.50.0020.00216.37
7.4.40.0130.00316.44
7.4.30.0090.00616.57
7.4.00.0060.01014.54
7.3.330.0020.00413.12
7.3.320.0060.00012.90
7.3.310.0020.00516.06
7.3.300.0030.00316.15
7.3.290.0060.00916.11
7.3.280.0100.00716.18
7.3.270.0060.01617.40
7.3.260.0100.00716.27
7.3.250.0140.00716.34
7.3.240.0150.00916.09
7.3.230.0090.00916.39
7.3.210.0100.00616.09
7.3.200.0190.00319.39
7.3.190.0190.01116.24
7.3.180.0130.00316.13
7.3.170.0100.00716.27
7.3.160.0040.01216.15
7.2.330.0000.01716.46
7.2.320.0120.00616.53
7.2.310.0030.01316.56
7.2.300.0100.00616.39
7.2.290.0170.00016.46
7.1.200.0070.00715.55
7.1.70.0030.00716.90
7.1.60.0070.01819.32
7.1.50.0110.01116.71
7.1.00.0070.07322.54
7.0.200.0000.00916.75
7.0.140.0070.06721.95
7.0.60.0070.08320.04
7.0.50.0100.04717.88
7.0.40.0100.04020.03
7.0.30.0100.04720.17
7.0.20.0200.05320.33
7.0.10.0030.09020.00
7.0.00.0000.09020.16
5.6.280.0030.07320.86
5.6.210.0100.07320.75
5.6.200.0070.07718.23
5.6.190.0170.04720.50
5.6.180.0300.05720.67
5.6.170.0300.04720.62
5.6.160.0000.08720.37
5.6.150.0170.06018.15
5.6.140.0000.06318.19
5.6.130.0130.04718.22
5.6.120.0030.09021.05
5.6.110.0130.07320.98
5.6.100.0170.07321.08
5.6.90.0170.06720.97
5.6.80.0030.06020.36
5.6.70.3870.03320.37
5.5.350.0170.07720.52
5.5.340.0100.07717.98
5.5.330.0030.08720.43
5.5.320.0300.04720.27
5.5.310.0300.08020.41
5.5.300.0130.06717.90
5.5.290.0100.07718.01
5.5.280.0070.03720.96
5.5.270.0100.07320.83
5.5.260.0030.05720.88
5.5.250.0100.05320.58
5.5.240.0370.06020.14
5.4.450.0800.05319.47
5.4.440.0800.07019.54
5.4.430.0800.06019.23
5.4.420.0900.07319.46
5.4.410.0930.07719.41
5.4.400.0170.06018.95
5.4.390.0970.05318.95
5.4.380.1170.06719.31
5.4.370.1000.04719.16
5.4.360.0830.05018.81
5.4.350.0570.05718.80
5.4.340.0060.03311.97
5.4.320.0040.03812.46
5.4.310.0060.04412.45
5.4.300.0070.03512.46
5.4.290.0090.03412.45
5.4.280.0050.03512.35
5.4.270.0050.03612.35
5.4.260.0050.04512.35
5.4.250.0040.03812.35
5.4.240.0070.03412.35
5.4.230.0050.03712.34
5.4.220.0040.03612.34
5.4.210.0070.03312.34
5.4.200.0040.03912.34
5.4.190.0050.03612.34
5.4.180.0060.03512.34
5.4.170.0040.03712.35
5.4.160.0060.03512.34
5.4.150.0070.03412.34
5.4.140.0070.04012.03
5.4.130.0080.03212.02
5.4.120.0070.03311.97
5.4.110.0070.03311.96
5.4.100.0040.04011.96
5.4.90.0040.03811.96
5.4.80.0050.03711.96
5.4.70.0060.03411.96
5.4.60.0070.03211.96
5.4.50.0060.03411.96
5.4.40.0060.03411.95
5.4.30.0070.03411.95
5.4.20.0070.03711.95
5.4.10.0080.03211.95
5.4.00.0060.03611.44
5.3.290.0070.03812.80
5.3.280.0070.03812.71
5.3.270.0060.03912.73
5.3.260.0070.04012.72
5.3.250.0040.03812.72
5.3.240.0070.03412.72
5.3.230.0100.03112.70
5.3.220.0100.03212.68
5.3.210.0070.04012.68
5.3.200.0050.03712.68
5.3.190.0050.03812.68
5.3.180.0040.03812.68
5.3.170.0050.03712.67
5.3.160.0100.03212.68
5.3.150.0090.03312.67
5.3.140.0090.03312.66
5.3.130.0060.03812.65
5.3.120.0050.04212.65
5.3.110.0070.03912.66
5.3.100.0050.04512.12
5.3.90.0060.03912.09
5.3.80.0110.03412.07
5.3.70.0050.04012.07
5.3.60.0060.03912.06
5.3.50.0060.04512.00
5.3.40.0080.03912.00
5.3.30.0080.04111.94
5.3.20.0030.03811.72
5.3.10.0070.03411.69
5.3.00.0050.03711.68
5.2.170.0050.0309.18
5.2.160.0090.0339.17
5.2.150.0050.0309.18
5.2.140.0070.0299.18
5.2.130.0040.0309.13
5.2.120.0040.0299.14
5.2.110.0060.0289.14
5.2.100.0050.0299.13
5.2.90.0070.0279.14
5.2.80.0040.0319.14
5.2.70.0030.0329.14
5.2.60.0100.0269.09
5.2.50.0020.0339.06
5.2.40.0040.0309.03
5.2.30.0040.0319.01
5.2.20.0030.0309.00
5.2.10.0040.0288.92
5.2.00.0050.0288.78
5.1.60.0030.0258.06
5.1.50.0030.0268.06
5.1.40.0040.0248.04
5.1.30.0050.0258.39
5.1.20.0070.0238.41
5.1.10.0030.0268.14
5.1.00.0090.0208.14
5.0.50.0060.0186.62
5.0.40.0030.0196.48
5.0.30.0040.0316.29
5.0.20.0050.0186.26
5.0.10.0030.0206.24
5.0.00.0030.0386.23
4.4.90.0050.0174.78
4.4.80.0040.0134.75
4.4.70.0010.0174.76
4.4.60.0030.0154.75
4.4.50.0080.0144.77
4.4.40.0030.0264.71
4.4.30.0050.0134.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0070.0144.67
4.3.100.0050.0154.66
4.3.90.0050.0154.63
4.3.80.0010.0264.58
4.3.70.0040.0174.63
4.3.60.0030.0164.63
4.3.50.0030.0174.63
4.3.40.0030.0284.54
4.3.30.0010.0173.29
4.3.20.0030.0153.26
4.3.10.0030.0143.22
4.3.00.0170.0207.01

preferences:
46.71 ms | 401 KiB | 5 Q