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' => 1, 'name' => 'bar') ); $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.0150.00316.75
8.3.50.0060.01517.56
8.3.40.0070.00718.64
8.3.30.0070.00718.62
8.3.20.0050.00318.79
8.3.10.0040.00420.45
8.3.00.0040.00419.26
8.2.180.0090.00616.32
8.2.170.0100.00722.96
8.2.160.0100.00721.07
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.70
8.2.110.0060.00322.04
8.2.100.0060.00617.91
8.2.90.0030.00617.75
8.2.80.0040.00418.78
8.2.70.0080.00017.80
8.2.60.0040.00417.50
8.2.50.0060.00617.55
8.2.40.0040.00419.48
8.2.30.0000.00817.96
8.2.20.0000.00717.63
8.2.10.0040.00417.68
8.2.00.0000.00917.63
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0000.00824.00
8.1.230.0090.00319.08
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0080.00017.38
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00419.01
8.1.160.0050.00218.85
8.1.150.0030.00618.68
8.1.140.0050.00217.50
8.1.130.0000.00717.73
8.1.120.0040.00417.41
8.1.110.0000.00717.46
8.1.100.0030.00317.36
8.1.90.0040.00417.45
8.1.80.0000.00817.48
8.1.70.0060.00317.43
8.1.60.0050.00317.51
8.1.50.0000.00817.48
8.1.40.0060.00317.52
8.1.30.0050.00317.64
8.1.20.0040.00417.55
8.1.10.0040.00417.43
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0040.00417.15
8.0.260.0040.00418.44
8.0.250.0060.00317.00
8.0.240.0000.00816.96
8.0.230.0040.00416.96
8.0.220.0030.00716.78
8.0.210.0030.00316.92
8.0.200.0040.00416.93
8.0.190.0000.00716.92
8.0.180.0030.00616.95
8.0.170.0040.00416.79
8.0.160.0030.00416.93
8.0.150.0040.00416.85
8.0.140.0110.00416.87
8.0.130.0000.00613.21
8.0.120.0040.00416.73
8.0.110.0040.00316.77
8.0.100.0000.00816.84
8.0.90.0000.00716.71
8.0.80.0140.00716.90
8.0.70.0000.00716.92
8.0.60.0040.00416.75
8.0.50.0000.00716.79
8.0.30.0100.00816.90
8.0.20.0110.00817.09
8.0.10.0000.00817.00
8.0.00.0070.01116.58
7.4.330.0000.00513.00
7.4.320.0000.00616.52
7.4.300.0060.00316.36
7.4.290.0030.00316.42
7.4.280.0000.00816.51
7.4.270.0030.00316.54
7.4.260.0000.00513.16
7.4.250.0030.00616.49
7.4.240.0000.00716.43
7.4.230.0050.00216.61
7.4.220.0070.01016.44
7.4.210.0080.00616.58
7.4.200.0030.00316.68
7.4.190.0070.00016.67
7.4.160.0080.00816.50
7.4.150.0070.01116.49
7.4.140.0090.00816.36
7.4.130.0080.01016.52
7.4.120.0160.00316.49
7.4.110.0120.00916.67
7.4.100.0040.01416.66
7.4.90.0070.01016.49
7.4.80.0070.01519.39
7.4.70.0150.00316.49
7.4.60.0100.01016.52
7.4.50.0110.00316.30
7.4.40.0140.00316.35
7.4.30.0090.00616.68
7.4.00.0100.00714.88
7.3.330.0030.00313.36
7.3.320.0050.00013.17
7.3.310.0000.00816.42
7.3.300.0000.00816.27
7.3.290.0070.01116.28
7.3.280.0080.00816.36
7.3.270.0120.00616.29
7.3.260.0110.00716.36
7.3.250.0130.01116.54
7.3.240.0040.01316.43
7.3.230.0110.00516.34
7.3.210.0080.00816.23
7.3.200.0080.00816.28
7.3.190.0120.00616.39
7.3.180.0090.00616.58
7.3.170.0040.01116.27
7.3.160.0130.00916.64
7.3.120.0060.00915.08
7.2.330.0060.01316.58
7.2.320.0030.01516.60
7.2.310.0130.00616.47
7.2.300.0110.00616.77
7.2.290.0130.00316.38
7.2.00.0030.01019.38
7.1.100.0110.00317.97
7.1.70.0070.00317.16
7.1.60.0030.01719.40
7.1.50.0070.01416.63
7.1.00.0030.05022.54
7.0.200.0040.00416.31
7.0.140.0030.07321.97
7.0.120.0000.07021.95
7.0.60.0030.05319.94
7.0.50.0070.05317.93
7.0.40.0130.08320.24
7.0.30.0270.07020.24
7.0.20.0170.08720.19
7.0.10.0170.04720.26
7.0.00.0030.04720.32
5.6.280.0030.07321.10
5.6.210.0100.07720.44
5.6.200.0070.06318.20
5.6.190.0100.04020.57
5.6.180.0330.07720.45
5.6.170.0330.06720.54
5.6.160.0070.08320.44
5.6.150.0030.08318.18
5.6.140.0100.08018.17
5.6.130.0030.05718.25
5.6.120.0170.08021.00
5.6.110.0100.06721.11
5.6.100.0030.04720.98
5.6.90.0070.08720.96
5.6.80.0130.07720.54
5.6.70.0370.06320.40
5.5.350.0300.07320.45
5.5.340.0070.05717.97
5.5.330.0130.04720.27
5.5.320.0200.07020.40
5.5.310.0300.08020.34
5.5.300.0070.07318.02
5.5.290.0100.08017.94
5.5.280.0000.04320.72
5.5.270.0070.04020.76
5.5.260.0070.07020.64
5.5.250.0100.08020.79
5.5.240.0030.05720.07
5.4.450.0030.08319.57
5.4.440.0030.06719.57
5.4.430.0030.08019.17
5.4.420.0070.06719.47
5.4.410.0100.07319.07
5.4.400.0000.08319.25
5.4.390.0070.07719.24
5.4.380.0030.05718.98
5.4.370.0100.06719.20
5.4.360.0170.05319.14
5.4.350.0030.04019.20
5.4.340.0000.04319.24
5.4.320.0100.08018.98
5.4.310.0100.06719.20
5.4.300.0100.07318.85
5.4.290.0100.07019.14
5.4.280.0100.07019.24
5.4.270.0130.05719.16
5.4.260.0070.04019.12
5.4.250.0270.02719.15
5.4.240.0100.03019.23
5.4.230.0000.04019.23
5.4.220.0030.04019.14
5.4.210.0070.03319.07
5.4.200.0030.03718.92
5.4.190.0000.04018.84
5.4.180.0000.04019.19
5.4.170.0070.03319.23
5.4.160.0100.03018.85
5.4.150.0070.04018.96
5.4.140.0070.03316.38
5.4.130.0000.03716.50
5.4.120.0030.03716.30
5.4.110.0030.03716.45
5.4.100.0030.03316.45
5.4.90.0000.04316.30
5.4.80.0030.03316.46
5.4.70.0100.03016.41
5.4.60.0000.03716.50
5.4.50.0070.04016.38
5.4.40.0000.05316.28
5.4.30.0100.03316.42
5.4.20.0030.03316.36
5.4.10.0000.03716.38
5.4.00.0030.03315.74
5.3.290.0170.05314.81
5.3.280.0030.03714.59
5.3.270.0030.03714.63
5.3.260.0000.04314.75
5.3.250.0070.03314.66
5.3.240.0030.03714.65
5.3.230.0070.03714.65
5.3.220.0070.04014.56
5.3.210.0070.03314.48
5.3.200.0000.04014.58
5.3.190.0070.03314.61
5.3.180.0030.04014.70
5.3.170.0000.04014.63
5.3.160.0000.04314.61
5.3.150.0070.03314.56
5.3.140.0070.04014.60
5.3.130.0070.03314.71
5.3.120.0030.03714.62
5.3.110.0130.03314.57
5.3.100.0000.04014.05
5.3.90.0030.03314.05
5.3.80.0000.04314.04
5.3.70.0070.03314.06
5.3.60.0030.05713.89
5.3.50.0070.03013.94
5.3.40.0030.03713.94
5.3.30.0000.03713.98
5.3.20.0030.03713.77
5.3.10.0070.03713.70
5.3.00.0100.06713.57
5.2.170.0030.02711.13
5.2.160.0070.02311.30
5.2.150.0000.03011.07
5.2.140.0070.02711.07
5.2.130.0030.02711.11
5.2.120.0070.06011.26
5.2.110.0100.05711.09
5.2.100.0100.05711.01
5.2.90.0030.03010.92
5.2.80.0100.06711.04
5.2.70.0030.06311.03
5.2.60.0100.02311.03
5.2.50.0070.04710.91
5.2.40.0000.03310.89
5.2.30.0000.03310.82
5.2.20.0000.07010.95
5.2.10.0100.05010.86
5.2.00.0130.05710.67
5.1.60.0100.0479.90
5.1.50.0100.05010.06
5.1.40.0100.0239.97
5.1.30.0000.05310.29
5.1.20.0070.04710.25
5.1.10.0070.05710.06
5.1.00.0070.05310.22
5.0.50.0030.0338.61
5.0.40.0030.0238.61
5.0.30.0030.0638.61
5.0.20.0030.0338.61
5.0.10.0030.0438.61
5.0.00.0000.0508.61
4.4.90.0000.0178.61
4.4.80.0000.0378.61
4.4.70.0000.0278.61
4.4.60.0030.0308.61
4.4.50.0100.0238.61
4.4.40.0070.0378.61
4.4.30.0070.0208.61
4.4.20.0000.0208.61
4.4.10.0000.0378.61
4.4.00.0000.0608.61
4.3.110.0030.0378.61
4.3.100.0030.0378.61
4.3.90.0100.0338.61
4.3.80.0000.0608.61
4.3.70.0000.0378.61
4.3.60.0030.0338.61
4.3.50.0030.0178.61
4.3.40.0030.0278.61
4.3.30.0030.0238.61
4.3.20.0070.0338.61
4.3.10.0000.0378.61
4.3.00.0070.0308.61

preferences:
43.6 ms | 401 KiB | 5 Q