3v4l.org

run code in 300+ PHP versions simultaneously
<?php function flattened_array_intersect($array,$total_arrays){ return implode(', ',array_keys(array_intersect(array_count_values($array),[$total_arrays]))); } echo flattened_array_intersect(array_merge([1,2,3,4,5],[1,3,5],[1,3,4,5],[1,3,5,6,7,8,9]),4);

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.4.130.0120.00917.62
8.4.120.0130.00622.36
8.4.110.0100.00718.73
8.4.100.0110.00817.64
8.4.90.0130.00617.89
8.4.80.0050.00317.89
8.4.70.0080.01417.64
8.4.60.0110.00818.85
8.4.50.0050.00418.64
8.4.40.0080.00017.64
8.4.30.0130.00617.68
8.4.20.0110.00017.50
8.4.10.0060.00319.25
8.3.260.0070.00516.61
8.3.250.0100.00818.82
8.3.240.0100.01016.91
8.3.230.0100.00816.53
8.3.220.0060.00316.37
8.3.210.0130.00716.43
8.3.200.0040.00416.64
8.3.190.0110.00417.02
8.3.180.0100.00616.34
8.3.170.0090.00920.71
8.3.160.0050.00516.64
8.3.150.0130.00618.83
8.3.140.0040.01116.47
8.3.130.0030.00616.56
8.3.120.0120.00620.58
8.3.110.0080.00016.43
8.3.100.0060.00316.70
8.3.90.0050.00326.77
8.3.80.0040.00416.63
8.3.70.0140.00718.31
8.3.60.0160.00618.18
8.3.50.0110.00517.37
8.3.40.0100.01018.71
8.3.30.0040.01118.79
8.3.20.0040.00420.39
8.3.10.0080.00023.71
8.3.00.0000.00819.91
8.2.290.0060.00320.69
8.2.280.0110.00720.00
8.2.270.0050.00316.99
8.2.260.0000.01018.77
8.2.250.0080.00016.44
8.2.240.0060.01217.05
8.2.230.0080.00020.94
8.2.220.0050.00524.06
8.2.210.0040.00426.77
8.2.200.0060.00318.16
8.2.190.0070.01116.58
8.2.180.0120.00625.92
8.2.170.0100.00722.96
8.2.160.0140.00019.40
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0040.00421.18
8.2.120.0060.00326.35
8.2.110.0130.01022.25
8.2.100.0040.00817.84
8.2.90.0080.00020.65
8.2.80.0030.00618.04
8.2.70.0000.00918.04
8.2.60.0000.00817.97
8.2.50.0000.00918.07
8.2.40.0060.00318.03
8.2.30.0040.00417.93
8.2.20.0040.00417.99
8.2.10.0040.00418.07
8.2.00.0040.00418.06
8.1.330.0120.00716.19
8.1.320.0110.00815.89
8.1.310.0030.01418.25
8.1.300.0120.00318.32
8.1.290.0060.00330.84
8.1.280.0030.01025.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.80
8.1.230.0070.00420.97
8.1.220.0030.00517.74
8.1.210.0040.00418.81
8.1.200.0060.00317.12
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0050.00318.58
8.1.160.0040.00418.86
8.1.150.0000.00720.27
8.1.140.0040.00417.59
8.1.130.0000.00718.81
8.1.120.0000.00717.39
8.1.110.0070.00017.39
8.1.100.0050.00217.38
8.1.90.0080.00017.30
8.1.80.0000.00717.29
8.1.70.0040.00417.42
8.1.60.0040.00417.55
8.1.50.0080.00317.34
8.1.40.0080.00017.45
8.1.30.0080.00017.52
8.1.20.0030.00517.55
8.1.10.0040.00417.50
8.1.00.0000.00717.44
8.0.300.0040.00419.97
8.0.290.0070.00016.75
8.0.280.0030.00318.25
8.0.270.0070.00017.12
8.0.260.0000.01016.77
8.0.250.0040.00416.84
8.0.240.0080.00316.90
8.0.230.0000.00716.77
8.0.220.0030.00416.82
8.0.210.0000.00716.80
8.0.200.0040.00416.90
8.0.190.0000.00716.91
8.0.180.0070.00016.69
8.0.170.0030.00616.86
8.0.160.0000.00716.73
8.0.150.0000.00716.78
8.0.140.0040.00416.71
8.0.130.0030.00313.25
8.0.120.0030.00616.82
8.0.110.0030.00416.88
8.0.100.0040.00416.86
8.0.90.0030.00516.76
8.0.80.0140.00016.79
8.0.70.0040.00416.83
8.0.60.0050.00216.66
8.0.50.0040.00416.80
8.0.30.0070.01117.21
8.0.20.0150.00617.40
8.0.10.0000.00816.84
8.0.00.0140.00716.75
7.4.330.0040.00015.55
7.4.320.0000.00616.56
7.4.300.0070.00016.44
7.4.290.0000.00616.33
7.4.280.0030.00616.36
7.4.270.0000.00716.46
7.4.260.0000.00816.54
7.4.250.0030.00316.49
7.4.240.0030.00316.46
7.4.230.0000.00716.53
7.4.220.0040.00416.36
7.4.210.0060.01216.46
7.4.200.0000.00716.44
7.4.160.0060.01216.46
7.4.150.0110.00917.40
7.4.140.0120.00717.86
7.4.130.0120.00616.28
7.4.120.0060.01116.46
7.4.110.0160.00016.29
7.4.100.0070.01016.54
7.4.90.0160.00316.49
7.4.80.0140.00419.39
7.4.70.0100.01016.49
7.4.60.0100.00716.29
7.4.50.0070.00716.48
7.4.40.0040.01216.48
7.4.00.0060.01115.02
7.3.330.0050.00013.09
7.3.320.0030.00313.17
7.3.310.0070.00016.41
7.3.300.0040.00416.35
7.3.290.0100.00316.30
7.3.280.0060.00816.28
7.3.270.0130.00417.40
7.3.260.0060.01316.52
7.3.250.0120.00716.47
7.3.240.0090.00916.46
7.3.230.0100.00616.30
7.3.210.0060.00916.41
7.3.200.0100.01016.26
7.3.190.0080.00816.23
7.3.180.0120.00316.50
7.3.170.0060.01016.48
7.3.160.0060.00916.47
7.3.120.0060.00914.60
7.3.110.0070.01014.80
7.3.100.0070.01114.85
7.3.90.0130.00014.80
7.3.80.0000.01515.10
7.3.70.0030.00614.84
7.3.60.0040.01114.88
7.3.50.0030.00614.78
7.3.40.0100.00314.76
7.3.30.0030.01014.66
7.3.20.0100.00316.58
7.3.10.0380.00715.56
7.3.00.0710.01215.57
7.2.330.0120.00816.68
7.2.320.0030.01316.63
7.2.310.0090.00616.50
7.2.300.0070.01016.70
7.2.290.0100.00716.53
7.2.250.0070.01115.21
7.2.240.0040.01414.71
7.2.230.0080.00414.83
7.2.220.0030.01414.88
7.2.210.0090.00414.54
7.2.200.0030.00715.18
7.2.190.0040.01115.01
7.2.180.0070.00714.93
7.2.170.0030.01315.14
7.2.160.0040.00714.91
7.2.150.0100.00316.62
7.2.140.0040.01416.78
7.2.130.0300.00515.89
7.2.120.0350.00515.90
7.2.110.0190.01115.80
7.2.100.0320.00615.88
7.2.90.0260.00915.87
7.2.80.0340.00515.67
7.2.70.0360.00715.78
7.2.60.0250.01016.05
7.2.50.0310.00515.92
7.2.40.0310.01215.65
7.2.30.0360.00815.82
7.2.20.0320.00715.78
7.2.10.0260.01116.40
7.2.00.0260.00716.51
7.1.330.0070.01015.75
7.1.320.0030.01215.74
7.1.310.0030.00615.52
7.1.300.0040.01115.63
7.1.290.0040.00415.70
7.1.280.0060.00615.70
7.1.270.0060.00915.70
7.1.260.0070.00715.79
7.1.250.0260.00514.84
7.1.240.0270.01114.62
7.1.230.0360.00514.80
7.1.220.0220.00914.65
7.1.210.0290.00614.72
7.1.200.0220.00715.08
7.1.190.0330.01014.65
7.1.180.0230.00914.84
7.1.170.0270.01014.61
7.1.160.0320.00714.63
7.1.150.0330.00714.83
7.1.140.0300.00914.73
7.1.130.0180.01315.42
7.1.120.0360.00515.28
7.1.110.0550.01315.28
7.1.100.0330.00715.47
7.1.90.0310.01015.07
7.1.80.0330.00715.09
7.1.70.0280.00914.86
7.1.60.0250.01120.87
7.1.50.0410.00620.74
7.1.40.0410.00820.71
7.1.30.0280.01020.73
7.1.20.0280.00820.57
7.1.10.0210.00914.69
7.1.00.0420.00714.82
7.0.330.0480.00313.07
5.6.380.0130.00413.99

preferences:
125.97 ms | 403 KiB | 5 Q