3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( array('categoryid' => '31;', 'itemname' => 'Math - Quiz #1'), array('categoryid' => '33;', 'itemname' => 'Math - Quiz #2'), array('categoryid' => '35;', 'itemname' => 'Math - Quiz #3'), array('categoryid' => '31;', 'itemname' => 'Math - Quiz #4') ); $arr2 = array( array('categoryid' => '31;') ); $intersect = array_uintersect($arr1, $arr2, 'compareDeepValue'); print_r($intersect); function compareDeepValue($val1, $val2) { return strcmp($val1['categoryid'], $val2['categoryid']); }

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.0170.00318.67
8.3.30.0100.01319.06
8.3.20.0040.00720.15
8.3.10.0000.00721.98
8.3.00.0040.00422.43
8.2.170.0080.00822.96
8.2.160.0070.00720.77
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0000.00922.11
8.2.100.0090.00617.78
8.2.90.0040.00419.22
8.2.80.0000.00819.77
8.2.70.0040.00417.75
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0080.00018.17
8.2.20.0000.00817.47
8.2.10.0000.00717.64
8.2.00.0050.00517.56
8.1.270.0030.00622.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.82
8.1.230.0120.00019.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0080.00017.53
8.1.180.0040.00418.10
8.1.170.0040.00418.35
8.1.160.0050.00321.95
8.1.150.0040.00418.64
8.1.140.0040.00417.34
8.1.130.0030.00317.83
8.1.120.0040.00417.41
8.1.110.0080.00017.29
8.1.100.0070.00017.40
8.1.90.0050.00217.37
8.1.80.0070.00017.29
8.1.70.0030.00317.29
8.1.60.0050.00317.43
8.1.50.0050.00317.36
8.1.40.0040.00417.43
8.1.30.0050.00217.59
8.1.20.0040.00417.54
8.1.10.0000.00717.54
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0030.00617.05
8.0.280.0000.00718.39
8.0.270.0000.00717.19
8.0.260.0000.00716.77
8.0.250.0040.00416.86
8.0.240.0070.00016.79
8.0.230.0050.00216.79
8.0.220.0030.00316.80
8.0.210.0000.00716.68
8.0.200.0060.00016.79
8.0.190.0040.00416.77
8.0.180.0000.00716.88
8.0.170.0000.00716.93
8.0.160.0070.00016.77
8.0.150.0040.00416.67
8.0.140.0040.00416.83
8.0.130.0030.00313.27
8.0.120.0030.00516.84
8.0.110.0070.00016.74
8.0.100.0080.00016.63
8.0.90.0070.00016.95
8.0.80.0090.00716.80
8.0.70.0000.00816.73
8.0.60.0040.00416.80
8.0.50.0000.00716.70
8.0.30.0130.00817.11
8.0.20.0110.00917.40
8.0.10.0000.01016.84
8.0.00.0130.00516.67
7.4.330.0030.00315.06
7.4.320.0070.00016.55
7.4.300.0040.00416.56
7.4.290.0060.00316.55
7.4.280.0000.00716.46
7.4.270.0020.00516.43
7.4.260.0040.00416.50
7.4.250.0020.00516.27
7.4.240.0030.00616.41
7.4.230.0050.00216.55
7.4.220.0130.01316.61
7.4.210.0070.00616.44
7.4.200.0030.00316.60
7.4.190.0000.00716.43
7.4.160.0030.01716.52
7.4.150.0100.00717.40
7.4.140.0050.01317.86
7.4.130.0120.00816.29
7.4.120.0120.00516.57
7.4.110.0090.00916.42
7.4.100.0120.00916.49
7.4.90.0100.00716.57
7.4.80.0080.00819.39
7.4.70.0130.00316.43
7.4.60.0120.01216.34
7.4.50.0090.00816.39
7.4.40.0070.01418.44
7.4.30.0170.01416.55
7.4.20.0230.01016.45
7.4.10.0190.01216.54
7.4.00.0140.00515.95
7.3.330.0000.00513.18
7.3.320.0030.00313.15
7.3.310.0060.00016.30
7.3.300.0000.00616.20
7.3.290.0080.00516.26
7.3.280.0100.00616.26
7.3.270.0190.00317.40
7.3.260.0080.00816.48
7.3.250.0130.00816.38
7.3.240.0030.01316.63
7.3.230.0060.00916.59
7.3.210.0170.00416.41
7.3.200.0100.00719.39
7.3.190.0040.01416.19
7.3.180.0190.00916.35
7.3.170.0230.01216.31
7.3.160.0240.01816.49
7.3.150.0200.01216.43
7.3.140.0140.00716.15
7.3.130.0150.00716.21
7.3.120.0090.00915.32
7.3.110.0090.01216.17
7.3.100.0130.01016.38
7.3.90.0140.00716.37
7.3.80.0170.00716.08
7.3.70.0190.01116.34
7.3.60.0110.01316.37
7.3.50.0070.01716.11
7.3.40.0120.00815.98
7.3.30.0140.00616.23
7.3.20.0120.00915.97
7.3.10.0140.00815.92
7.3.00.0140.00715.92
7.2.330.0150.00416.68
7.2.320.0100.01416.36
7.2.310.0210.01116.72
7.2.300.0160.01916.72
7.2.290.0240.01216.37
7.2.280.0230.01016.63
7.2.270.0220.00716.47
7.2.260.0120.01616.20
7.2.250.0100.01016.36
7.2.240.0190.00316.13
7.2.230.0130.00916.07
7.2.220.0190.00416.27
7.2.210.0140.00716.34
7.2.200.0030.01616.20
7.2.190.0150.00716.02
7.2.180.0140.00916.12
7.2.170.0090.01216.28
7.2.160.0070.01516.22
7.2.150.0100.01016.16
7.2.140.0200.01216.26
7.2.130.0140.00415.90
7.2.120.0120.00716.36
7.2.110.0060.01316.05
7.2.100.0100.00716.16
7.2.90.0090.00916.30
7.2.80.0070.01416.44
7.2.70.0090.00916.07
7.2.60.0080.01216.49
7.2.50.0060.01416.11
7.2.40.0180.00816.35
7.2.30.0170.00516.28
7.2.20.0120.01116.37
7.2.10.0100.00816.17
7.2.00.0070.00917.32
7.1.330.0080.01315.51
7.1.320.0290.01015.23
7.1.310.0090.01515.54
7.1.300.0230.00615.43
7.1.290.0140.00715.23
7.1.280.0190.00315.39
7.1.270.0210.00515.32
7.1.260.0170.00815.36
7.1.250.0110.00815.34
7.1.240.0160.00315.37
7.1.230.0070.01315.39
7.1.220.0210.00815.07
7.1.210.0150.01215.03
7.1.200.0080.00815.38
7.1.190.0150.00615.33
7.1.180.0100.01015.36
7.1.170.0160.00415.39
7.1.160.0090.00915.22
7.1.150.0130.01015.00
7.1.140.0120.00915.18
7.1.130.0080.01215.00
7.1.120.0140.00415.04
7.1.110.0060.01215.23
7.1.100.0520.00415.62
7.1.90.0150.00515.30
7.1.80.0150.00315.46
7.1.70.0070.00716.13
7.1.60.0090.01317.55
7.1.50.0060.00815.96
7.1.40.0140.00415.38
7.1.30.0070.01115.49
7.1.20.0240.00615.29
7.1.10.0160.00315.52
7.1.00.0070.04318.80
7.0.330.0100.01614.74
7.0.320.0100.01014.96
7.0.310.0180.00414.80
7.0.300.0120.00814.91
7.0.290.0090.00914.82
7.0.280.0130.00914.77
7.0.270.0390.01615.02
7.0.260.0120.00914.90
7.0.250.0120.01215.39
7.0.240.0160.00314.79
7.0.230.0100.00714.79
7.0.220.0150.00314.93
7.0.210.0090.01215.11
7.0.200.0040.00815.74
7.0.190.0150.00214.95
7.0.180.0170.00014.68
7.0.170.0160.00515.07
7.0.160.0120.00614.89
7.0.150.0070.01015.08
7.0.140.0130.03418.52
7.0.130.0080.01214.94
7.0.120.0090.00915.18
7.0.110.0080.01214.98
7.0.100.0080.00814.97
7.0.90.0190.00014.94
7.0.80.0150.00714.85
7.0.70.0200.00314.97
7.0.60.0080.02417.41
7.0.50.0070.02616.46
7.0.40.0180.03117.83
7.0.30.0210.04317.55
7.0.20.0250.03817.64
7.0.10.0070.02517.69
7.0.00.0070.02217.51
5.6.400.0220.00315.55
5.6.390.0100.01215.42
5.6.380.0130.00815.44
5.6.370.0180.00615.74
5.6.360.0080.01315.35
5.6.350.0120.01215.63
5.6.340.0100.01315.59
5.6.330.0140.01015.59
5.6.320.0180.00815.83
5.6.310.0160.00715.65
5.6.300.0030.01715.96
5.6.290.0060.01615.72
5.6.280.0080.04118.37
5.6.270.0180.01215.71
5.6.260.0170.00315.88
5.6.250.0110.00815.50
5.6.240.0120.00915.55
5.6.230.0140.01415.48
5.6.220.0110.01115.92
5.6.210.0100.04318.20
5.6.200.0080.03716.98
5.6.190.0070.03718.01
5.6.180.0160.04018.30
5.6.170.0130.03618.16
5.6.160.0090.04718.05
5.6.150.0140.02117.06
5.6.140.0110.02717.00
5.6.130.0090.03716.98
5.6.120.0080.04518.43
5.6.110.0120.04518.35
5.6.100.0060.05318.41
5.6.90.0090.03818.23
5.6.80.0140.04018.06
5.6.70.0140.00815.70
5.6.60.0130.01315.56
5.6.50.0140.01115.59
5.6.40.0130.01015.90
5.6.30.0110.01115.65
5.6.20.0130.01315.62
5.6.10.0150.00916.04
5.6.00.0000.02315.68
5.5.380.0100.01315.71
5.5.370.0190.00815.49
5.5.360.0110.01215.49
5.5.350.0100.04718.01
5.5.340.0080.02316.79
5.5.330.0100.04717.87
5.5.320.0190.04017.85
5.5.310.0250.04218.05
5.5.300.0160.03616.88
5.5.290.0140.03917.00
5.5.280.0090.04118.22
5.5.270.0130.04018.37
5.5.260.0090.02418.21
5.5.250.0080.04818.12
5.5.240.0140.03418.04
5.5.230.0070.01915.49
5.5.220.0140.01515.58
5.5.210.0170.00615.70
5.5.200.0140.01015.73
5.5.190.0160.00815.66
5.5.180.0190.00515.84
5.5.170.0110.01415.62
5.5.160.0130.00815.61
5.5.150.0140.00815.41
5.5.140.0040.01615.41
5.5.130.0110.01115.70
5.5.120.0100.01115.64
5.5.110.0110.01115.73
5.5.100.0110.01115.59
5.5.90.0080.01215.71
5.5.80.0040.01715.52
5.5.70.0090.01215.65
5.5.60.0150.00615.70
5.5.50.0120.01215.57
5.5.40.0160.00815.79
5.5.30.0070.01515.60
5.5.20.0090.01315.56
5.5.10.0130.00815.45
5.5.00.0100.01315.68
5.4.450.0210.01516.00
5.4.440.0240.02915.92
5.4.430.0150.02015.92
5.4.420.0300.02515.93
5.4.410.0250.02715.86
5.4.400.0280.02315.89
5.4.390.0270.02115.91
5.4.380.0220.03115.61
5.4.370.0270.03515.62
5.4.360.0210.02815.73
5.4.350.0340.03715.74
5.4.340.0190.03015.64
5.4.330.0140.00512.58
5.4.320.0110.02012.39
5.4.310.0070.02312.49
5.4.300.0100.02212.58
5.4.290.0080.02212.50
5.4.280.0080.02212.47
5.4.270.0080.02612.42
5.4.260.0080.02712.42
5.4.250.0080.02112.45
5.4.240.0040.02812.57
5.4.230.0090.02412.37
5.4.220.0110.02012.47
5.4.210.0100.02112.52
5.4.200.0050.02512.54
5.4.190.0100.01912.35
5.4.180.0110.02112.50
5.4.170.0090.02212.45
5.4.160.0080.02112.40
5.4.150.0080.02112.41
5.4.140.0080.02312.30
5.4.130.0100.02412.37
5.4.120.0070.02212.29
5.4.110.0090.02212.26
5.4.100.0070.02312.27
5.4.90.0070.02512.17
5.4.80.0100.02112.28
5.4.70.0050.02312.25
5.4.60.0040.02812.26
5.4.50.0040.02512.20
5.4.40.0070.02012.28
5.4.30.0040.02312.32
5.4.20.0070.02212.28
5.4.10.0040.02412.33
5.4.00.0090.02012.06
5.3.290.0030.02813.01
5.3.280.0070.02212.83
5.3.270.0050.02512.93
5.3.260.0090.02412.88
5.3.250.0070.02212.90
5.3.240.0030.02812.84
5.3.230.0030.02512.83
5.3.220.0110.01912.79
5.3.210.0070.02512.76
5.3.200.0070.02112.81
5.3.190.0060.02512.86
5.3.180.0110.01912.91
5.3.170.0100.02012.91
5.3.160.0090.02112.92
5.3.150.0040.02612.86
5.3.140.0070.02412.81
5.3.130.0090.02412.84
5.3.120.0080.02212.76
5.3.110.0050.02812.85
5.3.100.0040.02712.59
5.3.90.0050.02812.61
5.3.80.0050.02512.52
5.3.70.0070.02512.59
5.3.60.0070.02612.61
5.3.50.0110.02312.49
5.3.40.0090.02012.55
5.3.30.0040.02712.45
5.3.20.0070.02412.44
5.3.10.0090.02112.30
5.3.00.0050.02412.27
5.2.170.0050.02210.68
5.2.160.0050.02410.61
5.2.150.0070.02010.59
5.2.140.0050.02110.72
5.2.130.0030.02610.53
5.2.120.0060.01710.69
5.2.110.0090.01410.62
5.2.100.0060.01710.56
5.2.90.0040.02110.54
5.2.80.0050.01910.53
5.2.70.0050.01910.56
5.2.60.0080.01710.46
5.2.50.0050.02010.46
5.2.40.0040.02210.55
5.2.30.0050.02110.49
5.2.20.0080.01910.46
5.2.10.0040.02010.38
5.2.00.0040.02010.25
5.1.60.0060.0169.57
5.1.50.0060.0179.48
5.1.40.0040.0199.60
5.1.30.0080.0179.78
5.1.20.0090.0169.79
5.1.10.0060.0159.65
5.1.00.0060.0159.56
5.0.50.0080.0128.46
5.0.40.0030.0148.30
5.0.30.0060.0168.21
5.0.20.0060.0148.20
5.0.10.0050.0138.19
5.0.00.0050.0178.18
4.4.90.0010.0127.46
4.4.80.0030.0097.45
4.4.70.0040.0117.45
4.4.60.0060.0097.45
4.4.50.0050.0097.46
4.4.40.0050.0147.43
4.4.30.0020.0107.45
4.4.20.0040.0097.49
4.4.10.0010.0117.50
4.4.00.0030.0147.45
4.3.110.0040.0097.40
4.3.100.0040.0117.40
4.3.90.0020.0137.39
4.3.80.0010.0177.36
4.3.70.0010.0117.39
4.3.60.0050.0077.38
4.3.50.0040.0097.38
4.3.40.0020.0157.34
4.3.30.0040.0076.71
4.3.20.0020.0096.71
4.3.10.0010.0116.68
4.3.00.0070.00912.87

preferences:
45.97 ms | 400 KiB | 5 Q