3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array(10, 20, 30); $items1 = array(11, 21, 31); $udiff = array_udiff($items, $items1, function ($a, $b) { $result = $a === $b; print("Comparing $a to $b, result is $result\n"); return $result; }); var_dump($items); var_dump($items1); var_dump($udiff);

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.70.0070.01416.88
8.3.60.0170.00316.63
8.3.50.0080.01122.93
8.3.40.0090.01218.49
8.3.30.0070.00719.09
8.3.20.0000.00720.21
8.3.10.0080.00023.48
8.3.00.0040.00419.38
8.2.180.0060.01018.54
8.2.170.0110.00422.96
8.2.160.0110.00320.47
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00321.02
8.2.110.0090.00022.11
8.2.100.0040.00718.16
8.2.90.0050.00519.22
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0050.00319.88
8.2.30.0000.00819.72
8.2.20.0080.00017.58
8.2.10.0040.00418.14
8.2.00.0050.00217.62
8.1.280.0000.01425.92
8.1.270.0000.00823.97
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00323.84
8.1.230.0040.00719.15
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0000.00821.95
8.1.150.0040.00418.95
8.1.140.0040.00417.45
8.1.130.0040.00417.71
8.1.120.0000.00817.38
8.1.110.0030.00617.32
8.1.100.0070.00017.42
8.1.90.0000.00817.29
8.1.80.0040.00417.40
8.1.70.0000.00717.38
8.1.60.0080.00017.48
8.1.50.0040.00417.54
8.1.40.0040.00417.45
8.1.30.0030.00517.55
8.1.20.0000.00717.72
8.1.10.0000.00717.56
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0040.00418.45
8.0.270.0040.00417.16
8.0.260.0000.00617.26
8.0.250.0070.00016.98
8.0.240.0000.00717.01
8.0.230.0040.00416.95
8.0.220.0030.00316.95
8.0.210.0040.00416.89
8.0.200.0050.00217.00
8.0.190.0060.00316.89
8.0.180.0070.00016.93
8.0.170.0000.00717.02
8.0.160.0040.00416.82
8.0.150.0040.00316.83
8.0.140.0000.00716.72
8.0.130.0060.00013.34
8.0.120.0040.00416.93
8.0.110.0070.00016.81
8.0.100.0040.00316.99
8.0.90.0070.00016.73
8.0.80.0040.01116.84
8.0.70.0050.00216.94
8.0.60.0050.00316.80
8.0.50.0000.00816.88
8.0.30.0110.00917.25
8.0.20.0090.00917.40
8.0.10.0000.00716.95
8.0.00.0100.00716.69
7.4.330.0060.00015.00
7.4.320.0000.00716.58
7.4.300.0000.00716.60
7.4.290.0030.00316.61
7.4.280.0040.00416.49
7.4.270.0050.00316.59
7.4.260.0070.00016.46
7.4.250.0040.00416.44
7.4.240.0020.00616.51
7.4.230.0000.00716.49
7.4.220.0110.00716.46
7.4.210.0110.00416.54
7.4.200.0030.00316.51
7.4.160.0110.00516.70
7.4.150.0070.01117.40
7.4.140.0140.00517.86
7.4.130.0090.01016.48
7.4.120.0050.01316.62
7.4.110.0100.01316.62
7.4.100.0080.01816.44
7.4.90.0090.00916.27
7.4.80.0120.01319.39
7.4.70.0040.01216.53
7.4.60.0100.00616.40
7.4.50.0000.00816.66
7.4.40.0110.00616.45
7.4.30.0100.00616.38
7.4.00.0000.01315.09
7.3.330.0000.00513.30
7.3.320.0000.00613.30
7.3.310.0030.00316.28
7.3.300.0000.00716.34
7.3.290.0090.00616.35
7.3.280.0070.01116.28
7.3.270.0090.00917.40
7.3.260.0150.00916.57
7.3.250.0080.00916.46
7.3.240.0100.00716.25
7.3.230.0100.01416.39
7.3.210.0060.00916.39
7.3.200.0040.01319.39
7.3.190.0160.00616.31
7.3.180.0070.01016.28
7.3.170.0060.01116.49
7.3.160.0030.01216.43
7.2.330.0130.01016.48
7.2.320.0110.01016.73
7.2.310.0060.01216.54
7.2.300.0060.00916.48
7.2.290.0000.01816.64
7.2.60.0150.01516.58
7.2.00.0030.00919.55
7.1.200.0040.00715.88
7.1.70.0040.00417.03
7.1.60.0000.01017.13
7.1.50.0140.00016.61
7.1.00.0030.07722.45
7.0.200.0000.01716.83
7.0.140.0170.06321.95
7.0.60.0070.08019.90
7.0.50.0130.07317.88
7.0.40.0070.04320.16
7.0.30.0230.04320.22
7.0.20.0230.07720.13
7.0.10.0100.05720.34
7.0.00.0070.07020.22
5.6.280.0000.07720.79
5.6.210.0130.07720.71
5.6.200.0100.07718.19
5.6.190.0100.04020.77
5.6.180.0400.05020.48
5.6.170.0230.07720.62
5.6.160.0030.05020.55
5.6.150.0070.08018.15
5.6.140.0100.03318.24
5.6.130.0070.04718.11
5.6.120.0070.05320.83
5.6.110.0100.06021.12
5.6.100.0070.08021.09
5.6.90.0270.07020.99
5.6.80.0300.06020.53
5.5.350.0200.08320.35
5.5.340.0030.07718.08
5.5.330.0070.08720.42
5.5.320.0370.05320.35
5.5.310.0400.07020.27
5.5.300.0070.08317.98
5.5.290.0000.05018.05
5.5.280.0100.07720.65
5.5.270.0130.07720.92
5.5.260.0100.03720.96
5.5.250.0130.07320.78
5.5.240.0170.06320.19
5.4.450.0330.05019.55
5.4.440.0470.04719.47
5.4.430.0330.04319.47
5.4.420.0330.03319.41
5.4.410.0770.04019.37
5.4.400.0370.04019.24
5.4.390.0330.04719.31
5.4.380.0270.05718.52
5.4.370.0470.05018.77
5.4.360.0470.07018.71
5.4.350.0370.05018.78
5.4.340.0330.05018.55
5.4.320.0080.03612.50
5.4.310.0040.04012.50
5.4.300.0100.03212.51
5.4.290.0070.03512.50
5.4.280.0020.03812.40
5.4.270.0070.03412.39
5.4.260.0100.03212.40
5.4.250.0080.03412.40
5.4.240.0040.03712.39
5.4.230.0040.03912.39
5.4.220.0070.03412.39
5.4.210.0140.03112.39
5.4.200.0070.03612.39
5.4.190.0100.03112.38
5.4.180.0100.03712.38
5.4.170.0040.03612.39
5.4.160.0050.03612.39
5.4.150.0010.04412.39
5.4.140.0060.03712.07
5.4.130.0050.03512.05
5.4.120.0050.03612.02
5.4.110.0040.03712.01
5.4.100.0050.03512.02
5.4.90.0050.03712.02
5.4.80.0040.03812.01
5.4.70.0050.04212.00
5.4.60.0040.03612.01
5.4.50.0050.03612.00
5.4.40.0080.03212.00
5.4.30.0060.03411.99
5.4.20.0040.03612.00
5.4.10.0030.03611.99
5.4.00.0060.03711.48
5.3.290.0050.04112.80
5.3.280.0080.03712.71
5.3.270.0080.04012.73
5.3.260.0080.03712.72
5.3.250.0100.03212.72
5.3.240.0080.03412.72
5.3.230.0060.03712.71
5.3.220.0070.03612.68
5.3.210.0050.04212.68
5.3.200.0040.03712.68
5.3.190.0060.03612.68
5.3.180.0090.03412.67
5.3.170.0070.03612.67
5.3.160.0060.03512.67
5.3.150.0050.03712.67
5.3.140.0070.03312.66
5.3.130.0080.04112.66
5.3.120.0070.03712.66
5.3.110.0050.03912.65
5.3.100.0030.03812.12
5.3.90.0040.03812.10
5.3.80.0040.03812.09
5.3.70.0040.03712.09
5.3.60.0080.03712.08
5.3.50.0090.04212.02
5.3.40.0030.04312.02
5.3.30.0050.03511.98
5.3.20.0030.03711.76
5.3.10.0060.03411.72
5.3.00.0090.03411.72
5.2.170.0050.0369.18
5.2.160.0060.0309.19
5.2.150.0050.0309.18
5.2.140.0070.0309.18
5.2.130.0050.0289.14
5.2.120.0040.0329.14
5.2.110.0040.0309.14
5.2.100.0070.0289.14
5.2.90.0050.0279.14
5.2.80.0030.0329.14
5.2.70.0050.0299.14
5.2.60.0050.0299.09
5.2.50.0060.0309.06
5.2.40.0070.0339.04
5.2.30.0050.0289.01
5.2.20.0050.0309.00
5.2.10.0070.0268.93
5.2.00.0060.0298.79
5.1.60.0060.0228.07
5.1.50.0090.0208.07
5.1.40.0050.0238.04
5.1.30.0060.0248.39
5.1.20.0030.0278.42
5.1.10.0040.0288.14
5.1.00.0060.0268.14
5.0.50.0040.0196.62
5.0.40.0030.0196.48
5.0.30.0050.0316.30
5.0.20.0040.0196.26
5.0.10.0040.0196.25
5.0.00.0040.0346.23
4.4.90.0030.0234.78
4.4.80.0050.0134.75
4.4.70.0040.0134.75
4.4.60.0040.0144.76
4.4.50.0000.0184.77
4.4.40.0010.0284.71
4.4.30.0030.0144.76
4.4.20.0020.0154.84
4.4.10.0030.0144.85
4.4.00.0060.0314.76
4.3.110.0040.0154.67
4.3.100.0010.0164.67
4.3.90.0020.0154.64
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0020.0174.63
4.3.50.0010.0204.62
4.3.40.0040.0294.54
4.3.30.0040.0133.28
4.3.20.0010.0173.26
4.3.10.0020.0153.22
4.3.00.0100.01315.68

preferences:
39.16 ms | 401 KiB | 5 Q