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) { echo $a; 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.0100.01018.43
8.3.50.0150.00017.88
8.3.40.0090.00918.84
8.3.30.0120.00918.83
8.3.20.0060.00320.20
8.3.10.0000.00820.29
8.3.00.0060.00322.34
8.2.180.0190.00316.63
8.2.170.0060.00922.96
8.2.160.0140.00020.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0000.00817.75
8.2.110.0060.00322.02
8.2.100.0070.00417.91
8.2.90.0090.00019.08
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00518.16
8.2.30.0040.00418.11
8.2.20.0080.00017.54
8.2.10.0040.00419.59
8.2.00.0080.00017.86
8.1.270.0050.00321.93
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.91
8.1.230.0100.00018.98
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0050.00317.53
8.1.180.0000.00818.10
8.1.170.0000.00818.53
8.1.160.0030.00521.92
8.1.150.0050.00318.64
8.1.140.0000.00717.44
8.1.130.0030.00317.45
8.1.120.0040.00417.33
8.1.110.0000.00717.35
8.1.100.0000.00717.46
8.1.90.0040.00417.46
8.1.80.0000.00817.47
8.1.70.0070.00017.43
8.1.60.0030.00617.51
8.1.50.0040.00417.53
8.1.40.0040.00417.55
8.1.30.0030.00517.61
8.1.20.0040.00417.66
8.1.10.0040.00417.39
8.1.00.0040.00417.34
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0000.00718.43
8.0.270.0070.00017.12
8.0.260.0030.00316.92
8.0.250.0030.00317.00
8.0.240.0040.00417.02
8.0.230.0070.00016.93
8.0.220.0000.00716.84
8.0.210.0030.00316.84
8.0.200.0000.00616.99
8.0.190.0000.00817.00
8.0.180.0050.00316.93
8.0.170.0090.00016.99
8.0.160.0040.00416.84
8.0.150.0000.00716.94
8.0.140.0000.00716.90
8.0.130.0070.00013.38
8.0.120.0000.00716.88
8.0.110.0000.00716.80
8.0.100.0050.00317.00
8.0.90.0050.00316.94
8.0.80.0060.00916.88
8.0.70.0050.00316.84
8.0.60.0000.00816.82
8.0.50.0030.00516.94
8.0.30.0150.00417.11
8.0.20.0130.00517.40
8.0.10.0040.00416.89
8.0.00.0170.00516.74
7.4.330.0020.00215.06
7.4.320.0030.00316.41
7.4.300.0000.00716.59
7.4.290.0030.00316.44
7.4.280.0030.00316.58
7.4.270.0030.00516.51
7.4.260.0070.00316.59
7.4.250.0000.00716.32
7.4.240.0040.00416.60
7.4.230.0030.00316.39
7.4.220.0040.01516.44
7.4.210.0050.01216.48
7.4.200.0030.00316.47
7.4.190.0030.00316.67
7.4.160.0160.00016.36
7.4.150.0160.00317.40
7.4.140.0080.01217.86
7.4.130.0100.00716.48
7.4.120.0130.01216.54
7.4.110.0100.00716.61
7.4.100.0060.01316.45
7.4.90.0060.01216.59
7.4.80.0030.02019.39
7.4.70.0060.01516.39
7.4.60.0090.00816.53
7.4.50.0000.00516.17
7.4.40.0110.00722.77
7.4.30.0130.00316.68
7.4.00.0060.00914.93
7.3.330.0000.00613.42
7.3.320.0000.00513.27
7.3.310.0020.00516.27
7.3.300.0040.00416.43
7.3.290.0030.01216.43
7.3.280.0080.01016.38
7.3.270.0100.00717.40
7.3.260.0150.00316.41
7.3.250.0110.00516.45
7.3.240.0060.01016.29
7.3.230.0060.01116.39
7.3.210.0060.01116.43
7.3.200.0070.01019.39
7.3.190.0060.01416.59
7.3.180.0030.01616.30
7.3.170.0110.01116.62
7.3.160.0160.00016.41
7.3.120.0090.01014.97
7.3.110.0070.01514.65
7.3.100.0070.00714.79
7.3.90.0030.01315.00
7.3.80.0030.01214.82
7.3.70.0100.00714.81
7.3.60.0030.01214.77
7.3.50.0080.00814.78
7.3.40.0040.01114.91
7.3.30.0080.00314.84
7.3.20.0000.01416.60
7.3.10.0030.01016.70
7.3.00.0000.01016.73
7.2.330.0090.00916.64
7.2.320.0130.00616.57
7.2.310.0060.01216.79
7.2.300.0090.01116.76
7.2.290.0100.00716.66
7.2.250.0040.01114.95
7.2.240.0100.01014.94
7.2.230.0110.00715.16
7.2.220.0090.00614.75
7.2.210.0030.01314.91
7.2.200.0100.00014.86
7.2.190.0030.00714.99
7.2.180.0030.01215.09
7.2.170.0030.01215.05
7.2.130.0030.01316.85
7.2.120.0060.00616.98
7.2.110.0000.01016.79
7.2.100.0070.00716.84
7.2.90.0040.01116.71
7.2.80.0060.00916.86
7.2.70.0060.00616.69
7.2.60.0040.01216.85
7.2.50.0030.00616.73
7.2.40.0070.00416.89
7.2.30.0070.00716.41
7.2.20.0060.00816.73
7.2.10.0000.01516.99
7.2.00.0040.01118.07
7.1.330.0100.00315.71
7.1.320.0060.00315.45
7.1.310.0090.00615.87
7.1.300.0060.00615.49
7.1.290.0100.00315.71
7.1.280.0030.00615.68
7.1.270.0110.00415.39
7.1.260.0040.01115.96
7.1.250.0030.00615.70
7.1.100.0100.00518.13
7.1.70.0020.00516.98
7.1.60.0160.00619.82
7.1.50.0090.01216.64
7.1.00.0070.07322.45
7.0.200.0090.00016.46
7.0.140.0000.07322.10
7.0.60.0070.07321.75
7.0.50.0030.07317.87
7.0.40.0000.05320.11
7.0.30.0200.08720.21
7.0.20.0330.05720.09
7.0.10.0000.04720.25
7.0.00.0070.07720.21
5.6.280.0000.07720.91
5.6.210.0030.07720.65
5.6.200.0030.04018.24
5.6.190.0070.08320.46
5.6.180.0430.05720.50
5.6.170.0370.07720.45
5.6.160.0170.08020.71
5.6.150.0070.08018.15
5.6.140.0070.06318.15
5.6.130.0030.08018.23
5.6.120.0100.08020.99
5.6.110.0070.08720.98
5.6.100.0030.05321.09
5.6.90.0070.06721.10
5.6.80.0000.04020.38
5.5.350.4230.04020.36
5.5.340.0070.04318.09
5.5.330.0100.07720.38
5.5.320.0270.07020.35
5.5.310.0330.07020.35
5.5.300.0100.03718.04
5.5.290.0070.04317.98
5.5.280.0030.04720.68
5.5.270.0170.06720.65
5.5.260.0100.05320.65
5.5.250.0130.06320.70
5.5.240.0000.08320.04
5.4.450.3770.04719.45
5.4.440.3900.04319.34
5.4.430.0070.06719.27
5.4.420.3030.04319.43
5.4.410.4270.03719.33
5.4.400.4370.03318.95
5.4.390.3900.03719.03
5.4.380.3830.03719.23
5.4.370.0000.07719.04
5.4.360.4770.03319.17
5.4.350.3730.04019.10
5.4.340.3970.03318.95
5.4.320.3870.04019.27
5.4.310.4300.04018.98
5.4.300.3970.03719.24
5.4.290.4130.03018.95
5.4.280.3800.04319.23
5.4.270.4130.03019.20
5.4.260.3930.04318.98
5.4.250.4070.03319.14
5.4.240.4270.04319.21
5.4.230.3930.04019.10
5.4.220.3530.04319.09
5.4.210.4630.03719.06
5.4.200.4570.03719.04
5.4.190.2370.03719.10
5.4.180.3170.03719.07
5.4.170.3870.03318.94
5.4.160.3530.02719.03
5.4.150.3030.04019.09
5.4.140.3400.03316.35
5.4.130.3330.03716.44
5.4.120.3770.03016.49
5.4.110.3370.03716.56
5.4.100.4070.03016.52
5.4.90.4130.02716.46
5.4.80.4030.04016.43
5.4.70.3700.02716.20
5.4.60.3800.03316.45
5.4.50.3900.03316.23
5.4.40.4200.03016.57
5.4.30.4100.04016.53
5.4.20.3870.04016.41
5.4.10.4370.04316.45
5.4.00.3830.03715.89
5.3.290.4500.03714.68
5.3.280.3870.04314.60
5.3.270.3830.04014.63
5.3.260.3570.03714.60
5.3.250.3730.03314.53
5.3.240.3470.03714.60
5.3.230.3270.03014.48
5.3.220.3270.04314.58
5.3.210.3570.04014.60
5.3.200.3730.03014.58
5.3.190.4270.04314.56
5.3.180.3930.03714.59
5.3.170.3900.03314.59
5.3.160.3830.03714.55
5.3.150.3870.03314.61
5.3.140.4070.04014.59
5.3.130.4300.04314.59
5.3.120.3870.04314.56
5.3.110.3370.04014.54
5.3.100.4170.03014.18
5.3.90.4630.03714.02
5.3.80.4230.03313.98
5.3.70.4030.03314.02
5.3.60.3930.03014.04
5.3.50.3900.03313.94
5.3.40.3930.03313.91
5.3.30.3870.04013.86
5.3.20.3770.03713.70
5.3.10.3900.03313.66
5.3.00.3930.03713.56
5.2.170.3000.03011.04
5.2.160.3030.02311.04
5.2.150.2470.02711.09
5.2.140.3030.02710.96
5.2.130.3500.03311.05
5.2.120.3500.02711.00
5.2.110.3430.03011.04
5.2.100.3600.01711.00
5.2.90.3030.02311.00
5.2.80.3100.02711.05
5.2.70.2930.02710.99
5.2.60.3000.03311.03
5.2.50.3330.02711.00
5.2.40.3070.03010.92
5.2.30.3170.03310.95
5.2.20.2670.03010.97
5.2.10.2970.03010.71
5.2.00.2870.03010.60
5.1.60.3000.0239.90
5.1.50.2970.02710.06
5.1.40.2770.0309.99
5.1.30.2700.02710.34
5.1.20.2570.02710.36
5.1.10.2670.03310.09
5.1.00.3100.0309.97
5.0.50.1430.0208.50
5.0.40.1400.0238.31
5.0.30.1870.0278.33
5.0.20.1430.0208.18
5.0.10.1730.0238.22
5.0.00.0000.0438.06
4.4.90.1470.0175.87
4.4.80.1470.0175.87
4.4.70.1470.0135.87
4.4.60.1600.0205.87
4.4.50.1730.0135.87
4.4.40.1730.0305.87
4.4.30.1500.0205.89
4.4.20.1370.0175.87
4.4.10.1700.0175.87
4.4.00.1430.0275.87
4.3.110.1670.0205.87
4.3.100.1600.0205.87
4.3.90.1800.0175.89
4.3.80.0000.0575.91
4.3.70.0000.0305.92
4.3.60.0030.0335.92
4.3.50.0030.0335.93
4.3.40.0000.0375.93
4.3.30.0000.0405.94
4.3.20.0000.0375.96
4.3.10.0000.0335.96
4.3.00.0000.0405.96

preferences:
55.78 ms | 400 KiB | 5 Q