3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('Uncategorised', 'Uncategorized'); $array2 = array('Uncategorised', 'Uncategorized', 'Test', 'General'); $result = array_diff($array1, $array2); print_r($result);

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.40.0150.00318.71
8.3.30.0090.00618.97
8.3.20.0050.00220.22
8.3.10.0080.00020.36
8.3.00.0080.00021.01
8.2.170.0100.01022.96
8.2.160.0040.00920.38
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0150.00426.16
8.2.120.0050.00319.36
8.2.110.0040.00719.27
8.2.100.0080.00417.59
8.2.90.0000.00719.23
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0050.00317.68
8.2.50.0000.00818.07
8.2.40.0000.00818.09
8.2.30.0000.00719.43
8.2.20.0040.00417.46
8.2.10.0000.00718.10
8.2.00.0060.00317.68
8.1.270.0080.00022.07
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0090.00320.89
8.1.220.0080.00018.77
8.1.210.0000.00718.82
8.1.200.0100.00017.22
8.1.190.0000.00717.40
8.1.180.0080.00018.10
8.1.170.0000.00818.65
8.1.160.0030.00518.80
8.1.150.0050.00218.73
8.1.140.0040.00417.38
8.1.130.0030.00317.76
8.1.120.0070.00417.39
8.1.110.0030.00517.36
8.1.100.0030.00317.37
8.1.90.0030.00317.42
8.1.80.0050.00317.36
8.1.70.0070.00017.30
8.1.60.0000.00817.54
8.1.50.0000.00917.43
8.1.40.0060.00317.43
8.1.30.0080.00017.55
8.1.20.0000.00817.57
8.1.10.0000.00717.46
8.1.00.0040.00417.25
8.0.300.0050.00219.97
8.0.290.0000.00717.05
8.0.280.0000.00718.35
8.0.270.0000.00717.10
8.0.260.0000.00917.08
8.0.250.0000.00716.93
8.0.240.0000.00716.79
8.0.230.0030.00316.77
8.0.220.0030.00316.71
8.0.210.0030.00316.87
8.0.200.0060.00016.88
8.0.190.0000.00716.78
8.0.180.0030.00316.75
8.0.170.0080.00016.73
8.0.160.0000.00716.72
8.0.150.0000.00816.84
8.0.140.0070.00316.68
8.0.130.0000.00513.30
8.0.120.0030.00616.80
8.0.110.0050.00216.86
8.0.100.0000.00816.66
8.0.90.0040.00416.88
8.0.80.0060.00916.91
8.0.70.0000.00716.85
8.0.60.0050.00316.68
8.0.50.0050.00216.61
8.0.30.0140.00717.12
8.0.20.0140.00417.40
8.0.10.0020.00516.89
8.0.00.0130.00516.75
7.4.330.0060.00015.02
7.4.320.0000.00716.53
7.4.300.0070.00016.34
7.4.290.0030.00316.41
7.4.280.0000.00716.35
7.4.270.0040.00416.36
7.4.260.0040.00816.43
7.4.250.0040.00416.40
7.4.240.0060.00216.51
7.4.230.0000.00716.50
7.4.220.0130.01216.32
7.4.210.0030.01016.46
7.4.200.0040.00316.62
7.4.160.0130.00916.16
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0110.01116.42
7.4.120.0110.00616.48
7.4.110.0090.01516.56
7.4.100.0060.01516.43
7.4.90.0110.00716.45
7.4.80.0130.01019.39
7.4.70.0110.00816.41
7.4.60.0030.01316.50
7.4.50.0000.00616.02
7.4.40.0100.00616.26
7.4.30.0000.01616.35
7.4.00.0080.00814.65
7.3.330.0030.00312.98
7.3.320.0000.00612.90
7.3.310.0000.00716.00
7.3.300.0060.00016.08
7.3.290.0100.00516.10
7.3.280.0100.00716.17
7.3.270.0120.00617.40
7.3.260.0070.01016.34
7.3.250.0180.00216.24
7.3.240.0110.00616.31
7.3.230.0160.00016.39
7.3.210.0110.00616.13
7.3.200.0040.01319.39
7.3.190.0060.01516.34
7.3.180.0000.01516.15
7.3.170.0090.01216.27
7.3.160.0060.01016.38
7.3.120.0130.00714.59
7.3.110.0100.00714.59
7.3.100.0070.00714.45
7.3.90.0060.00914.64
7.3.80.0060.00914.77
7.3.70.0090.00614.60
7.3.60.0070.00414.71
7.3.50.0070.00714.43
7.3.40.0110.00314.62
7.3.30.0040.00714.68
7.3.20.0060.00616.46
7.3.10.0030.00816.37
7.3.00.0050.00816.34
7.2.330.0060.01216.50
7.2.320.0090.00916.59
7.2.310.0090.00916.51
7.2.300.0160.00416.61
7.2.290.0120.01116.19
7.2.250.0100.00715.02
7.2.240.0070.01414.69
7.2.230.0000.01014.88
7.2.220.0110.00415.01
7.2.210.0000.01614.60
7.2.200.0060.00614.63
7.2.190.0030.01614.91
7.2.180.0070.01014.88
7.2.170.0030.01314.62
7.2.130.0080.00416.51
7.2.120.0090.00616.69
7.2.110.0120.00416.50
7.2.100.0040.01116.54
7.2.90.0080.00916.64
7.2.80.0090.00716.68
7.2.70.0150.00216.65
7.2.60.0850.00716.70
7.2.50.0090.01116.77
7.2.40.0140.00816.65
7.2.30.0110.00816.88
7.2.20.0100.00616.82
7.2.10.0120.00516.80
7.2.00.0080.00717.54
7.1.330.0000.01315.52
7.1.320.0070.01015.82
7.1.310.0070.01015.75
7.1.300.0090.00615.38
7.1.290.0060.00915.79
7.1.280.0110.00415.85
7.1.270.0060.00915.76
7.1.260.0150.00015.75
7.1.250.0030.00915.52
7.1.230.0060.00715.43
7.1.220.0150.00015.73
7.1.210.0110.00415.41
7.1.200.1930.00615.80
7.1.190.0050.01515.86
7.1.180.0090.00615.77
7.1.170.0000.01315.48
7.1.160.0140.00315.49
7.1.150.0070.00715.51
7.1.140.0530.00615.51
7.1.130.0130.00315.60
7.1.120.0130.00415.78
7.1.110.0110.00415.51
7.1.100.0080.00516.99
7.1.90.0100.00715.58
7.1.80.0280.00415.54
7.1.70.0090.00616.43
7.1.60.0070.00917.62
7.1.50.0160.00516.36
7.1.40.0140.00515.68
7.1.30.0130.00615.92
7.1.20.0140.00715.89
7.1.10.0100.00515.76
7.1.00.0050.04118.86
7.0.310.0100.00715.36
7.0.300.0030.00914.99
7.0.290.0090.00615.02
7.0.280.0070.00715.29
7.0.270.0090.00615.17
7.0.260.0100.01015.14
7.0.250.0620.00715.63
7.0.240.0070.00815.09
7.0.230.0080.00815.31
7.0.220.0100.00815.35
7.0.210.0120.00015.47
7.0.200.0120.00515.91
7.0.190.0080.00815.13
7.0.180.0130.00415.49
7.0.170.0090.00515.09
7.0.160.0150.00315.41
7.0.150.0100.00415.22
7.0.140.0090.03318.74
7.0.130.0000.01215.30
7.0.120.0180.00015.17
7.0.110.0130.00515.25
7.0.100.0080.00815.25
7.0.90.0110.00515.40
7.0.80.0120.00315.06
7.0.70.0250.00415.41
7.0.60.0110.03017.59
7.0.50.0140.03316.65
7.0.40.0150.03516.79
7.0.30.0280.03716.78
7.0.20.0150.04816.80
7.0.10.0060.05116.83
7.0.00.0100.02216.70
5.6.380.0120.00514.48
5.6.370.0120.00613.87
5.6.360.0130.00014.14
5.6.350.0180.00013.88
5.6.340.0110.00414.18
5.6.330.0130.00313.81
5.6.320.0090.00814.06
5.6.310.0030.01114.26
5.6.300.0110.00413.97
5.6.290.0070.01114.35
5.6.280.0070.03917.46
5.6.270.0120.00914.27
5.6.260.0130.00314.27
5.6.250.0090.00914.16
5.6.240.0160.00314.39
5.6.230.0090.00514.58
5.6.220.0140.00314.22
5.6.210.0080.03517.41
5.6.200.0100.04116.20
5.6.190.0080.04517.48
5.6.180.1900.02317.38
5.6.170.0180.02917.47
5.6.160.0090.04517.22
5.6.150.0180.03216.03
5.6.140.0170.02816.24
5.6.130.0080.03016.30
5.6.120.0070.04517.76
5.6.110.0090.04617.59
5.6.100.0090.04617.53
5.6.90.0070.03517.61
5.6.80.0030.02617.20
5.6.70.0120.00614.20
5.6.60.0150.00614.12
5.6.50.0110.00614.45
5.6.40.0170.00714.36
5.6.30.0080.00813.97
5.6.20.0130.00314.07
5.6.10.0040.00814.38
5.6.00.0170.00014.19
5.5.380.0110.00312.79
5.5.370.0110.00312.79
5.5.360.0000.01112.79
5.5.350.0120.03216.59
5.5.340.0150.03715.38
5.5.330.0100.04516.49
5.5.320.0220.02816.52
5.5.310.0230.03616.49
5.5.300.0130.03715.33
5.5.290.0150.03815.37
5.5.280.0170.03216.83
5.5.270.0110.04316.82
5.5.260.0070.02416.71
5.5.250.0040.02416.72
5.5.240.0160.04016.48
5.5.230.0030.00912.79
5.5.220.0000.01012.79
5.5.210.0110.00412.79
5.5.200.0030.01012.79
5.5.190.0070.00412.79
5.5.180.0090.00612.79
5.5.170.0110.00414.26
5.5.160.0070.00312.79
5.5.150.0080.00412.79
5.5.140.0090.00612.79
5.5.130.0060.00612.79
5.5.120.0080.00412.79
5.5.110.0080.00412.79
5.5.100.0110.00312.79
5.5.90.0140.00012.79
5.5.80.0060.00912.79
5.5.70.0090.00612.79
5.5.60.0100.00312.79
5.5.50.0080.00312.79
5.5.40.0080.00012.79
5.5.30.0080.00512.79
5.5.20.0090.00212.79
5.5.10.0080.00412.79
5.5.00.0140.00012.79
5.4.450.0220.02419.22
5.4.440.0380.02019.22
5.4.430.0090.02119.22
5.4.420.0120.03016.04
5.4.410.0060.03415.82
5.4.400.0140.02715.76
5.4.390.0100.02815.69
5.4.380.0090.02715.67
5.4.370.0110.02815.79
5.4.360.0070.03515.76
5.4.350.0260.02313.24
5.4.340.0140.02713.24
5.4.330.0050.00512.79
5.4.320.0160.02913.46
5.4.310.0170.02313.50
5.4.300.0220.01613.48
5.4.290.0100.02613.50
5.4.280.0100.02613.41
5.4.270.0160.02513.40
5.4.260.0130.02413.41
5.4.250.0170.01713.44
5.4.240.0150.02013.40
5.4.230.0160.02513.42
5.4.220.0170.01913.40
5.4.210.0150.02513.42
5.4.200.0130.02313.42
5.4.190.0090.03013.40
5.4.180.0050.02513.44
5.4.170.0020.03013.41
5.4.160.0050.02613.42
5.4.150.0080.02713.42
5.4.140.0060.02913.27
5.4.130.0110.02513.33
5.4.120.0120.02213.33
5.4.110.0100.02913.21
5.4.100.0100.01813.21
5.4.90.0090.02613.25
5.4.80.0070.02413.21
5.4.70.0100.02313.29
5.4.60.0110.02013.21
5.4.50.0140.02213.26
5.4.40.0070.02513.21
5.4.30.0100.02113.21
5.4.20.0070.02013.21
5.4.10.0130.01613.24
5.4.00.0080.02112.99
5.3.290.0070.02713.72
5.3.280.0080.02813.63
5.3.270.0060.03113.65
5.3.260.0090.02713.65
5.3.250.0090.02213.64
5.3.240.0060.02813.63
5.3.230.0070.02013.62
5.3.220.0110.02013.69
5.3.210.0070.03013.69
5.3.200.0050.02913.63
5.3.190.0070.03013.63
5.3.180.0120.02513.70
5.3.170.0030.03213.66
5.3.160.0140.01813.66
5.3.150.0090.03113.64
5.3.140.0100.02513.61
5.3.130.0090.02413.70
5.3.120.0100.02013.68
5.3.110.0070.02913.65
5.3.100.0020.02713.34
5.3.90.0070.02113.36
5.3.80.0070.02413.35
5.3.70.0110.02313.35
5.3.60.0100.02613.39
5.3.50.0130.02213.30
5.3.40.0120.02513.30
5.3.30.0150.02013.31
5.3.20.0090.02413.19
5.3.10.0070.02313.18
5.3.00.0060.02313.24
5.2.170.0100.02711.91
5.2.160.0210.01811.90
5.2.150.0180.02112.00
5.2.140.0160.02011.94
5.2.130.0130.02211.99
5.2.120.0160.01811.90
5.2.110.0100.01911.89
5.2.100.0120.02011.89
5.2.90.0040.02311.99
5.2.80.0020.02711.89
5.2.70.0020.02711.91
5.2.60.0070.02311.85
5.2.50.0110.02311.87
5.2.40.0080.02411.85
5.2.30.0140.02011.92
5.2.20.0190.01711.80
5.2.10.0110.01711.88
5.2.00.0030.02311.79
5.1.60.0090.01411.37
5.1.50.0070.01511.39
5.1.40.0040.01711.41
5.1.30.0060.01611.52
5.1.20.0040.02411.54
5.1.10.0090.01711.38
5.1.00.0090.01811.46
5.0.50.0040.01410.65
5.0.40.0080.01310.57
5.0.30.0050.01710.47
5.0.20.0000.01610.45
5.0.10.0050.01210.50
5.0.00.0030.02010.57
4.4.90.0030.0109.32
4.4.80.0080.0079.31
4.4.70.0060.0079.29
4.4.60.0000.0149.30
4.4.50.0020.0119.36
4.4.40.0030.0159.29
4.4.30.0070.0079.29
4.4.20.0050.0109.33
4.4.10.0060.0089.35
4.4.00.0030.0159.33
4.3.110.0020.0159.28
4.3.100.0020.0109.29
4.3.90.0040.0089.28
4.3.80.0020.0159.26
4.3.70.0020.0129.27
4.3.60.0040.0109.27
4.3.50.0040.0089.26
4.3.40.0020.0159.25
4.3.30.0040.0078.64
4.3.20.0020.0108.64
4.3.10.0040.0108.63
4.3.00.0010.00819.22

preferences:
49.76 ms | 400 KiB | 5 Q