3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo[] = array('id' => 1, 'title' => 'ONE'); $foo[] = array('id' => 2, 'title' => 'TWO'); $bar[] = array('id' => 2, 'title' => 'dos'); $bar[] = array('id' => 2, 'title' => 'tres'); function c($a, $b) { print $a['title'] . " " . $b['title'] . "\n"; return 0; } array_udiff($foo, $bar, c); array_udiff($foo, $bar, function($a, $b) { print $a['title'] . " " . $b['title'] . "\n"; return 0;});

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.0120.00916.75
8.3.60.0110.00318.28
8.3.50.0100.01122.06
8.3.40.0120.00318.98
8.3.30.0040.01119.27
8.3.20.0070.01020.31
8.3.10.0070.00723.71
8.3.00.0040.00420.88
8.2.180.0070.01416.50
8.2.170.0100.00622.96
8.2.160.0050.00820.47
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00818.89
8.2.110.0030.00620.60
8.2.100.0080.00418.03
8.2.90.0040.00419.20
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0060.00318.05
8.2.50.0080.00018.07
8.2.40.0060.00319.95
8.2.30.0030.00318.19
8.2.20.0040.00417.82
8.2.10.0050.00318.00
8.2.00.0000.00817.72
8.1.280.0100.00725.92
8.1.270.0060.00323.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.98
8.1.230.0040.00717.51
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0020.00522.06
8.1.150.0040.00418.66
8.1.140.0040.00417.42
8.1.130.0000.00617.87
8.1.120.0050.00217.38
8.1.110.0000.00717.46
8.1.100.0000.00717.33
8.1.90.0040.00417.48
8.1.80.0050.00217.41
8.1.70.0060.00017.35
8.1.60.0090.00017.47
8.1.50.0030.00617.62
8.1.40.0020.00517.57
8.1.30.0040.00717.63
8.1.20.0040.00417.57
8.1.10.0000.00717.49
8.1.00.0080.00017.39
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00818.43
8.0.270.0000.00717.24
8.0.260.0030.00317.30
8.0.250.0030.00316.92
8.0.240.0000.00817.02
8.0.230.0040.00417.04
8.0.220.0070.00017.02
8.0.210.0000.00716.86
8.0.200.0030.00317.05
8.0.190.0000.00916.91
8.0.180.0070.00016.96
8.0.170.0040.00416.95
8.0.160.0000.00716.99
8.0.150.0000.00716.96
8.0.140.0040.00416.95
8.0.130.0030.00313.37
8.0.120.0000.00816.89
8.0.110.0040.00416.78
8.0.100.0000.00716.93
8.0.90.0040.00416.83
8.0.80.0140.00316.88
8.0.70.0000.00717.02
8.0.60.0000.00716.91
8.0.50.0040.00416.98
8.0.30.0130.00616.99
8.0.20.0070.01017.40
8.0.10.0080.00016.98
8.0.00.0140.00316.73
7.4.330.0050.00015.00
7.4.320.0050.00316.34
7.4.300.0060.00016.39
7.4.290.0080.00016.59
7.4.280.0070.00016.41
7.4.270.0050.00316.42
7.4.260.0070.00016.43
7.4.250.0040.00416.37
7.4.240.0030.00316.41
7.4.230.0030.00316.34
7.4.220.0060.01016.48
7.4.210.0100.00316.64
7.4.200.0070.00016.28
7.4.160.0060.01516.42
7.4.150.0120.00617.40
7.4.140.0130.00717.86
7.4.130.0040.01316.59
7.4.120.0100.00716.40
7.4.110.0160.00616.48
7.4.100.0110.00716.63
7.4.90.0090.01316.33
7.4.80.0210.00619.39
7.4.70.0120.00616.45
7.4.60.0030.01416.60
7.4.50.0060.00316.39
7.4.40.0070.01116.50
7.4.30.0030.01316.36
7.4.00.0070.00915.06
7.3.330.0050.00213.23
7.3.320.0050.00013.11
7.3.310.0000.00716.39
7.3.300.0000.00716.24
7.3.290.0170.00016.29
7.3.280.0080.00916.35
7.3.270.0120.01117.40
7.3.260.0120.00616.42
7.3.250.0120.00816.30
7.3.240.0090.00916.50
7.3.230.0030.01316.39
7.3.210.0050.01416.29
7.3.200.0030.01319.39
7.3.190.0110.00716.48
7.3.180.0090.00916.58
7.3.170.0140.00016.59
7.3.160.0060.01616.44
7.3.120.0100.00214.83
7.3.110.0070.01014.58
7.3.100.0070.00714.59
7.3.90.0000.01914.86
7.3.80.0120.00614.82
7.3.70.0070.00714.88
7.3.60.0080.00414.86
7.3.50.0100.00914.87
7.3.40.0070.01014.66
7.3.30.0130.00314.58
7.3.20.0050.00516.64
7.3.10.0080.00816.56
7.3.00.0070.00716.53
7.2.330.0090.01616.40
7.2.320.0170.00716.61
7.2.310.0120.00416.60
7.2.300.0030.01216.79
7.2.290.0120.01316.68
7.2.250.0090.00915.09
7.2.240.0130.00615.00
7.2.230.0040.01515.21
7.2.220.0070.00715.07
7.2.210.0040.01114.92
7.2.200.0090.00615.09
7.2.190.0130.00614.88
7.2.180.0080.01115.07
7.2.170.0090.00915.33
7.2.60.0070.00716.99
7.2.00.0040.00419.47
7.1.330.0070.00715.85
7.1.320.0070.01015.87
7.1.310.0050.00715.64
7.1.300.0030.01615.67
7.1.290.0090.00615.78
7.1.280.0060.00615.80
7.1.270.0070.00715.75
7.1.260.0030.01015.80
7.1.200.0070.00415.70
7.1.70.0000.01117.23
7.1.60.0000.01017.16
7.1.50.0130.00616.98
7.1.00.0100.07022.57
7.0.200.0040.00816.80
7.0.140.0070.06722.10
7.0.60.0030.04020.02
7.0.50.0030.04717.86
7.0.40.0000.09319.96
7.0.30.0400.05720.16
7.0.20.0270.07320.19
7.0.10.0130.08020.20
7.0.00.0100.06720.18
5.6.210.0100.07320.65
5.6.200.0030.08318.15
5.6.190.0030.08020.52
5.6.180.0270.04020.61
5.6.170.0230.04720.54
5.6.160.0030.07320.51
5.6.150.0100.06318.29
5.6.140.0100.04018.17
5.6.130.0070.08018.15
5.6.120.0100.03721.00
5.6.110.0030.04020.99
5.6.100.0030.04720.98
5.6.90.0070.07020.97
5.6.80.0130.07720.52
5.6.70.4600.04320.36
5.5.350.0170.06320.41
5.5.340.0100.05018.08
5.5.330.0000.05020.57
5.5.320.0200.04320.21
5.5.310.0270.05320.37
5.5.300.0030.03717.98
5.5.290.0130.07717.98
5.5.280.0030.08720.78
5.5.270.0070.04320.77
5.5.260.0100.03720.78
5.5.250.0070.07020.59
5.5.240.0000.08020.13
5.4.450.0330.04729.93
5.4.440.0300.04029.93
5.4.430.0330.04328.86
5.4.420.0170.04028.29
5.4.410.0470.04728.29
5.4.400.0370.03728.29
5.4.390.0270.04728.29
5.4.380.0100.05718.85
5.4.370.0100.05718.83
5.4.360.0200.05318.63
5.4.350.0170.05318.76
5.4.340.0030.06718.75
5.4.320.0050.04712.51
5.4.310.0090.03612.50
5.4.300.0050.03912.51
5.4.290.0110.03312.50
5.4.280.0050.03612.41
5.4.270.0030.03912.40
5.4.260.0060.03812.41
5.4.250.0040.03912.40
5.4.240.0040.03812.41
5.4.230.0090.03512.40
5.4.220.0030.04012.39
5.4.210.0060.03612.39
5.4.200.0080.03512.40
5.4.190.0060.03612.39
5.4.180.0070.03512.39
5.4.170.0050.03712.40
5.4.160.0080.04012.39
5.4.150.0090.04512.39
5.4.140.0060.05512.08
5.4.130.0080.05012.06
5.4.120.0080.05012.02
5.4.110.0120.04612.02
5.4.100.0100.03812.01
5.4.90.0050.03912.02
5.4.80.0050.03812.02
5.4.70.0060.03612.01
5.4.60.0070.03612.02
5.4.50.0050.03912.02
5.4.40.0060.03712.00
5.4.30.0030.03912.00
5.4.20.0050.03812.00
5.4.10.0060.03612.00
5.4.00.0060.03711.48
5.3.290.0060.03912.80
5.3.280.0070.03812.70
5.3.270.0090.03912.72
5.3.260.0050.04012.72
5.3.250.0100.03412.72
5.3.240.0050.03912.72
5.3.230.0060.03912.71
5.3.220.0100.03412.68
5.3.210.0100.03512.68
5.3.200.0060.03712.68
5.3.190.0110.03312.67
5.3.180.0080.03512.67
5.3.170.0080.03512.67
5.3.160.0060.04512.67
5.3.150.0060.04012.67
5.3.140.0060.03912.66
5.3.130.0050.04512.66
5.3.120.0060.04312.66
5.3.110.0050.04212.65
5.3.100.0010.04412.12
5.3.90.0100.03512.10
5.3.80.0110.03312.09
5.3.70.0060.03812.10
5.3.60.0040.03912.07
5.3.50.0060.04912.03
5.3.40.0090.03312.04
5.3.30.0090.03311.99
5.3.20.0060.03811.77
5.3.10.0070.03511.73
5.3.00.0060.03811.72
5.2.170.0100.0309.23
5.2.160.0040.0429.22
5.2.150.0070.0369.23
5.2.140.0080.0289.22
5.2.130.0050.0329.18
5.2.120.0050.0369.18
5.2.110.0040.0339.19
5.2.100.0080.0259.18
5.2.90.0070.0279.18
5.2.80.0070.0309.18
5.2.70.0070.0289.18
5.2.60.0030.0339.13
5.2.50.0040.0319.10
5.2.40.0040.0319.07
5.2.30.0080.0409.05
5.2.20.0080.0339.04
5.2.10.0070.0368.95
5.2.00.0070.0438.82
5.1.60.0070.0328.09
5.1.50.0070.0318.09
5.1.40.0070.0328.07
5.1.30.0050.0288.42
5.1.20.0050.0308.44
5.1.10.0050.0278.16
5.1.00.0050.0268.17
5.0.50.0050.0206.64
5.0.40.0030.0226.50
5.0.30.0060.0306.32
5.0.20.0050.0186.28
5.0.10.0040.0286.26
5.0.00.0080.0366.25
4.4.90.0060.0204.78
4.4.80.0040.0214.76
4.4.70.0030.0204.76
4.4.60.0040.0154.75
4.4.50.0080.0164.77
4.4.40.0020.0264.71
4.4.30.0050.0134.76
4.4.20.0050.0144.85
4.4.10.0020.0164.85
4.4.00.0020.0254.75
4.3.110.0020.0164.67
4.3.100.0030.0154.67
4.3.90.0040.0154.63
4.3.80.0020.0264.58
4.3.70.0060.0124.63
4.3.60.0040.0144.63
4.3.50.0030.0164.63
4.3.40.0060.0224.54
4.3.30.0040.0143.30
4.3.20.0020.0163.28
4.3.10.0050.0143.24
4.3.00.0070.01328.29

preferences:
46.69 ms | 401 KiB | 5 Q