3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 1 => array(1,2,3, null, 1, null), 2 => array(1,null,3,null,null) ); $result=array_intersect_assoc(array_filter($arr[1]), array_filter($arr[2])); 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.5.10.0110.00716.80
8.5.00.0140.00721.75
8.4.150.0020.00014.05
8.4.140.0140.00817.34
8.4.130.0040.00517.63
8.4.120.0030.00520.81
8.4.110.0140.00622.42
8.4.100.0110.00817.64
8.4.90.0120.00918.59
8.4.80.0090.01017.61
8.4.70.0110.01017.83
8.4.60.0160.00418.92
8.4.50.0120.00719.34
8.4.40.0060.00319.46
8.4.30.0090.01019.30
8.4.20.0070.01320.70
8.4.10.0060.00317.63
8.3.280.0120.00720.26
8.3.270.0080.01116.74
8.3.260.0080.01116.39
8.3.250.0130.00618.71
8.3.240.0130.00616.77
8.3.230.0120.00716.45
8.3.220.0050.00317.22
8.3.210.0090.01016.71
8.3.200.0020.00716.39
8.3.190.0130.00317.00
8.3.180.0100.00816.54
8.3.170.0050.00316.98
8.3.160.0120.00618.04
8.3.150.0070.01520.59
8.3.140.0120.00316.78
8.3.130.0120.00618.20
8.3.120.0160.00318.74
8.3.110.0070.00720.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0110.01116.38
8.3.60.0120.00618.31
8.3.50.0120.01119.13
8.3.40.0040.01218.71
8.3.30.0130.00318.54
8.3.20.0070.00020.76
8.3.10.0050.00323.65
8.3.00.0020.00521.76
8.2.290.0110.00720.60
8.2.280.0060.00318.32
8.2.270.0120.00617.21
8.2.260.0030.01320.03
8.2.250.0040.00416.88
8.2.240.0040.00419.23
8.2.230.0090.00022.58
8.2.220.0080.00037.54
8.2.210.0050.00326.77
8.2.200.0060.00318.28
8.2.190.0040.01116.58
8.2.180.0150.00316.75
8.2.170.0070.00722.96
8.2.160.0070.01020.39
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00318.09
8.2.120.0040.00426.35
8.2.110.0030.00621.06
8.2.100.0090.00317.91
8.2.90.0000.00818.16
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0000.00719.30
8.2.30.0040.00720.50
8.2.20.0040.00418.06
8.2.10.0000.00819.42
8.2.00.0040.00417.94
8.1.330.0120.00621.74
8.1.320.0100.00816.23
8.1.310.0060.00316.44
8.1.300.0030.01317.87
8.1.290.0060.00330.84
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0060.00322.31
8.1.230.0040.00720.97
8.1.220.0050.00317.74
8.1.210.0040.00418.91
8.1.200.0080.00017.22
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0040.00418.81
8.1.150.0050.00218.89
8.1.140.0030.00318.97
8.1.130.0030.00320.31
8.1.120.0000.00917.44
8.1.110.0050.00317.27
8.1.100.0030.00517.41
8.1.90.0050.00317.28
8.1.80.0110.00017.38
8.1.70.0070.00017.39
8.1.60.0030.00617.48
8.1.50.0050.00217.41
8.1.40.0000.00817.40
8.1.30.0030.00617.58
8.1.20.0030.00717.58
8.1.10.0060.00317.39
8.1.00.0050.00317.36
8.0.300.0000.00719.96
8.0.290.0030.00716.63
8.0.280.0080.00018.31
8.0.270.0000.00817.11
8.0.260.0030.00318.30
8.0.250.0060.00316.78
8.0.240.0050.00216.98
8.0.230.0040.00416.82
8.0.220.0040.00416.83
8.0.210.0000.00616.78
8.0.200.0000.00716.78
8.0.190.0000.00716.88
8.0.180.0000.00716.86
8.0.170.0000.00816.84
8.0.160.0070.00016.81
8.0.150.0030.00716.67
8.0.140.0000.00716.79
8.0.130.0000.00613.29
8.0.120.0000.00716.81
8.0.110.0050.00216.80
8.0.100.0070.00016.87
8.0.90.0030.00416.69
8.0.80.0090.00616.78
8.0.70.0050.00316.69
8.0.60.0030.00616.84
8.0.50.0040.00416.79
8.0.30.0140.00416.89
8.0.20.0110.01017.21
8.0.10.0040.00416.84
8.0.00.0110.01116.65
7.4.330.0060.00015.55
7.4.320.0030.00316.50
7.4.300.0030.00316.43
7.4.290.0050.00316.34
7.4.280.0050.00316.35
7.4.270.0080.00016.39
7.4.260.0070.00016.50
7.4.250.0070.00016.30
7.4.240.0000.00716.39
7.4.230.0000.00716.43
7.4.220.0030.00616.28
7.4.210.0090.00816.47
7.4.200.0040.00416.57
7.4.160.0070.00916.47
7.4.140.0030.02217.86
7.4.130.0080.00816.57
7.4.120.0100.00816.39
7.4.110.0070.01016.30
7.4.100.0070.01316.23
7.4.90.0100.01016.34
7.4.80.0070.01319.39
7.4.70.0100.00716.54
7.4.60.0080.01116.27
7.4.50.0000.01316.25
7.4.40.0120.00916.58
7.4.00.0040.01214.76
7.3.330.0030.00313.04
7.3.320.0030.00313.11
7.3.310.0030.00316.34
7.3.300.0040.00416.24
7.3.290.0070.00716.21
7.3.280.0070.00716.13
7.3.260.0100.00916.35
7.3.240.0120.00716.44
7.3.230.0030.01316.30
7.3.210.0110.00716.13
7.3.200.0060.00916.34
7.3.190.0060.01116.33
7.3.180.0090.01116.45
7.3.170.0100.01216.30
7.3.160.0040.01616.19
7.3.40.0080.00314.70
7.3.30.0100.00714.79
7.3.20.0100.00716.64
7.3.10.0040.00916.52
7.3.00.0030.01616.57
7.2.330.0160.00516.65
7.2.320.0100.01316.23
7.2.310.0100.01016.47
7.2.300.0060.01016.38
7.2.290.0090.00916.44
7.2.170.0070.00714.74
7.2.160.0140.00714.97
7.2.150.0100.00316.49
7.2.140.0130.00016.53
7.2.130.0120.00916.38
7.2.120.0060.01616.93
7.2.110.0070.00416.78
7.2.100.0130.01016.74
7.2.90.0080.00816.57
7.2.80.0050.00816.50
7.2.70.0060.00617.05
7.2.60.0070.01416.51
7.2.50.0070.00716.73
7.2.40.0080.00316.31
7.2.30.0080.00316.86
7.2.20.0060.00616.84
7.2.10.0030.00916.76
7.2.00.0000.01016.81
7.1.280.0070.00715.51
7.1.270.0060.01215.70
7.1.260.0090.00315.59
7.1.250.0120.00915.70

preferences:
116.02 ms | 403 KiB | 5 Q