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); if (array('1')) { var_dump("hello"); }

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.00718.18
8.3.50.0140.00522.04
8.3.40.0110.00418.59
8.3.30.0040.01519.11
8.3.20.0070.00020.34
8.3.10.0000.00823.56
8.3.00.0040.00419.38
8.2.180.0070.01016.63
8.2.170.0110.00422.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0110.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.35
8.2.110.0060.00322.43
8.2.100.0040.00817.75
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.68
8.2.50.0030.00618.07
8.2.40.0030.00618.22
8.2.30.0050.00517.98
8.2.20.0040.00417.59
8.2.10.0000.00817.96
8.2.00.0060.00317.77
8.1.280.0100.01025.92
8.1.270.0040.00423.84
8.1.260.0040.01126.35
8.1.250.0070.00028.09
8.1.240.0030.00623.92
8.1.230.0000.01119.01
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00418.58
8.1.160.0000.00721.86
8.1.150.0050.00218.79
8.1.140.0060.00317.26
8.1.130.0050.00217.88
8.1.120.0000.00717.44
8.1.110.0030.00517.39
8.1.100.0000.00817.41
8.1.90.0020.00517.32
8.1.80.0050.00317.43
8.1.70.0000.00717.36
8.1.60.0050.00317.52
8.1.50.0040.00417.43
8.1.40.0040.00417.48
8.1.30.0040.00417.50
8.1.20.0070.00017.50
8.1.10.0000.00717.49
8.1.00.0040.00417.33
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0070.00018.41
8.0.270.0000.00717.11
8.0.260.0030.00317.25
8.0.250.0000.00716.99
8.0.240.0030.00316.98
8.0.230.0030.00316.94
8.0.220.0030.00316.88
8.0.210.0050.00216.89
8.0.200.0060.00316.84
8.0.190.0070.00017.02
8.0.180.0040.00416.84
8.0.170.0060.00316.81
8.0.160.0070.00016.96
8.0.150.0070.00016.91
8.0.140.0040.00416.80
8.0.130.0000.00513.28
8.0.120.0040.00416.86
8.0.110.0000.00716.80
8.0.100.0030.00616.72
8.0.90.0040.00416.87
8.0.80.0040.01216.95
8.0.70.0040.00416.82
8.0.60.0000.00816.73
8.0.50.0020.00516.67
8.0.30.0110.01116.93
8.0.20.0090.01017.40
8.0.10.0040.00417.05
8.0.00.0110.00616.90
7.4.330.0000.00715.02
7.4.320.0050.00316.43
7.4.300.0030.00316.45
7.4.290.0050.00316.36
7.4.280.0000.00816.43
7.4.270.0050.00316.55
7.4.260.0030.00316.45
7.4.250.0060.00316.55
7.4.240.0060.00216.45
7.4.230.0070.00016.33
7.4.220.0110.00716.39
7.4.210.0180.00316.61
7.4.200.0070.00016.65
7.4.160.0110.00716.39
7.4.150.0080.01117.40
7.4.140.0080.01017.86
7.4.130.0090.01116.54
7.4.120.0100.00716.29
7.4.110.0030.01416.52
7.4.100.0130.00316.37
7.4.90.0150.00316.55
7.4.80.0060.01619.39
7.4.70.0070.01016.30
7.4.60.0030.01416.36
7.4.50.0020.00216.27
7.4.40.0000.01716.45
7.4.30.0090.00616.43
7.4.00.0070.00914.93
7.3.330.0070.00013.13
7.3.320.0030.00313.01
7.3.310.0030.00316.07
7.3.300.0080.00016.25
7.3.290.0100.00416.21
7.3.280.0080.01116.19
7.3.270.0080.01217.40
7.3.260.0140.00316.17
7.3.250.0110.00916.31
7.3.240.0170.00416.34
7.3.230.0100.00716.39
7.3.210.0060.00916.13
7.3.200.0070.01019.39
7.3.190.0160.00716.46
7.3.180.0060.01016.22
7.3.170.0140.00716.27
7.3.160.0120.00416.13
7.3.120.0060.01214.60
7.3.110.0060.00914.85
7.3.100.0060.01014.63
7.3.90.0070.00514.68
7.3.80.0030.01014.63
7.3.70.0070.00514.55
7.3.60.0060.00814.69
7.3.50.0060.00814.75
7.3.40.0000.01014.62
7.3.30.0090.00114.65
7.3.20.0030.01116.56
7.3.10.0060.00616.46
7.3.00.0090.00416.58
7.2.330.0130.00316.29
7.2.320.0150.00616.22
7.2.310.0150.00016.51
7.2.300.0170.00016.32
7.2.290.0030.02016.43
7.2.250.0070.01114.86
7.2.240.0060.01014.86
7.2.230.0080.00815.01
7.2.220.0030.01114.89
7.2.210.0080.00814.94
7.2.200.0060.00614.90
7.2.190.0070.00614.83
7.2.180.0000.01214.96
7.2.170.0090.00514.90
7.2.60.0000.01316.64
7.2.50.0090.00616.50
7.1.330.0070.00715.87
7.1.320.0100.00515.89
7.1.310.0030.01015.45
7.1.300.0080.00415.58
7.1.290.0030.00915.62
7.1.280.0070.00515.87
7.1.270.0040.01015.69
7.1.260.0100.00215.73
7.1.200.0060.00615.84
7.1.70.0000.00716.80
7.1.60.0140.01119.32
7.1.50.0070.01716.88
7.1.00.0070.07322.40
7.0.200.0000.00816.82
7.0.140.0100.06321.99
7.0.60.0170.06720.04
7.0.50.0030.07017.74
7.0.40.0070.08720.24
7.0.30.0200.04020.32
7.0.20.0270.06020.00
7.0.10.0200.07320.13
7.0.00.0170.06720.13
5.6.280.0030.07021.14
5.6.210.0070.07320.75
5.6.200.0070.06318.21
5.6.190.0100.07020.47
5.6.180.0230.04020.32
5.6.170.0370.06720.51
5.6.160.0000.04720.49
5.6.150.0030.05718.09
5.6.140.0000.04018.14
5.6.130.0130.07718.12
5.6.120.0170.08021.14
5.6.110.0030.07021.00
5.6.100.0070.04321.10
5.6.90.0100.07321.10
5.6.80.0130.07320.39
5.6.70.4500.03720.33
5.5.350.0100.04020.41
5.5.340.0130.04718.02
5.5.330.0030.05720.25
5.5.320.0330.07320.41
5.5.310.0370.07020.41
5.5.300.0030.06018.02
5.5.290.0070.04017.88
5.5.280.0130.06320.86
5.5.270.0100.08020.86
5.5.260.0030.07720.86
5.5.250.0070.08720.46
5.5.240.0130.03320.15
5.4.450.0900.05319.11
5.4.440.0700.07319.64
5.4.430.0770.05019.62
5.4.420.1070.05319.47
5.4.410.0770.06019.34
5.4.400.0800.05319.31
5.4.390.0830.06019.14
5.4.380.0670.05718.91
5.4.370.1070.04719.08
5.4.360.0700.06019.15
5.4.350.0730.05319.13
5.4.340.0060.03411.97
5.4.320.0070.04112.46
5.4.310.0070.03712.45
5.4.300.0050.03612.46
5.4.290.0060.04512.45
5.4.280.0070.03312.35
5.4.270.0070.04012.35
5.4.260.0050.04412.35
5.4.250.0060.03612.35
5.4.240.0070.03412.35
5.4.230.0050.03912.34
5.4.220.0070.03412.34
5.4.210.0040.03612.34
5.4.200.0040.03712.34
5.4.190.0070.04412.34
5.4.180.0020.03912.34
5.4.170.0080.03312.35
5.4.160.0040.04212.35
5.4.150.0090.03112.34
5.4.140.0070.03512.03
5.4.130.0080.03312.01
5.4.120.0060.03411.97
5.4.110.0060.03611.96
5.4.100.0070.03211.97
5.4.90.0090.03211.96
5.4.80.0110.03311.96
5.4.70.0050.04311.96
5.4.60.0070.03111.96
5.4.50.0080.03511.96
5.4.40.0060.03311.95
5.4.30.0080.04011.95
5.4.20.0060.03911.95
5.4.10.0050.03411.95
5.4.00.0070.03611.43
5.3.290.0040.04012.80
5.3.280.0050.03712.71
5.3.270.0080.03612.73
5.3.260.0050.03912.72
5.3.250.0060.04112.72
5.3.240.0090.03812.72
5.3.230.0120.04212.71
5.3.220.0070.03612.68
5.3.210.0060.03812.68
5.3.200.0060.03612.68
5.3.190.0070.03612.68
5.3.180.0090.03812.67
5.3.170.0070.03412.67
5.3.160.0060.03512.68
5.3.150.0090.03412.68
5.3.140.0050.03712.66
5.3.130.0110.03412.66
5.3.120.0060.03812.66
5.3.110.0050.04112.66
5.3.100.0120.04612.12
5.3.90.0090.04312.08
5.3.80.0030.03812.07
5.3.70.0040.03712.07
5.3.60.0100.03112.06
5.3.50.0060.03812.00
5.3.40.0070.03412.00
5.3.30.0060.04011.94
5.3.20.0090.03511.73
5.3.10.0080.03211.69
5.3.00.0080.03311.68
5.2.170.0040.0319.18
5.2.160.0050.0299.18
5.2.150.0070.0289.18
5.2.140.0050.0309.18
5.2.130.0020.0359.13
5.2.120.0070.0269.14
5.2.110.0050.0289.14
5.2.100.0050.0279.14
5.2.90.0050.0299.14
5.2.80.0050.0289.13
5.2.70.0100.0239.13
5.2.60.0040.0309.09
5.2.50.0060.0279.05
5.2.40.0070.0259.03
5.2.30.0070.0339.01
5.2.20.0040.0329.00
5.2.10.0050.0298.92
5.2.00.0050.0378.78
5.1.60.0060.0288.07
5.1.50.0040.0318.06
5.1.40.0050.0238.04
5.1.30.0030.0288.39
5.1.20.0060.0308.41
5.1.10.0020.0338.14
5.1.00.0030.0268.14
5.0.50.0050.0216.62
5.0.40.0030.0196.48
5.0.30.0070.0336.29
5.0.20.0030.0216.26
5.0.10.0030.0196.24
5.0.00.0030.0306.23
4.4.90.0040.0134.78
4.4.80.0020.0154.76
4.4.70.0060.0134.76
4.4.60.0050.0134.75
4.4.50.0020.0154.77
4.4.40.0010.0264.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0020.0154.85
4.4.00.0040.0234.76
4.3.110.0020.0164.67
4.3.100.0040.0134.67
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0060.0204.54
4.3.30.0020.0163.29
4.3.20.0020.0233.25
4.3.10.0020.0153.22
4.3.00.0100.0237.07

preferences:
49.85 ms | 401 KiB | 5 Q