3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['test' => 'test', 'yup' => 'nope', 'dick' => 'fart']; $arr2 = ['test', 'yup', 'yolo']; $diff = array_diff(array_keys($arr1), $arr2); var_dump($diff);

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.0080.01516.38
8.3.50.0110.01221.91
8.3.40.0070.00718.59
8.3.30.0070.00718.79
8.3.20.0040.00420.06
8.3.10.0000.00721.69
8.3.00.0040.00419.03
8.2.180.0070.01518.16
8.2.170.0060.00918.76
8.2.160.0040.01222.96
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0080.00019.54
8.2.110.0090.00022.08
8.2.100.0090.00317.72
8.2.90.0040.00417.75
8.2.80.0050.00317.97
8.2.70.0040.00417.93
8.2.60.0040.00417.91
8.2.50.0080.00018.10
8.2.40.0050.00320.63
8.2.30.0040.00419.47
8.2.20.0080.00017.71
8.2.10.0050.00318.15
8.2.00.0000.00717.71
8.1.280.0150.00025.92
8.1.270.0080.00018.73
8.1.260.0070.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00023.83
8.1.230.0110.00019.10
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0030.00518.57
8.1.160.0030.00521.86
8.1.150.0000.00718.91
8.1.140.0000.00717.28
8.1.130.0030.00317.79
8.1.120.0030.00317.46
8.1.110.0040.00417.26
8.1.100.0040.00417.41
8.1.90.0000.00817.36
8.1.80.0000.00817.38
8.1.70.0000.00717.28
8.1.60.0030.00617.52
8.1.50.0090.00317.34
8.1.40.0030.00617.41
8.1.30.0030.00617.60
8.1.20.0030.00517.50
8.1.10.0080.00017.37
8.1.00.0030.00617.26
8.0.300.0040.00419.46
8.0.290.0040.00416.63
8.0.280.0030.00318.41
8.0.270.0070.00017.16
8.0.260.0040.00417.21
8.0.250.0030.00316.87
8.0.240.0000.00616.91
8.0.230.0030.00316.82
8.0.220.0000.00716.82
8.0.210.0000.00716.84
8.0.200.0060.00016.89
8.0.190.0000.00816.88
8.0.180.0000.00716.73
8.0.170.0050.00316.89
8.0.160.0050.00216.78
8.0.150.0000.00716.62
8.0.140.0000.00716.81
8.0.130.0000.00513.21
8.0.120.0070.00016.68
8.0.110.0030.00316.79
8.0.100.0040.00416.63
8.0.90.0000.00916.67
8.0.80.0070.01116.80
8.0.70.0000.00816.63
8.0.60.0000.00716.79
8.0.50.0020.00516.82
8.0.30.0100.01217.00
8.0.20.0120.00917.40
8.0.10.0000.00716.73
8.0.00.0130.00516.61
7.4.330.0000.00615.03
7.4.320.0000.00716.45
7.4.300.0000.00616.52
7.4.290.0080.00016.54
7.4.280.0080.00316.43
7.4.270.0030.00316.38
7.4.260.0030.00316.33
7.4.250.0040.00416.30
7.4.240.0020.00516.42
7.4.230.0070.00016.52
7.4.220.0060.01216.30
7.4.210.0050.01016.45
7.4.200.0000.00616.59
7.4.160.0110.00616.38
7.4.150.0160.00917.40
7.4.140.0100.00717.86
7.4.130.0080.00916.38
7.4.120.0070.00916.47
7.4.110.0060.01416.33
7.4.100.0060.01216.33
7.4.90.0100.00716.30
7.4.80.0080.00819.39
7.4.70.0200.00316.31
7.4.60.0090.00616.44
7.4.50.0030.00616.29
7.4.40.0100.00716.46
7.4.30.0090.00916.32
7.4.00.0100.00814.73
7.3.330.0000.00513.06
7.3.320.0050.00013.03
7.3.310.0000.00816.15
7.3.300.0040.00416.11
7.3.290.0040.00416.17
7.3.280.0090.01016.15
7.3.270.0100.01317.40
7.3.260.0060.01016.09
7.3.250.0110.00716.31
7.3.240.0000.01716.27
7.3.230.0130.00616.39
7.3.210.0130.00316.17
7.3.200.0130.00319.39
7.3.190.0090.00616.16
7.3.180.0070.01316.21
7.3.170.0150.00816.28
7.3.160.0080.01116.08
7.3.120.0060.01214.66
7.3.110.0060.01014.88
7.3.100.0120.00314.66
7.3.90.0060.00614.87
7.3.80.0000.01514.99
7.3.70.0050.00514.48
7.3.60.0090.00614.44
7.3.50.0040.00714.73
7.3.40.0070.00714.48
7.3.30.0060.00314.48
7.3.20.0040.01416.33
7.3.10.0080.00316.32
7.3.00.0040.00816.30
7.2.330.0070.01016.33
7.2.320.0130.00416.59
7.2.310.0030.01316.47
7.2.300.0060.00916.59
7.2.290.0070.01016.45
7.2.250.0100.00714.66
7.2.240.0100.01015.14
7.2.230.0090.00915.18
7.2.220.0050.00514.74
7.2.210.0100.00714.61
7.2.200.0000.01015.00
7.2.190.0060.01214.68
7.2.180.0030.01014.84
7.2.170.0000.01514.85
7.2.00.0110.00619.46
7.1.330.0110.00415.81
7.1.320.0080.00515.80
7.1.310.0110.00415.69
7.1.300.0110.00415.38
7.1.290.0030.01315.89
7.1.280.0070.00715.79
7.1.270.0040.00815.64
7.1.260.0040.01115.75
7.1.200.0050.00515.59
7.1.100.0080.00317.84
7.1.70.0030.00617.04
7.1.60.0140.01119.46
7.1.50.0070.01416.51
7.1.00.0100.07022.43
7.0.200.0000.00916.50
7.0.140.0000.06022.00
7.0.60.0130.07719.78
7.0.50.0030.05717.91
7.0.40.0070.05020.24
7.0.30.0270.08720.21
7.0.20.0200.03720.17
7.0.10.0130.04720.33
7.0.00.0030.09020.00
5.6.280.0100.06721.03
5.6.210.0100.07020.60
5.6.200.0100.08318.15
5.6.190.0070.06720.57
5.6.180.0330.07320.41
5.6.170.0230.06020.51
5.6.160.0100.09020.37
5.6.150.0070.06318.21
5.6.140.0070.08018.15
5.6.130.0030.06318.21
5.6.120.0030.08020.98
5.6.110.0000.09320.98
5.6.100.0100.08021.13
5.6.90.0070.06321.05
5.6.80.0100.08020.50
5.5.350.0170.03320.42
5.5.340.0170.07018.02
5.5.330.0070.05020.28
5.5.320.0030.04020.24
5.5.310.0370.05720.27
5.5.300.0100.07717.88
5.5.290.0030.08717.91
5.5.280.0130.04320.88
5.5.270.0200.07020.74
5.5.260.0000.06720.75
5.5.250.0070.07720.63
5.5.240.0000.05320.06
5.4.450.0430.06019.14
5.4.440.0930.06019.49
5.4.430.0870.06019.40
5.4.420.0730.05719.51
5.4.410.1270.06319.34
5.4.400.1130.04019.15
5.4.390.0300.04318.57
5.4.380.0330.07318.72
5.4.370.0330.06718.68
5.4.360.0230.07018.68
5.4.350.0130.08318.70
5.4.340.0200.06318.50
5.4.320.0200.06018.61
5.4.310.0130.08318.49
5.4.300.0300.06318.50
5.4.290.0130.07718.46
5.4.280.0070.06318.55
5.4.270.0370.04018.67
5.4.260.0230.05718.64
5.4.250.0170.05318.67
5.4.240.0330.05018.62
5.4.230.0230.05318.72
5.4.220.0100.06018.60
5.4.210.0200.05718.49
5.4.200.0300.05016.67
5.4.190.0230.05318.73
5.4.180.0130.06318.57
5.4.170.0170.06318.50
5.4.160.0200.05018.68
5.4.150.0270.06718.51
5.4.140.0100.06716.30
5.4.130.0170.05316.04
5.4.120.0300.05716.23
5.4.110.0230.04716.19
5.4.100.0200.05316.22
5.4.90.0270.05016.08
5.4.80.0200.05016.23
5.4.70.0230.05016.20
5.4.60.0270.05716.27
5.4.50.0300.04716.28
5.4.40.0270.04716.21
5.4.30.0170.05316.22
5.4.20.0230.05316.10
5.4.10.0200.05016.13
5.4.00.0230.04715.67
5.3.290.0230.05314.76
5.3.280.0200.05014.54
5.3.270.0200.06014.52
5.3.260.0200.05714.61
5.3.250.0130.06314.57
5.3.240.0270.04714.56
5.3.230.0270.05714.51
5.3.220.0200.06714.53
5.3.210.0130.06014.57
5.3.200.0100.06314.60
5.3.190.0230.04714.48
5.3.180.0130.05714.48
5.3.170.0230.05014.55
5.3.160.0300.04714.57
5.3.150.0400.04714.64
5.3.140.0270.05314.50
5.3.130.0230.05014.54
5.3.120.0200.06314.65
5.3.110.0170.06014.65
5.3.100.0270.04714.09
5.3.90.0170.05314.05
5.3.80.0300.05013.93
5.3.70.0270.04013.99
5.3.60.0130.05313.90
5.3.50.0230.04713.84
5.3.40.0200.05313.86
5.3.30.0070.06013.89
5.3.20.0300.06013.68
5.3.10.0300.06013.57
5.3.00.0100.07713.71
5.2.170.0230.03711.11
5.2.160.0200.05311.28
5.2.150.0230.03711.13
5.2.140.0130.04711.27
5.2.130.0100.04711.08
5.2.120.0130.04711.06
5.2.110.0170.04311.13
5.2.100.0170.05311.09
5.2.90.0130.04711.15
5.2.80.0070.05011.13
5.2.70.0170.04311.10
5.2.60.0270.05011.07
5.2.50.0330.04011.05
5.2.40.0200.04711.05
5.2.30.0330.03710.89
5.2.20.0270.03711.00
5.2.10.0170.04010.95
5.2.00.0170.04010.80
5.1.60.0030.04010.03
5.1.50.0200.04310.05
5.1.40.0170.03310.00
5.1.30.0100.05310.36
5.1.20.0100.04010.41
5.1.10.0130.04310.05
5.1.00.0130.03710.04
5.0.50.0100.0308.52
5.0.40.0130.0278.47
5.0.30.0130.0408.24
5.0.20.0170.0208.23
5.0.10.0070.0308.20
5.0.00.0070.0438.29
4.4.90.0070.0235.87
4.4.80.0000.0305.89
4.4.70.0030.0275.89
4.4.60.0100.0205.87
4.4.50.0100.0205.82
4.4.40.0030.0375.87
4.4.30.0070.0235.89
4.4.20.0070.0235.92
4.4.10.0070.0235.97
4.4.00.0030.0405.90
4.3.110.0070.0235.80
4.3.100.0070.0235.81
4.3.90.0130.0175.80
4.3.80.0070.0375.80
4.3.70.0070.0205.78
4.3.60.0070.0205.81
4.3.50.0070.0205.85
4.3.40.0100.0305.75
4.3.30.0000.0274.58
4.3.20.0030.0274.54
4.3.10.0030.0234.48
4.3.00.0070.0179.35

preferences:
50.46 ms | 401 KiB | 5 Q