3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "green", "red", "blue"); $array2 = array("b" => "green", "yellow", "red"); $result = array_intersect($array1, $array2); print_r($result);

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.0110.00718.42
8.3.30.0140.00018.42
8.3.20.0040.00418.38
8.3.10.0000.00821.09
8.3.00.0040.00423.71
8.2.170.0120.00622.96
8.2.160.0070.00720.21
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00221.03
8.2.110.0060.00322.30
8.2.100.0060.01121.15
8.2.90.0050.00317.63
8.2.80.0080.00318.79
8.2.70.0060.00317.38
8.2.60.0040.00417.50
8.2.50.0070.00618.49
8.2.40.0070.00519.42
8.2.30.0070.00918.89
8.2.20.0090.00318.74
8.2.10.0110.00418.24
8.2.00.0080.00718.19
8.1.270.0130.00322.71
8.1.260.0070.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00618.80
8.1.230.0070.00417.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.22
8.1.190.0080.00017.10
8.1.180.0090.00418.79
8.1.170.0080.00419.21
8.1.160.0120.00118.60
8.1.150.0120.00318.53
8.1.140.0080.00518.09
8.1.130.0090.00518.12
8.1.120.0110.00417.94
8.1.110.0070.00917.96
8.1.100.0100.00417.93
8.1.90.0080.00617.96
8.1.80.0080.00717.92
8.1.70.0110.00417.92
8.1.60.0110.00718.00
8.1.50.0130.00217.98
8.1.40.0110.00517.99
8.1.30.0070.00917.99
8.1.20.0110.00518.02
8.1.10.0100.00617.97
8.1.00.0100.00717.94
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0100.00418.43
8.0.270.0070.00618.06
8.0.260.0100.00317.88
8.0.250.0100.00117.66
8.0.240.0090.00517.64
8.0.230.0090.00517.62
8.0.220.0100.00417.60
8.0.210.0070.00717.61
8.0.200.0100.00417.67
8.0.190.0090.00617.69
8.0.180.0090.00517.63
8.0.170.0100.00417.63
8.0.160.0090.00517.62
8.0.150.0060.00917.59
8.0.140.0120.00217.59
8.0.130.0120.00216.75
8.0.120.0110.00417.61
8.0.110.0110.00317.56
8.0.100.0110.00317.57
8.0.90.0090.00517.64
8.0.80.0070.00817.62
8.0.70.0080.00617.64
8.0.60.0090.00517.61
8.0.50.0080.00617.60
8.0.30.0100.00717.51
8.0.20.0060.01017.70
8.0.10.0080.00817.68
8.0.00.0100.00917.35
7.4.330.0060.00216.81
7.4.320.0090.00417.47
7.4.300.0080.00517.47
7.4.290.0090.00517.43
7.4.280.0100.00417.43
7.4.270.0100.00317.46
7.4.260.0100.00316.62
7.4.250.0100.00417.43
7.4.240.0100.00417.41
7.4.230.0130.00217.48
7.4.220.0090.00717.44
7.4.210.0080.00617.06
7.4.200.0090.00417.40
7.4.190.0100.00317.45
7.4.180.0110.00517.85
7.4.160.0100.00517.45
7.4.150.0060.01017.66
7.4.140.0110.00617.54
7.4.130.0110.00716.99
7.4.120.0110.00617.20
7.4.110.0090.00917.05
7.4.100.0090.00817.07
7.4.90.0130.00517.05
7.4.80.0110.00617.54
7.4.70.0080.00917.05
7.4.60.0090.00717.01
7.4.50.0110.00517.04
7.4.40.0120.00616.96
7.4.30.0110.00616.87
7.4.20.0120.00616.92
7.4.10.0110.00817.07
7.4.00.0100.00716.72
7.3.330.0070.00616.53
7.3.320.0110.00316.50
7.3.310.0110.00217.26
7.3.300.0080.00517.27
7.3.290.0110.00417.26
7.3.280.0120.00516.91
7.3.270.0130.00417.61
7.3.260.0100.00717.67
7.3.250.0070.00916.94
7.3.240.0090.00717.04
7.3.230.0110.00616.98
7.3.220.0130.00417.08
7.3.210.0110.00616.90
7.3.200.0130.00416.97
7.3.190.0090.00816.90
7.3.180.0100.00816.92
7.3.170.0120.00516.95
7.3.160.0130.00716.89
7.3.150.0100.00716.82
7.3.140.0120.00616.90
7.3.130.0100.00716.89
7.3.120.0100.00616.65
7.3.110.0120.00516.85
7.3.100.0130.00416.86
7.3.90.0130.00516.57
7.3.80.0100.00716.65
7.3.70.0100.00816.59
7.3.60.0100.00916.63
7.3.50.0100.00716.58
7.3.40.0090.00816.59
7.3.30.0110.00816.59
7.3.20.0160.00716.39
7.3.10.0360.00816.38
7.3.00.0240.00716.20
7.2.340.0130.00717.20
7.2.330.0120.00617.04
7.2.320.0100.00917.11
7.2.310.0110.00717.12
7.2.300.0100.00717.15
7.2.290.0110.00617.02
7.2.280.0090.00917.07
7.2.270.0140.00517.03
7.2.260.0110.00717.12
7.2.250.0100.00817.07
7.2.240.0100.00717.10
7.2.230.0080.00917.09
7.2.220.0090.00916.83
7.2.210.0120.00616.70
7.2.200.0140.00516.81
7.2.190.0120.00716.69
7.2.180.0100.00816.78
7.2.170.0070.00916.69
7.2.160.0100.00816.73
7.2.150.0460.00816.62
7.2.140.0260.00816.64
7.2.130.0140.00516.59
7.2.120.0100.00816.62
7.2.110.0440.00816.54
7.2.100.0440.00616.78
7.2.90.0330.00916.86
7.2.80.0380.00916.83
7.2.70.0370.00616.89
7.2.60.0300.00816.74
7.2.50.0330.00916.87
7.2.40.0370.00716.83
7.2.30.0320.00816.93
7.2.20.0380.00716.86
7.2.10.0290.00816.94
7.2.00.0230.00817.12
7.1.330.0300.00716.83
7.1.320.0150.00616.35
7.1.310.0130.00816.37
7.1.300.0150.00516.31
7.1.290.0130.00716.33
7.1.280.0150.00716.32
7.1.270.0140.00616.27
7.1.260.0230.00516.20
7.1.250.0140.00715.91
7.1.240.0200.00715.98
7.1.230.0260.00715.97
7.1.220.0470.00716.05
7.1.210.0380.00615.95
7.1.200.0390.00615.98
7.1.190.0360.00716.03
7.1.180.0400.00715.90
7.1.170.0350.00615.98
7.1.160.0410.00715.97
7.1.150.0320.00716.00
7.1.140.0610.00716.07
7.1.130.0250.00716.03
7.1.120.0290.00816.00
7.1.110.0250.00915.92
7.1.100.0210.00815.86
7.1.90.0220.00815.91
7.1.80.0120.00915.93
7.1.70.0180.00915.91
7.1.60.0210.00917.80
7.1.50.0240.00817.72
7.1.40.0250.00817.66
7.1.30.0200.00817.70
7.1.20.0250.00817.68
7.1.10.0180.00815.96
7.1.00.0260.00615.89
7.0.330.0140.00515.68
7.0.320.0160.00715.74
7.0.310.0450.00715.79
7.0.300.0430.00615.73
7.0.290.0290.01015.72
7.0.280.0370.00515.75
7.0.270.0240.00815.78
7.0.260.0250.00815.73
7.0.250.0330.00815.67
7.0.240.0290.00715.71
7.0.230.0170.00915.69
7.0.220.0190.00715.75
7.0.210.0220.00915.63
7.0.200.0180.00815.77
7.0.190.0210.00715.72
7.0.180.0200.00715.64
7.0.170.0180.00815.70
7.0.160.0210.01015.67
7.0.150.0180.00815.67
7.0.140.0180.00715.72
7.0.130.0200.00815.73
7.0.120.0190.00715.70
7.0.110.0160.00715.72
7.0.100.0180.00715.69
7.0.90.0170.00515.71
7.0.80.0130.00915.71
7.0.70.0160.00715.72
7.0.60.0190.00815.66
7.0.50.0150.00815.64
7.0.40.0360.00815.55
7.0.30.0170.00615.58
7.0.20.0190.00715.54
7.0.10.0170.00615.53
7.0.00.0180.00815.56
5.6.400.0130.00616.33
5.6.390.0120.00716.23
5.6.380.0120.00715.98
5.6.370.0140.00916.06
5.6.360.0130.00816.12
5.6.350.0140.00816.00
5.6.340.0120.00916.00
5.6.330.0140.00816.04
5.6.320.0110.01216.00
5.6.310.0120.01016.01
5.6.300.0150.01517.01
5.6.290.0140.01616.99
5.6.280.0130.01717.00
5.6.270.0110.01917.01
5.6.260.0140.01616.99
5.6.250.0130.01517.01
5.6.240.0130.02016.98
5.6.230.0130.01716.99
5.6.220.0120.02117.05
5.6.210.0120.01816.99
5.6.200.0140.01717.01
5.6.190.0140.01717.03
5.6.180.0150.01516.93
5.6.170.0160.01516.97
5.6.160.0140.02117.02
5.6.150.0150.01517.07
5.6.140.0150.01617.04
5.6.130.0140.01716.98
5.6.120.0120.01816.98
5.6.110.0150.01817.04
5.6.100.0130.01716.99
5.6.90.0120.02216.94
5.6.80.0110.01716.86
5.6.70.0130.01416.90
5.6.60.0140.01516.81
5.6.50.0150.02016.77
5.6.40.0120.01516.82
5.6.30.0130.01716.85
5.6.20.0140.01616.81
5.6.10.0110.02216.87
5.6.00.0120.02216.75
5.5.380.0130.01516.03
5.5.370.0120.01615.96
5.5.360.0160.01715.94
5.5.350.0130.01615.93
5.5.340.0140.01516.08
5.5.330.0130.01916.10
5.5.320.0130.01716.03
5.5.310.0120.01716.05
5.5.300.0160.01416.16
5.5.290.0120.02016.09
5.5.280.0150.02116.05
5.5.270.0110.01916.08
5.5.260.0130.01616.01
5.5.250.0150.01816.01
5.5.240.0120.01715.97
5.5.230.0150.01615.98
5.5.220.0130.01616.00
5.5.210.0140.01815.96
5.5.200.0140.01515.94
5.5.190.0150.01515.93
5.5.180.0120.01715.93
5.5.170.0160.00615.56
5.5.160.0130.01715.86
5.5.150.0140.01415.86
5.5.140.0120.01715.92
5.5.130.0140.01815.80
5.5.120.0120.01615.89
5.5.110.0130.01915.88
5.5.100.0130.01915.93
5.5.90.0120.01915.88
5.5.80.0150.01515.83
5.5.70.0150.01515.90
5.5.60.0130.01715.82
5.5.50.0120.02015.87
5.5.40.0130.01615.91
5.5.30.0150.01915.87
5.5.20.0120.02015.90
5.5.10.0140.02015.83
5.5.00.0120.01715.86
5.4.450.0120.01715.23
5.4.440.0120.01515.29
5.4.430.0100.01615.22
5.4.420.0110.01415.27
5.4.410.0080.01615.19
5.4.400.0120.01215.22
5.4.390.0120.01615.19
5.4.380.0100.01715.17
5.4.370.0110.01515.16
5.4.360.0110.01515.22
5.4.350.0120.01415.21
5.4.340.0100.01915.15
5.4.330.0110.00614.24
5.4.320.0110.01415.17
5.4.310.0130.01315.14
5.4.300.0120.01315.16
5.4.290.0120.01715.12
5.4.280.0120.01315.15
5.4.270.0110.01715.16
5.4.260.0120.01715.15
5.4.250.0130.01515.11
5.4.240.0120.01515.14
5.4.230.0130.01515.16
5.4.220.0120.01815.13
5.4.210.0130.01315.19
5.4.200.0130.01715.16
5.4.190.0090.01815.13
5.4.180.0110.01715.16
5.4.170.0110.01415.19
5.4.160.0130.01415.17
5.4.150.0100.01615.17
5.4.140.0110.01814.67
5.4.130.0110.01314.70
5.4.120.0110.01314.68
5.4.110.0120.01314.63
5.4.100.0110.01214.65
5.4.90.0090.01414.72
5.4.80.0110.01414.67
5.4.70.0110.01614.63
5.4.60.0110.01614.71
5.4.50.0110.01514.70
5.4.40.0110.01314.69
5.4.30.0120.01314.69
5.4.20.0110.01414.70
5.4.10.0100.01414.74
5.4.00.0110.01314.59
5.3.290.0110.01414.46
5.3.280.0130.01314.34
5.3.270.0090.01714.48
5.3.260.0120.01314.44
5.3.250.0100.01414.36
5.3.240.0100.01514.38
5.3.230.0090.01614.41
5.3.220.0120.01214.38
5.3.210.0100.01714.35
5.3.200.0100.01414.36
5.3.190.0110.01614.39
5.3.180.0090.01714.44
5.3.170.0120.01414.44
5.3.160.0120.01214.43
5.3.150.0100.01614.47
5.3.140.0090.01614.39
5.3.130.0090.01414.34
5.3.120.0070.01614.44
5.3.110.0110.01314.36
5.3.100.0100.01514.34
5.3.90.0100.01314.34
5.3.80.0100.01314.26
5.3.70.0090.01714.22
5.3.60.0080.01614.32
5.3.50.0100.01414.29
5.3.40.0090.01514.28
5.3.30.0100.01614.25
5.3.20.0100.01414.24
5.3.10.0080.01514.19
5.3.00.0100.01314.17

preferences:
46.18 ms | 400 KiB | 5 Q