3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => array(1)); $array2 = array("a" => array("1")); $result = array_intersect_assoc($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.60.0140.00718.10
8.3.50.0110.01022.85
8.3.40.0040.01118.58
8.3.30.0100.00718.79
8.3.20.0060.00320.07
8.3.10.0080.00023.48
8.3.00.0050.00319.26
8.2.180.0120.00616.38
8.2.170.0040.01122.96
8.2.160.0030.01020.53
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0070.00317.75
8.2.110.0030.00622.16
8.2.100.0070.00418.22
8.2.90.0000.00819.05
8.2.80.0000.00717.97
8.2.70.0000.00817.49
8.2.60.0040.00417.79
8.2.50.0080.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00817.91
8.2.20.0050.00317.65
8.2.10.0050.00218.03
8.2.00.0000.00817.66
8.1.280.0200.00025.92
8.1.270.0060.00322.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.19
8.1.230.0100.00319.21
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0100.00017.10
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0080.00018.31
8.1.160.0070.00021.99
8.1.150.0040.00418.69
8.1.140.0040.00417.37
8.1.130.0030.00317.76
8.1.120.0030.00317.40
8.1.110.0000.00717.39
8.1.100.0050.00217.28
8.1.90.0000.00717.29
8.1.80.0030.00317.41
8.1.70.0050.00317.26
8.1.60.0020.00517.48
8.1.50.0040.00417.44
8.1.40.0030.00817.49
8.1.30.0040.00417.60
8.1.20.0000.00817.57
8.1.10.0040.00417.32
8.1.00.0050.00317.44
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.24
8.0.270.0000.00717.20
8.0.260.0060.00018.42
8.0.250.0000.00716.88
8.0.240.0040.00416.94
8.0.230.0000.00716.94
8.0.220.0030.00316.86
8.0.210.0070.00016.86
8.0.200.0040.00416.93
8.0.190.0030.00616.86
8.0.180.0060.00316.96
8.0.170.0030.00516.91
8.0.160.0030.00316.75
8.0.150.0030.00516.82
8.0.140.0000.00716.85
8.0.130.0000.00813.35
8.0.120.0030.00616.88
8.0.110.0070.00016.90
8.0.100.0000.00716.77
8.0.90.0070.00016.94
8.0.80.0120.00316.87
8.0.70.0030.00516.88
8.0.60.0040.00416.78
8.0.50.0070.00016.89
8.0.30.0070.01216.80
8.0.20.0150.01317.40
8.0.10.0000.00717.03
8.0.00.0140.00416.62
7.4.330.0030.00315.00
7.4.320.0000.00616.36
7.4.300.0060.00016.28
7.4.290.0000.00816.53
7.4.280.0070.00016.53
7.4.270.0000.00716.54
7.4.260.0060.00316.50
7.4.250.0040.00416.40
7.4.240.0050.00216.48
7.4.230.0030.00316.34
7.4.220.0040.01416.46
7.4.210.0040.01116.53
7.4.200.0000.00716.50
7.4.160.0060.00916.42
7.4.150.0030.02017.40
7.4.140.0100.01017.86
7.4.130.0120.00816.47
7.4.120.0120.00516.26
7.4.110.0130.00316.67
7.4.100.0160.00016.48
7.4.90.0170.00016.38
7.4.80.0140.00719.39
7.4.70.0040.01516.46
7.4.60.0090.00916.35
7.4.50.0000.00416.05
7.4.40.0060.01016.54
7.4.30.0090.01216.46
7.4.00.0000.01414.60
7.3.330.0030.00312.95
7.3.320.0000.00613.13
7.3.310.0070.00016.02
7.3.300.0030.00316.02
7.3.290.0100.01016.25
7.3.280.0090.00816.18
7.3.270.0080.00817.40
7.3.260.0120.01116.23
7.3.250.0150.00316.26
7.3.240.0030.01316.08
7.3.230.0160.00016.39
7.3.210.0090.00916.46
7.3.200.0160.00616.23
7.3.190.0030.01516.21
7.3.180.0050.01316.29
7.3.170.0070.01016.39
7.3.160.0130.01016.15
7.2.330.0130.00316.38
7.2.320.0140.01016.52
7.2.310.0030.01416.49
7.2.300.0100.00516.68
7.2.290.0130.00316.43
7.2.00.0130.00918.88
7.1.100.0050.00517.97
7.1.70.0040.00417.25
7.1.60.0110.01419.40
7.1.50.0150.01116.92
7.1.00.0100.07022.42
7.0.200.0070.01016.68
7.0.140.0070.07022.09
7.0.120.0000.03722.08
7.0.110.0100.07322.00
7.0.100.0030.05322.09
7.0.90.0000.04021.98
7.0.80.0030.03322.10
7.0.70.0000.04721.91
7.0.60.0100.07721.99
7.0.50.0100.08722.01
7.0.40.0030.05320.14
7.0.30.0000.06020.11
7.0.20.0100.03720.13
7.0.10.0000.04020.11
7.0.00.0070.07719.92
5.6.280.0070.07021.03
5.6.270.0070.08020.98
5.6.260.0030.08020.81
5.6.250.0030.03721.01
5.6.240.0030.05320.86
5.6.230.0000.04720.92
5.6.220.0030.03320.75
5.6.210.0030.08320.91
5.6.200.0030.08020.77
5.6.190.0030.03720.85
5.6.180.0030.08320.99
5.6.170.0030.08720.79
5.6.160.0070.03720.77
5.6.150.0070.03320.99
5.6.140.0030.08020.99
5.6.130.0070.08020.92
5.6.120.0100.09321.00
5.6.110.0070.07720.95
5.6.100.0100.07720.92
5.6.90.0070.08020.84
5.6.80.0100.07020.32
5.6.70.0000.06320.27
5.6.60.0070.06320.19
5.6.50.0030.07320.32
5.6.40.0000.04320.15
5.6.30.0070.05720.12
5.6.20.0100.04720.36
5.6.10.0000.04020.11
5.6.00.0100.03320.03
5.5.380.0000.04717.44
5.5.370.0070.04017.50
5.5.360.0030.04317.49
5.5.350.0030.07317.53
5.5.340.0070.03718.27
5.5.330.0070.07017.83
5.5.320.0070.03018.25
5.5.310.0200.07017.91
5.5.300.0070.06718.25
5.5.290.0030.04318.11
5.5.280.0030.03718.07
5.5.270.0100.08017.95
5.5.260.0070.07318.24
5.5.250.0100.07717.73
5.5.240.0000.08017.60
5.5.230.0130.02717.30
5.5.220.0000.07017.59
5.5.210.0070.07017.51
5.5.200.0000.04317.45
5.5.190.0000.04717.45
5.5.180.0000.04317.47
5.5.160.0030.03717.48
5.5.150.0000.05017.24
5.5.140.0070.04017.48
5.5.130.0030.03717.30
5.5.120.0070.03717.45
5.5.110.0070.03717.39
5.5.100.0200.06017.38
5.5.90.0070.05717.35
5.5.80.0070.03717.37
5.5.70.0100.04317.51
5.5.60.0070.04317.16
5.5.50.0030.04017.15
5.5.40.0030.06317.46
5.5.30.0170.05717.36
5.5.20.0100.07017.06
5.5.10.0100.05317.28
5.5.00.0170.05017.28
5.4.450.0070.06319.22
5.4.440.0030.04019.41
5.4.430.0030.08019.41
5.4.420.0030.05719.54
5.4.410.0030.08319.30
5.4.400.0030.08018.90
5.4.390.0000.08718.89
5.4.380.0130.06719.08
5.4.370.0130.06719.09
5.4.360.0000.04018.94
5.4.350.0030.06019.24
5.4.340.0000.05319.14
5.4.320.0070.07318.98
5.4.310.0100.06019.09
5.4.300.0070.03318.95
5.4.290.0100.06319.13
5.4.280.0230.03018.92
5.4.270.0000.04019.13
5.4.260.0070.04319.09
5.4.250.0170.03018.91
5.4.240.0070.04719.08
5.4.230.0000.08019.08
5.4.220.0130.06019.23
5.4.210.0030.07319.26
5.4.200.0070.07018.95
5.4.190.0000.04319.08
5.4.180.0130.07319.13
5.4.170.0030.06019.12
5.4.160.0000.08019.06
5.4.150.0030.06719.16
5.4.140.0000.06716.48
5.4.130.0030.04016.53
5.4.120.0070.03716.47
5.4.110.0000.04716.52
5.4.100.0100.06016.52
5.4.90.0000.04716.52
5.4.80.0100.07016.27
5.4.70.0000.05716.34
5.4.60.0030.03716.50
5.4.50.0070.07016.25
5.4.40.0030.06316.45
5.4.30.0200.06316.57
5.4.20.0070.07016.38
5.4.10.0070.07316.30
5.4.00.0130.05315.86
5.3.290.0230.05714.52
5.3.280.0130.04714.73
5.3.270.0030.07014.46
5.3.260.0130.05714.58
5.3.250.0100.05014.63
5.3.240.0030.07014.73
5.3.230.0030.07014.59
5.3.220.0070.04014.55
5.3.210.0000.04014.52
5.3.200.0130.04314.56
5.3.190.0070.07014.57
5.3.180.0070.06314.57
5.3.170.0030.07714.59
5.3.160.0070.03714.54
5.3.150.0070.07314.56
5.3.140.0130.06714.67
5.3.130.0070.08014.54
5.3.120.0070.06714.55
5.3.110.0070.07314.54
5.3.100.0070.07314.16
5.3.90.0070.05714.01
5.3.80.0130.03314.07
5.3.70.0130.07014.10
5.3.60.0000.04314.13
5.3.50.0100.06313.93
5.3.40.0070.07313.96
5.3.30.0100.06713.98
5.3.20.0100.07013.71
5.3.10.0070.03313.65
5.3.00.0070.06713.48
5.2.170.0070.05311.14
5.2.160.0170.03011.10
5.2.150.0100.03311.22
5.2.140.0070.05711.36
5.2.130.0070.03311.08
5.2.120.0070.02711.07
5.2.110.0000.04011.05
5.2.100.0030.04711.16
5.2.90.0070.05711.09
5.2.80.0030.05311.04
5.2.70.0070.04711.05
5.2.60.0000.03311.17
5.2.50.0030.03710.98
5.2.40.0070.03011.21
5.2.30.0100.03710.82
5.2.20.0070.05710.98
5.2.10.0030.06010.99
5.2.00.0030.06310.93
5.1.60.0000.05010.07
5.1.50.0070.0439.98
5.1.40.0030.0539.98
5.1.30.0070.05310.32
5.1.20.0030.05010.31
5.1.10.0030.05310.03
5.1.00.0030.05710.12
5.0.50.0070.0309.75
5.0.40.0030.0209.75
5.0.30.0070.0639.75
5.0.20.0000.0409.75
5.0.10.0070.0239.75
5.0.00.0070.0439.75
4.4.90.0030.0339.75
4.4.80.0000.0309.75
4.4.70.0070.0279.75
4.4.60.0030.0209.75
4.4.50.0030.0179.75
4.4.40.0000.0609.75
4.4.30.0030.0339.75
4.4.20.0030.0309.75
4.4.10.0030.0139.75
4.4.00.0000.0479.75
4.3.110.0030.0339.75
4.3.100.0030.0339.75
4.3.90.0030.0309.75
4.3.80.0100.0439.75
4.3.70.0000.0339.75
4.3.60.0000.0179.75
4.3.50.0000.0209.75
4.3.40.0030.0609.75
4.3.30.0000.0209.75
4.3.20.0000.0379.75
4.3.10.0070.0279.75
4.3.00.0000.0379.75

preferences:
53.5 ms | 401 KiB | 5 Q