3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array('id' => 0, 'name' => 'foo'), array('id' => 1, 'name' => 'bar') ); $b = array( array('id' => 0, 'name' => 'foo'), array('id' => 2, 'name' => 'baz') ); $intersect = array_uintersect($a, $b, function($a, $b) { if ($a === $b) { return 0; } elseif ($a > $b) { return 1; } else { return -1; } }); var_dump($intersect);

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.0110.00716.50
8.3.50.0120.00721.92
8.3.40.0120.00318.67
8.3.30.0000.01418.92
8.3.20.0080.00020.33
8.3.10.0060.00323.68
8.3.00.0040.00419.18
8.2.180.0150.00716.63
8.2.170.0110.00322.96
8.2.160.0050.01120.52
8.2.150.0070.01024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0070.00021.00
8.2.110.0060.00320.52
8.2.100.0040.00817.66
8.2.90.0040.00419.45
8.2.80.0000.00818.78
8.2.70.0050.00317.63
8.2.60.0040.00417.50
8.2.50.0040.00417.75
8.2.40.0050.00319.35
8.2.30.0000.00717.71
8.2.20.0000.00717.70
8.2.10.0080.00018.13
8.2.00.0050.00319.59
8.1.280.0100.00725.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0120.00623.78
8.1.230.0040.00722.65
8.1.220.0030.00517.78
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00617.62
8.1.160.0040.00418.89
8.1.150.0040.00418.68
8.1.140.0000.00717.50
8.1.130.0050.00217.84
8.1.120.0030.00317.38
8.1.110.0030.00317.37
8.1.100.0080.00017.47
8.1.90.0070.00017.44
8.1.80.0000.00717.37
8.1.70.0050.00317.45
8.1.60.0000.00717.54
8.1.50.0030.00617.52
8.1.40.0040.00417.49
8.1.30.0000.00817.64
8.1.20.0030.00617.61
8.1.10.0040.00417.58
8.1.00.0000.00717.34
8.0.300.0000.00818.77
8.0.290.0030.00816.75
8.0.280.0000.00718.13
8.0.270.0030.00517.92
8.0.260.0070.00017.31
8.0.250.0050.00317.00
8.0.240.0000.00716.82
8.0.230.0000.00716.91
8.0.220.0030.00516.75
8.0.210.0040.00416.79
8.0.200.0030.00316.91
8.0.190.0030.00516.85
8.0.180.0000.00816.83
8.0.170.0030.00516.96
8.0.160.0040.00416.94
8.0.150.0030.00616.88
8.0.140.0000.00716.82
8.0.130.0050.00013.29
8.0.120.0000.00816.90
8.0.110.0040.00416.71
8.0.100.0080.00016.77
8.0.90.0000.00716.69
8.0.80.0090.00616.90
8.0.70.0040.00416.91
8.0.60.0070.00016.95
8.0.50.0000.00716.79
8.0.30.0170.00217.05
8.0.20.0050.01417.40
8.0.10.0040.00416.83
8.0.00.0070.01216.74
7.4.330.0000.00615.03
7.4.320.0060.00016.60
7.4.300.0000.00716.58
7.4.290.0040.00416.45
7.4.280.0040.00416.58
7.4.270.0000.00716.65
7.4.260.0030.00316.50
7.4.250.0030.00616.43
7.4.240.0000.00716.46
7.4.230.0000.00716.30
7.4.220.0090.00916.63
7.4.210.0120.00316.60
7.4.200.0040.00416.57
7.4.160.0120.00416.48
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0130.00816.55
7.4.120.0090.00716.44
7.4.110.0110.00716.57
7.4.100.0090.00916.45
7.4.90.0090.00816.48
7.4.80.0100.01319.39
7.4.70.0080.00816.59
7.4.60.0060.00916.46
7.4.50.0040.00416.41
7.4.40.0090.00616.47
7.4.30.0100.00616.48
7.4.00.0060.00714.99
7.3.330.0050.00013.23
7.3.320.0050.00013.31
7.3.310.0000.00716.33
7.3.300.0070.00016.22
7.3.290.0050.00916.31
7.3.280.0040.01216.35
7.3.270.0210.00017.40
7.3.260.0230.00016.22
7.3.250.0120.00616.49
7.3.240.0100.01016.54
7.3.230.0030.01916.39
7.3.210.0110.00716.47
7.3.200.0140.00919.39
7.3.190.0100.00716.23
7.3.180.0110.00416.38
7.3.170.0070.01016.38
7.3.160.0160.00016.41
7.3.120.0060.00914.70
7.3.110.0120.00314.82
7.3.100.0000.01714.64
7.3.90.0000.00814.90
7.3.80.0000.01514.79
7.3.70.0060.00714.41
7.3.60.0050.00515.00
7.3.50.0040.01114.64
7.3.40.0040.01114.74
7.3.30.0030.01014.88
7.3.20.0060.01016.74
7.3.10.0000.01516.52
7.3.00.0070.00316.74
7.2.330.0140.00416.69
7.2.320.0060.01516.66
7.2.310.0030.01616.75
7.2.300.0190.00316.58
7.2.290.0090.00616.61
7.2.240.0060.01015.07
7.2.230.0060.00614.86
7.2.220.0040.00914.98
7.2.210.0000.01515.08
7.2.200.0140.00014.93
7.2.190.0040.01215.02
7.2.180.0090.00914.72
7.2.170.0040.01115.07
7.2.160.0030.01014.90
7.2.150.0040.00816.80
7.2.140.0140.00016.90
7.2.130.0070.00716.70
7.2.120.0030.00516.78
7.2.110.0060.00916.62
7.2.100.0030.00916.97
7.2.90.0070.01016.50
7.2.80.0090.00916.86
7.2.70.0000.01216.97
7.2.60.0050.00816.73
7.2.50.0070.00717.01
7.2.40.0060.01016.72
7.2.30.0120.00316.75
7.2.20.0000.01216.82
7.2.10.0110.00716.55
7.2.00.0080.00817.99
7.1.330.0060.00615.56
7.1.320.0030.01015.73
7.1.310.0090.00615.76
7.1.300.0000.00815.68
7.1.290.0080.00415.46
7.1.280.0000.01615.78
7.1.270.0070.00715.67
7.1.260.0030.01015.70
7.1.250.0000.01715.96
7.1.200.0160.00615.53
7.1.100.0040.01118.23
7.1.70.0060.00917.13
7.1.60.0080.00317.29
7.1.50.0070.01816.95
7.1.00.0030.07722.37
7.0.200.0000.00916.81
7.0.140.0030.07322.09
7.0.60.0070.05020.04
7.0.50.0100.04717.89
7.0.40.0100.03720.11
7.0.30.0330.04320.32
7.0.20.0400.07020.25
7.0.10.0130.06320.33
7.0.00.0070.06020.15
5.6.280.0070.07021.10
5.6.210.0100.08320.67
5.6.200.0130.03018.29
5.6.190.0100.07320.48
5.6.180.0370.05320.52
5.6.170.0170.07320.57
5.6.160.0030.08720.44
5.6.150.0030.04318.21
5.6.140.0030.07318.17
5.6.130.0070.07018.15
5.6.120.0130.07020.97
5.6.110.0000.04320.94
5.6.100.0170.06320.98
5.6.90.0030.08320.99
5.6.80.0100.04720.38
5.5.350.4270.04020.41
5.5.340.0130.07718.02
5.5.330.0200.07720.29
5.5.320.0330.05320.36
5.5.310.0130.04720.42
5.5.300.0100.07017.98
5.5.290.0070.07017.98
5.5.280.0100.03320.89
5.5.270.0000.04320.77
5.5.260.0130.08320.98
5.5.250.0130.08320.58
5.5.240.0070.05720.16
5.4.450.0070.08019.57
5.4.440.0100.05319.27
5.4.430.0070.07719.17
5.4.420.0100.06319.52
5.4.410.0070.07019.34
5.4.400.0070.07719.16
5.4.390.0100.07319.25
5.4.380.0030.07719.26
5.4.370.0030.04719.14
5.4.360.0030.03719.14
5.4.350.0070.07719.16
5.4.340.0030.03719.15
5.4.320.0100.07319.16
5.4.310.0030.05018.87
5.4.300.0030.04719.16
5.4.290.0070.07319.07
5.4.280.0030.08018.87
5.4.270.0070.07719.20
5.4.260.0070.04019.15
5.4.250.0030.04318.86
5.4.240.0070.04018.86
5.4.230.0130.05019.00
5.4.220.0130.07718.85
5.4.210.0070.07019.01
5.4.200.0030.07719.14
5.4.190.0100.05019.07
5.4.180.0100.05319.14
5.4.170.0000.04719.23
5.4.160.0000.04018.84
5.4.150.0100.03318.91
5.4.140.0030.08016.41
5.4.130.0100.03716.40
5.4.120.0030.03716.30
5.4.110.0030.04716.43
5.4.100.0070.03716.67
5.4.90.0100.04316.45
5.4.80.0030.05716.45
5.4.70.0070.03316.39
5.4.60.0000.04716.45
5.4.50.0000.06716.39
5.4.40.0130.05316.36
5.4.30.0030.04316.36
5.4.20.0100.06016.43
5.4.10.0100.07316.40
5.4.00.0070.06015.90
5.3.290.0030.05314.81
5.3.280.0170.06714.65
5.3.270.0000.04314.61
5.3.260.0000.04314.63
5.3.250.0070.03314.60
5.3.240.0070.06714.60
5.3.230.0030.04014.62
5.3.220.0000.04314.48
5.3.210.0030.04014.71
5.3.200.0070.03314.59
5.3.190.0000.05714.65
5.3.180.0000.04014.59
5.3.170.0070.05014.62
5.3.160.0030.04014.58
5.3.150.0030.05314.59
5.3.140.0030.05714.55
5.3.130.0100.04314.55
5.3.120.0100.07714.54
5.3.110.0070.03714.55
5.3.100.0070.04714.09
5.3.90.0070.05314.07
5.3.80.0070.03314.04
5.3.70.0070.04714.02
5.3.60.0100.06714.05
5.3.50.0030.06313.95
5.3.40.0100.07014.00
5.3.30.0070.06713.95
5.3.20.0030.06713.72
5.3.10.0030.04713.68
5.3.00.0030.06013.63
5.2.170.0070.04711.13
5.2.160.0030.06011.23
5.2.150.0100.06011.09
5.2.140.0030.06711.09
5.2.130.0070.06710.98
5.2.120.0000.05711.04
5.2.110.0000.06311.11
5.2.100.0000.03310.99
5.2.90.0100.02311.09
5.2.80.0000.05310.99
5.2.70.0070.03711.24
5.2.60.0000.06311.20
5.2.50.0100.05710.95
5.2.40.0030.05010.93
5.2.30.0030.05710.90
5.2.20.0070.05010.87
5.2.10.0000.04310.76
5.2.00.0000.06310.71
5.1.60.0100.0309.97
5.1.50.0030.05010.01
5.1.40.0030.0339.88
5.1.30.0030.04010.39
5.1.20.0070.03310.34
5.1.10.0130.03710.02
5.1.00.0070.04010.05
5.0.50.0100.0378.51
5.0.40.0070.0378.45
5.0.30.0000.0538.42
5.0.20.0070.0278.42
5.0.10.0130.0278.42
5.0.00.0000.0378.42
4.4.90.0000.0338.42
4.4.80.0000.0308.42
4.4.70.0070.0178.42
4.4.60.0070.0338.42
4.4.50.0000.0238.42
4.4.40.0030.0338.42
4.4.30.0000.0178.42
4.4.20.0030.0138.42
4.4.10.0030.0308.42
4.4.00.0000.0608.42
4.3.110.0070.0238.42
4.3.100.0000.0208.42
4.3.90.0000.0178.42
4.3.80.0130.0408.42
4.3.70.0000.0378.42
4.3.60.0030.0308.42
4.3.50.0000.0378.42
4.3.40.0030.0308.42
4.3.30.0000.0278.42
4.3.20.0000.0278.42
4.3.10.0030.0238.42
4.3.00.0030.0138.42

preferences:
75.41 ms | 401 KiB | 5 Q