3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array(0 => "123"); $arr2 = array(0 => "1",1=>"21",2=>"123"); $arr3 = array_intersect($arr1,$arr2); print_r($arr3);

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.00316.75
8.3.50.0160.00322.04
8.3.40.0150.00618.50
8.3.30.0110.00318.51
8.3.20.0000.00720.97
8.3.10.0050.00321.83
8.3.00.0000.00720.95
8.2.180.0160.00316.32
8.2.170.0040.01122.96
8.2.160.0120.00320.53
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00020.80
8.2.110.0030.00620.52
8.2.100.0110.00017.54
8.2.90.0000.00817.84
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00617.93
8.2.50.0050.00318.10
8.2.40.0000.00722.11
8.2.30.0070.00019.36
8.2.20.0040.00417.52
8.2.10.0040.00418.03
8.2.00.0000.00718.09
8.1.280.0070.00725.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00321.02
8.1.230.0110.00020.98
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0070.00020.79
8.1.150.0050.00318.85
8.1.140.0000.00717.63
8.1.130.0030.00317.54
8.1.120.0040.00417.34
8.1.110.0080.00017.40
8.1.100.0050.00317.29
8.1.90.0060.00317.41
8.1.80.0030.00317.36
8.1.70.0000.00717.28
8.1.60.0040.00417.51
8.1.50.0000.00817.43
8.1.40.0050.00317.33
8.1.30.0040.00417.48
8.1.20.0030.00617.59
8.1.10.0000.00817.32
8.1.00.0090.00017.23
8.0.300.0080.00019.84
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0000.00817.09
8.0.260.0040.00417.18
8.0.250.0070.00016.88
8.0.240.0000.00716.75
8.0.230.0030.00316.89
8.0.220.0070.00016.72
8.0.210.0030.00316.81
8.0.200.0040.00416.81
8.0.190.0070.00016.86
8.0.180.0040.00416.73
8.0.170.0020.00516.75
8.0.160.0030.00316.85
8.0.150.0040.00416.70
8.0.140.0020.00816.73
8.0.130.0030.00313.24
8.0.120.0030.00516.75
8.0.110.0040.00416.80
8.0.100.0000.00716.68
8.0.90.0000.00816.84
8.0.80.0000.01416.82
8.0.70.0000.00716.88
8.0.60.0040.00416.91
8.0.50.0000.00716.76
8.0.30.0090.00916.92
8.0.20.0070.01217.40
8.0.10.0070.00016.74
8.0.00.0160.01216.63
7.4.330.0000.00515.08
7.4.320.0030.00316.42
7.4.300.0030.00316.53
7.4.290.0040.00416.35
7.4.280.0060.00316.46
7.4.270.0030.00316.44
7.4.260.0030.00616.55
7.4.250.0000.00716.52
7.4.240.0000.00716.51
7.4.230.0000.00616.36
7.4.220.0060.01216.39
7.4.210.0090.00816.48
7.4.200.0040.00416.35
7.4.160.0130.01016.49
7.4.150.0070.01017.40
7.4.140.0150.00517.86
7.4.130.0130.00316.31
7.4.120.0080.01016.46
7.4.110.0000.01716.34
7.4.100.0080.00816.37
7.4.90.0100.00716.35
7.4.80.0140.00419.39
7.4.70.0030.01416.46
7.4.60.0060.01016.32
7.4.50.0110.00416.11
7.4.40.0160.00316.40
7.4.30.0130.01016.26
7.4.10.0060.01214.72
7.4.00.0050.01314.84
7.3.330.0090.00012.97
7.3.320.0000.00512.91
7.3.310.0000.00716.06
7.3.300.0030.00316.01
7.3.290.0030.00316.17
7.3.280.0040.01116.17
7.3.270.0060.01117.40
7.3.260.0120.00416.30
7.3.250.0100.00916.19
7.3.240.0120.00516.53
7.3.230.0030.01216.39
7.3.210.0160.00316.50
7.3.200.0110.00716.07
7.3.190.0080.00816.17
7.3.180.0100.00716.52
7.3.170.0060.01616.27
7.3.160.0060.00916.36
7.3.130.0000.01314.38
7.3.120.0090.00714.67
7.3.110.0060.01114.83
7.3.100.0010.01214.60
7.3.90.0050.01014.65
7.3.80.0050.00814.43
7.3.70.0030.00914.54
7.3.60.0130.00314.62
7.3.50.0060.00614.55
7.3.40.0080.00614.68
7.3.30.0000.01414.71
7.3.20.0090.00316.46
7.3.10.0050.01016.58
7.3.00.0060.00316.37
7.2.330.0030.01516.59
7.2.320.0080.01116.31
7.2.310.0070.01016.16
7.2.300.0090.00616.48
7.2.290.0140.00616.20
7.2.260.0070.01014.86
7.2.250.0040.01215.03
7.2.240.0080.00814.67
7.2.230.0080.00614.91
7.2.220.0060.01014.92
7.2.210.0050.00814.90
7.2.200.0070.00514.76
7.2.190.0050.01214.81
7.2.180.0060.00714.68
7.2.170.0030.01114.75
7.2.160.0070.00714.95
7.2.150.0060.00617.00
7.2.140.0090.00616.83
7.2.130.0070.00716.84
7.2.120.0050.00516.61
7.2.110.0050.00516.75
7.2.100.0070.00716.84
7.2.90.0080.00616.87
7.2.80.0080.00316.76
7.2.70.0040.00816.69
7.2.60.0020.01116.68
7.2.50.0060.00316.85
7.2.40.0000.01216.86
7.2.30.0030.01516.90
7.2.20.0030.00616.63
7.2.10.0000.01616.55
7.2.00.0070.00618.07
7.1.330.0060.01015.63
7.1.320.0040.01015.63
7.1.310.0080.00515.85
7.1.300.0060.00615.70
7.1.290.0090.00415.82
7.1.280.0070.00715.63
7.1.270.0030.01015.70
7.1.260.0030.01115.79
7.1.250.0000.01215.80
7.1.240.0080.00415.64
7.1.230.0050.00515.68
7.1.220.0050.00515.54
7.1.210.0110.00015.83
7.1.200.0080.00515.68
7.1.190.0080.00415.86
7.1.180.0030.00615.79
7.1.170.0090.00015.73
7.1.160.0130.00015.59
7.1.150.0130.00315.53
7.1.140.0070.00715.71
7.1.130.0080.00415.55
7.1.120.0030.00615.70
7.1.110.0000.01115.80
7.1.100.0090.00417.00
7.1.90.0100.00715.79
7.1.80.0030.00715.61
7.1.70.0040.00516.35
7.1.60.0050.01517.46
7.1.50.0070.00715.76
7.1.40.0080.00415.62
7.1.30.0080.00415.85
7.1.20.0040.00715.40
7.1.10.0080.00415.78
7.1.00.0030.04319.04
7.0.330.0060.00615.40
7.0.320.0000.01515.39
7.0.310.0030.01015.25
7.0.300.0000.00815.23
7.0.290.0040.01115.34
7.0.280.0090.00915.27
7.0.270.0070.00415.25
7.0.260.0100.00015.28
7.0.250.0030.01315.38
7.0.240.0110.00715.36
7.0.230.0100.00315.46
7.0.220.0080.00415.31
7.0.210.0040.01115.48
7.0.200.0080.01015.23
7.0.190.0070.00715.23
7.0.180.0030.00715.36
7.0.170.0040.00715.42
7.0.160.0060.00615.42
7.0.150.0000.00915.36
7.0.140.0130.00615.44
7.0.130.0030.01715.16
7.0.120.0030.00815.25
7.0.110.0030.01015.34
7.0.100.0060.00615.47
7.0.90.0060.00615.34
7.0.80.0040.01115.34
7.0.70.0030.00915.30
7.0.60.0430.00717.72
7.0.50.0430.00317.97
7.0.40.0420.00516.77
7.0.30.0430.00416.78
7.0.20.0480.00316.81
7.0.10.0500.00216.80
7.0.00.0450.00416.80
5.6.400.0030.01314.46
5.6.390.0030.01014.24
5.6.380.0030.00814.44
5.6.370.0070.00714.08
5.6.360.0090.00014.12
5.6.350.0100.00014.55
5.6.340.0070.00314.14
5.6.330.0030.01014.64
5.6.320.0030.01314.58
5.6.310.0070.00714.11
5.6.300.0140.00414.50
5.6.290.0080.00514.28
5.6.280.0080.03517.66
5.6.270.0040.00814.36
5.6.260.0130.00314.45
5.6.250.0080.00014.47
5.6.240.0040.00814.15
5.6.230.0030.00614.28
5.6.220.0040.00414.18
5.6.210.0430.00217.49
5.6.200.0480.00217.65
5.6.190.0460.00317.75
5.6.180.0460.00217.53
5.6.170.0430.00517.49
5.6.160.0450.00317.77
5.6.150.0430.00517.65
5.6.140.0480.00517.61
5.6.130.0510.00117.74
5.6.120.0370.00717.45
5.6.110.0470.00317.74
5.6.100.0520.00417.59
5.6.90.0450.00417.48
5.6.80.0400.00317.25
5.6.70.0420.00317.50
5.6.60.0450.00217.26
5.6.50.0400.00517.29
5.6.40.0430.00517.15
5.6.30.0400.00717.26
5.6.20.0570.00717.19
5.6.10.0400.00317.28
5.6.00.0380.00017.22
5.5.380.0040.00414.29
5.5.370.0050.00514.16
5.5.360.0060.00914.00
5.5.350.0470.00517.33
5.5.340.0510.00217.64
5.5.330.0470.00317.50
5.5.320.0420.00517.65
5.5.310.0450.00217.48
5.5.300.0410.00117.50
5.5.290.0480.00217.55
5.5.280.0380.00317.41
5.5.270.0480.00317.56
5.5.260.0450.00717.38
5.5.250.0580.00017.35
5.5.240.0430.00517.34
5.5.230.0450.00317.17
5.5.220.0450.00417.16
5.5.210.0420.00717.12
5.5.200.0530.00217.21
5.5.190.0420.00717.01
5.5.180.0440.00517.13
5.5.170.0100.00314.24
5.5.160.0380.00517.05
5.5.150.0380.00517.10
5.5.140.0470.00217.09
5.5.130.0440.00217.10
5.5.120.0400.00517.01
5.5.110.0450.00517.19
5.5.100.0430.00217.21
5.5.90.0600.00017.07
5.5.80.0440.00417.03
5.5.70.0460.00317.11
5.5.60.0420.00517.07
5.5.50.0480.00417.13
5.5.40.0440.00017.09
5.5.30.0500.00616.95
5.5.20.0430.00517.00
5.5.10.0440.00016.98
5.5.00.0440.00016.97

preferences:
56.09 ms | 401 KiB | 5 Q