3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a' => 123, 'b' => 213, 'c' => 321); $allowed = array_flip(['c','d']); echo json_encode(! array_diff_key($allowed, $arr));

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.0070.00718.43
8.3.50.0030.01718.29
8.3.40.0070.01418.72
8.3.30.0070.00718.55
8.3.20.0040.00419.08
8.3.10.0040.00421.57
8.3.00.0000.00822.43
8.2.180.0150.00025.92
8.2.170.0100.01018.98
8.2.160.0110.00422.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00820.70
8.2.110.0000.00919.38
8.2.100.0000.01217.84
8.2.90.0030.00517.91
8.2.80.0070.00018.09
8.2.70.0000.00817.63
8.2.60.0040.00417.50
8.2.50.0090.00018.07
8.2.40.0080.00017.97
8.2.30.0080.00017.92
8.2.20.0050.00218.14
8.2.10.0040.00417.98
8.2.00.0040.00419.45
8.1.280.0060.01525.92
8.1.270.0050.00324.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00020.82
8.1.230.0060.00622.67
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00317.22
8.1.180.0030.00518.10
8.1.170.0060.00318.70
8.1.160.0050.00218.87
8.1.150.0030.00318.83
8.1.140.0040.00519.03
8.1.130.0030.00619.04
8.1.120.0000.00717.28
8.1.110.0070.00017.43
8.1.100.0050.00217.43
8.1.90.0070.00317.45
8.1.80.0050.00517.43
8.1.70.0070.00317.34
8.1.60.0050.00217.47
8.1.50.0000.00717.46
8.1.40.0040.00417.49
8.1.30.0040.00417.60
8.1.20.0060.00317.59
8.1.10.0070.00017.51
8.1.00.0040.00417.44
8.0.300.0070.00020.04
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0070.00016.80
8.0.260.0030.00318.43
8.0.250.0030.00316.80
8.0.240.0030.00316.96
8.0.230.0060.00316.94
8.0.220.0000.00616.88
8.0.210.0050.00216.75
8.0.200.0030.00316.97
8.0.190.0060.00316.85
8.0.180.0050.00216.80
8.0.170.0050.00316.95
8.0.160.0070.00016.77
8.0.150.0050.00716.73
8.0.140.0080.00016.84
8.0.130.0000.00513.38
8.0.120.0040.00416.83
8.0.110.0040.00416.77
8.0.100.0040.00416.91
8.0.90.0000.00816.86
8.0.80.0030.01316.89
8.0.70.0040.00416.81
8.0.60.0000.00716.94
8.0.50.0040.00416.72
8.0.30.0090.01117.00
8.0.20.0210.00817.09
8.0.10.0150.01216.92
8.0.00.0100.01216.82
7.4.330.0020.00215.55
7.4.320.0060.00016.49
7.4.300.0040.00316.52
7.4.290.0000.00716.50
7.4.280.0090.00216.38
7.4.270.0070.00016.59
7.4.260.0000.00716.46
7.4.250.0000.00716.49
7.4.240.0030.00316.50
7.4.230.0030.00316.46
7.4.220.0000.00716.42
7.4.210.0140.00416.53
7.4.200.0000.00716.24
7.4.160.0100.00616.45
7.4.150.0140.00916.49
7.4.140.0100.01117.45
7.4.130.0090.01016.36
7.4.120.0120.00916.45
7.4.110.0090.01016.40
7.4.100.0110.00816.39
7.4.90.0140.00716.40
7.4.80.0120.00917.37
7.4.70.0210.01016.33
7.4.60.0110.01116.45
7.4.50.0080.01216.28
7.4.40.0100.01116.28
7.4.30.0140.00916.42
7.4.20.0120.00816.36
7.4.10.0110.00816.42
7.4.00.0130.00715.77
7.3.330.0060.00316.11
7.3.320.0060.00012.98
7.3.310.0030.00316.13
7.3.300.0060.00316.13
7.3.290.0000.00716.03
7.3.280.0080.01216.14
7.3.270.0110.00816.07
7.3.260.0110.00716.20
7.3.250.0130.00816.08
7.3.240.0130.00616.24
7.3.230.0120.00916.24
7.3.220.0110.01016.03
7.3.210.0140.00916.15
7.3.200.0100.01016.18
7.3.190.0180.00516.00
7.3.180.0110.01216.09
7.3.170.0130.00616.12
7.3.160.0090.01316.09
7.3.150.0130.00916.17
7.3.140.0190.00416.08
7.3.130.0130.00916.18
7.3.120.0100.00915.84
7.3.110.0110.00815.73
7.3.100.0070.00915.70
7.3.90.0110.00715.90
7.3.80.0070.01115.71
7.3.70.0100.00915.80
7.3.60.0110.00915.84
7.3.50.0080.01115.80
7.3.40.0080.00915.87
7.3.30.0120.00615.88
7.3.20.0120.00716.35
7.3.10.0330.00715.93
7.3.00.0270.00615.94
7.2.340.0150.01016.22
7.2.330.0180.00816.32
7.2.320.0130.01316.33
7.2.310.0120.01016.34
7.2.300.0130.01016.31
7.2.290.0120.01116.39
7.2.280.0120.01316.29
7.2.270.0150.01516.32
7.2.260.0140.00816.38
7.2.250.0110.01115.97
7.2.240.0120.00916.06
7.2.230.0150.00516.04
7.2.220.0110.01315.98
7.2.210.0140.00715.95
7.2.200.0140.00816.08
7.2.190.0100.01216.09
7.2.180.0110.00916.09
7.2.170.0150.00716.05
7.2.160.0220.00216.46
7.2.150.0170.01016.58
7.2.140.0130.01116.49
7.2.130.0240.01316.23
7.2.120.0280.00815.88
7.2.110.0290.01015.84
7.2.100.0320.00615.86
7.2.90.0300.00815.85
7.2.80.0570.00915.55
7.2.70.0490.00815.69
7.2.60.0550.00915.78
7.2.50.0550.00915.82
7.2.40.0550.00815.77
7.2.30.0590.00915.80
7.2.20.0500.01115.54
7.2.10.0500.01115.75
7.2.00.0440.00915.65
7.1.330.0110.01215.46
7.1.320.0190.00915.52
7.1.310.0120.00815.47
7.1.300.0180.00415.53
7.1.290.0110.00915.47
7.1.280.0120.00815.41
7.1.270.0160.00515.52
7.1.260.0160.00515.34
7.1.250.0250.00814.86
7.1.240.0350.00814.68
7.1.230.0380.00814.69
7.1.220.0310.00914.65
7.1.210.0330.00614.76
7.1.200.0660.00714.51
7.1.190.0550.00714.56
7.1.180.0470.01114.49
7.1.170.0470.00914.48
7.1.160.0420.00914.53
7.1.150.0470.01014.58
7.1.140.0550.00814.51
7.1.130.0490.00614.53
7.1.120.0530.00914.57
7.1.110.0770.00914.52
7.1.100.0770.00514.44
7.1.90.0950.01014.43
7.1.80.0920.00714.45
7.1.70.0620.00714.47
7.1.60.0600.00717.51
7.1.50.0910.00817.52
7.1.40.0980.00717.45
7.1.30.1100.00917.56
7.1.20.0980.01017.48
7.1.10.0650.00914.45
7.1.00.0590.00714.48
7.0.330.0400.00414.58
7.0.320.0700.00814.39
7.0.310.0660.00814.30
7.0.300.0460.00914.37
7.0.290.0250.01314.55
7.0.280.0560.00714.21
7.0.270.0290.00814.51
7.0.260.0250.00914.63
7.0.250.0270.00914.72
7.0.240.0380.00814.71
7.0.230.0270.00814.67
7.0.220.0310.00914.65
7.0.210.0260.01214.63
7.0.200.0240.01114.67
7.0.190.0360.00514.64
7.0.180.0310.00614.72
7.0.170.0300.01014.67
7.0.160.0280.00814.67
7.0.150.0170.01414.57
7.0.140.0260.00714.62
7.0.130.0280.01014.75
7.0.120.0300.00814.65
7.0.110.0250.00614.65
7.0.100.0200.00814.61
7.0.90.0210.00814.59
7.0.80.0320.00814.63
7.0.70.0290.00714.60
7.0.60.0260.00814.71
7.0.50.0180.01314.51
7.0.40.0240.00614.69
7.0.30.0190.01314.76
7.0.20.0260.00814.68
7.0.10.0250.00814.71
7.0.00.0260.00814.60
5.6.400.0220.00615.54
5.6.390.0150.01015.69
5.6.380.0130.01015.10
5.6.370.0130.01115.14
5.6.360.0180.01015.32
5.6.350.0150.01115.41
5.6.340.0160.01215.35
5.6.330.0130.01515.35
5.6.320.0180.00815.33
5.6.310.0180.00815.32
5.6.300.0150.00915.04
5.6.290.0150.01115.38
5.6.280.0160.01315.31
5.6.270.0160.00915.35
5.6.260.0200.00915.32
5.6.250.0120.01115.28
5.6.240.0160.01215.39
5.6.230.0170.01215.38
5.6.220.0170.00915.37
5.6.210.0100.01415.44
5.6.200.0150.01115.48
5.6.190.0120.01315.44
5.6.180.0190.01015.50
5.6.170.0140.01115.40
5.6.160.0180.01215.47
5.6.150.0170.01015.42
5.6.140.0180.00615.34
5.6.130.0110.01415.46
5.6.120.0160.01315.54
5.6.110.0170.00915.44
5.6.100.0140.01015.42
5.6.90.0120.01215.47
5.6.80.0170.00815.19
5.6.70.0160.00615.38
5.6.60.0170.00815.36
5.6.50.0160.00915.26
5.6.40.0150.00915.25
5.6.30.0190.00915.29
5.6.20.0170.00815.40
5.6.10.0170.00915.29
5.6.00.0150.01215.30

preferences:
56.73 ms | 401 KiB | 5 Q