3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("1","2","3","4"); $array2 = array("1","1","3","4","5"); $result = array_diff ($array2 , $array1 ); echo '<pre>'; print_r($result); echo '</pre>';

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.0140.00018.54
8.3.30.0140.00318.82
8.3.20.0000.00820.02
8.3.10.0040.00421.60
8.3.00.0040.00419.26
8.2.170.0070.00722.96
8.2.160.0110.00320.50
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0050.00322.24
8.2.110.0030.00620.35
8.2.100.0040.00817.91
8.2.90.0000.00817.91
8.2.80.0000.00817.97
8.2.70.0000.00817.47
8.2.60.0080.00317.80
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0000.00718.05
8.2.20.0050.00217.57
8.2.10.0070.00018.03
8.2.00.0030.00517.71
8.1.270.0040.01222.14
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.02
8.1.230.0040.00720.97
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0030.00617.00
8.1.190.0040.00417.22
8.1.180.0050.00218.10
8.1.170.0050.00318.59
8.1.160.0040.00421.86
8.1.150.0000.00818.86
8.1.140.0040.00417.41
8.1.130.0000.00717.80
8.1.120.0080.00017.38
8.1.110.0040.00417.31
8.1.100.0040.00417.38
8.1.90.0020.00517.40
8.1.80.0040.00417.42
8.1.70.0030.00317.30
8.1.60.0030.00617.43
8.1.50.0040.00417.38
8.1.40.0000.00817.48
8.1.30.0040.00417.57
8.1.20.0040.00417.50
8.1.10.0000.00717.47
8.1.00.0040.00417.34
8.0.300.0030.00619.95
8.0.290.0040.00416.63
8.0.280.0000.00618.37
8.0.270.0000.00717.25
8.0.260.0030.00317.09
8.0.250.0000.00716.73
8.0.240.0040.00416.79
8.0.230.0030.00516.86
8.0.220.0050.00216.72
8.0.210.0030.00316.86
8.0.200.0000.00716.88
8.0.190.0000.00816.83
8.0.180.0000.00716.69
8.0.170.0030.00616.83
8.0.160.0080.00216.86
8.0.150.0000.00716.70
8.0.140.0030.00716.82
8.0.130.0000.00613.25
8.0.120.0000.00916.77
8.0.110.0040.00416.82
8.0.100.0030.00516.77
8.0.90.0040.00416.84
8.0.80.0120.00316.77
8.0.70.0000.00816.84
8.0.60.0000.00716.80
8.0.50.0040.00416.61
8.0.30.0100.01017.16
8.0.20.0080.01017.40
8.0.10.0060.00316.95
8.0.00.0070.01016.66
7.4.330.0050.00015.00
7.4.320.0000.00616.57
7.4.300.0070.00016.47
7.4.290.0080.00016.44
7.4.280.0030.00616.45
7.4.270.0040.00316.53
7.4.260.0070.00016.42
7.4.250.0000.00816.46
7.4.240.0020.00516.39
7.4.230.0030.00316.50
7.4.220.0070.01016.36
7.4.210.0050.00816.47
7.4.200.0030.00316.24
7.4.160.0120.00616.39
7.4.150.0130.00317.40
7.4.140.0160.00817.86
7.4.130.0110.00916.40
7.4.120.0080.00816.27
7.4.110.0040.01316.36
7.4.100.0030.01416.42
7.4.90.0060.01016.27
7.4.80.0090.01619.39
7.4.70.0110.00716.48
7.4.60.0030.01316.55
7.4.50.0000.00816.42
7.4.40.0090.00916.65
7.4.30.0130.00716.37
7.4.00.0090.00615.11
7.3.330.0000.00512.93
7.3.320.0000.00612.88
7.3.310.0030.00316.13
7.3.300.0030.00316.17
7.3.290.0040.01116.07
7.3.280.0120.00716.07
7.3.270.0160.00317.40
7.3.260.0130.00316.14
7.3.250.0060.01316.30
7.3.240.0140.00616.07
7.3.230.0060.01116.39
7.3.210.0080.00816.28
7.3.200.0080.00819.39
7.3.190.0060.01016.53
7.3.180.0030.01216.08
7.3.170.0060.00916.31
7.3.160.0130.00716.49
7.3.120.0070.00714.51
7.3.110.0030.01014.97
7.3.100.0030.00714.83
7.3.90.0060.00914.34
7.3.80.0030.00914.58
7.3.70.0000.01414.75
7.3.60.0030.00714.61
7.3.50.0060.00614.46
7.3.40.0030.01014.71
7.3.30.0060.00614.58
7.3.20.0040.00816.59
7.3.10.0030.01016.61
7.3.00.0070.00716.68
7.2.330.0080.00816.45
7.2.320.0060.01116.28
7.2.310.0150.00616.49
7.2.300.0060.01516.37
7.2.290.0090.00916.63
7.2.240.0030.01014.86
7.2.230.0040.01114.82
7.2.220.0100.00714.89
7.2.210.0090.00615.10
7.2.200.0000.01215.05
7.2.190.0060.00914.98
7.2.180.0080.00314.64
7.2.170.0040.00714.98
7.2.160.0100.00315.11
7.2.150.0060.00916.92
7.2.140.0100.00716.47
7.2.130.0090.00917.02
7.2.120.0000.01316.58
7.2.110.0060.00916.81
7.2.100.0090.00016.86
7.2.90.0100.00616.89
7.2.80.0030.01516.91
7.2.70.0090.00316.84
7.2.60.0120.00316.68
7.2.50.0090.00916.86
7.2.40.0040.00716.68
7.2.30.0090.00916.90
7.2.20.0110.00716.59
7.2.10.0000.01616.95
7.2.00.0020.01117.99
7.1.330.0000.01415.85
7.1.320.0090.00615.66
7.1.310.0100.00315.62
7.1.300.0030.00915.54
7.1.290.0060.00915.72
7.1.280.0030.00915.87
7.1.270.0100.00315.86
7.1.260.0040.01215.77
7.1.250.0080.00315.72
7.1.100.0070.00317.28
7.1.70.0030.00717.09
7.1.60.0030.00717.24
7.1.50.0070.01416.99
7.1.00.0070.06722.27
7.0.200.0130.00716.58
7.0.140.0030.06722.12
7.0.60.0130.06719.91
7.0.50.0230.06717.90
7.0.40.0070.08320.05
7.0.30.0330.07320.07
7.0.20.0130.06020.14
7.0.10.0130.06020.23
7.0.00.0070.06720.22
5.6.280.0070.07021.07
5.6.210.0100.07720.69
5.6.200.0070.03718.15
5.6.190.0100.09720.33
5.6.180.0500.06720.67
5.6.170.0300.03720.52
5.6.160.0070.08020.39
5.6.150.0070.06318.27
5.6.140.0130.07318.18
5.6.130.0030.06018.15
5.6.120.0070.04021.11
5.6.110.0100.08021.11
5.6.100.0070.07320.97
5.6.90.0070.07721.11
5.6.80.0030.04020.39
5.5.350.0030.08720.52
5.5.340.0000.04017.98
5.5.330.0100.08320.47
5.5.320.0000.05320.26
5.5.310.0270.07720.26
5.5.300.0100.07318.07
5.5.290.0070.07317.96
5.5.280.0100.08020.84
5.5.270.0070.03720.74
5.5.260.0130.06720.60
5.5.250.0270.06320.55
5.5.240.0200.07720.25
5.4.450.0330.06719.61
5.4.440.0230.05319.21
5.4.430.0200.05319.54
5.4.420.0670.00019.37
5.4.410.0630.00019.21
5.4.400.0630.00019.02
5.4.390.0600.00019.13
5.4.380.0630.00019.01
5.4.370.0630.00019.04
5.4.360.0600.00019.18
5.4.350.0730.00019.21
5.4.340.0050.03412.00
5.4.320.0070.03912.48
5.4.310.0030.04112.48
5.4.300.0040.03712.48
5.4.290.0060.03712.48
5.4.280.0030.03812.38
5.4.270.0060.03612.38
5.4.260.0100.03312.38
5.4.250.0100.04112.38
5.4.240.0050.03612.38
5.4.230.0050.04712.37
5.4.220.0080.03412.37
5.4.210.0050.04112.37
5.4.200.0050.03812.37
5.4.190.0070.03412.37
5.4.180.0020.04012.37
5.4.170.0060.03612.38
5.4.160.0100.04812.38
5.4.150.0120.03712.37
5.4.140.0030.04812.05
5.4.130.0090.03812.04
5.4.120.0020.04112.00
5.4.110.0070.03612.00
5.4.100.0040.03612.00
5.4.90.0020.03911.99
5.4.80.0050.03811.99
5.4.70.0060.03711.99
5.4.60.0050.04611.98
5.4.50.0060.03511.99
5.4.40.0030.04311.98
5.4.30.0070.03511.97
5.4.20.0050.04411.97
5.4.10.0070.03611.97
5.4.00.0080.03311.46
5.3.290.0060.04112.80
5.3.280.0050.04112.71
5.3.270.0060.03912.73
5.3.260.0030.04612.72
5.3.250.0070.05112.72
5.3.240.0100.04112.72
5.3.230.0050.03912.70
5.3.220.0060.03912.68
5.3.210.0040.04212.68
5.3.200.0040.03812.68
5.3.190.0050.03812.68
5.3.180.0050.03612.67
5.3.170.0060.03512.67
5.3.160.0080.03412.68
5.3.150.0060.03812.67
5.3.140.0040.03912.66
5.3.130.0060.04112.66
5.3.120.0090.04712.66
5.3.110.0060.03912.66
5.3.100.0110.03612.12
5.3.90.0080.04612.09
5.3.80.0040.04412.08
5.3.70.0040.03712.08
5.3.60.0070.04012.07
5.3.50.0040.03812.01
5.3.40.0070.03912.01
5.3.30.0060.05211.97
5.3.20.0070.03311.75
5.3.10.0070.04011.71
5.3.00.0100.03611.71
5.2.170.0060.0289.20
5.2.160.0060.0269.20
5.2.150.0090.0269.20
5.2.140.0050.0299.20
5.2.130.0030.0309.16
5.2.120.0030.0299.16
5.2.110.0060.0269.17
5.2.100.0060.0269.17
5.2.90.0040.0309.16
5.2.80.0040.0309.16
5.2.70.0040.0309.16
5.2.60.0070.0329.11
5.2.50.0090.0339.09
5.2.40.0040.0309.06
5.2.30.0030.0309.04
5.2.20.0070.0359.02
5.2.10.0040.0288.93
5.2.00.0020.0328.79
5.1.60.0040.0288.06
5.1.50.0020.0268.06
5.1.40.0040.0258.04
5.1.30.0030.0268.39
5.1.20.0040.0328.41
5.1.10.0050.0258.13
5.1.00.0040.0318.14
5.0.50.0040.0196.62
5.0.40.0030.0196.48
5.0.30.0050.0326.29
5.0.20.0070.0156.26
5.0.10.0030.0206.24
5.0.00.0040.0296.23
4.4.90.0030.0154.77
4.4.80.0050.0134.75
4.4.70.0010.0184.76
4.4.60.0030.0144.76
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0050.0134.76
4.4.20.0030.0154.84
4.4.10.0010.0184.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0040.0134.67
4.3.90.0030.0144.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0000.0184.63
4.3.40.0030.0234.54
4.3.30.0030.0143.29
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0030.0207.19

preferences:
43.97 ms | 400 KiB | 5 Q