3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( array() ), array() ); $filter = array_filter($arr); print_r($filter); var_dump(empty($filter));

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.70.0060.00916.58
8.3.60.0030.01016.50
8.3.50.0130.00522.91
8.3.40.0100.01018.69
8.3.30.0070.00718.79
8.3.20.0000.00720.04
8.3.10.0000.00821.65
8.3.00.0040.00417.38
8.2.180.0180.00416.50
8.2.170.0060.00922.96
8.2.160.0070.00720.31
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00021.18
8.2.110.0040.00720.23
8.2.100.0060.00617.58
8.2.90.0060.00319.58
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0040.00417.96
8.2.20.0070.00017.61
8.2.10.0070.00017.98
8.2.00.0070.00017.66
8.1.280.0100.00725.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.95
8.1.230.0040.00722.74
8.1.220.0050.00317.75
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0030.00522.02
8.1.150.0070.00018.71
8.1.140.0040.00417.30
8.1.130.0080.00017.78
8.1.120.0000.00717.44
8.1.110.0050.00217.39
8.1.100.0070.00017.38
8.1.90.0000.00717.39
8.1.80.0000.00717.39
8.1.70.0070.00017.39
8.1.60.0040.00417.50
8.1.50.0040.00417.45
8.1.40.0000.00717.43
8.1.30.0000.00917.57
8.1.20.0030.00517.56
8.1.10.0040.00417.40
8.1.00.0040.00417.39
8.0.300.0000.00719.83
8.0.290.0030.00616.61
8.0.280.0000.00818.31
8.0.270.0000.00717.20
8.0.260.0030.00317.09
8.0.250.0030.00316.74
8.0.240.0040.00416.91
8.0.230.0070.00316.86
8.0.220.0000.00716.66
8.0.210.0040.00416.72
8.0.200.0100.00016.77
8.0.190.0070.00016.90
8.0.180.0000.00716.73
8.0.170.0000.00716.85
8.0.160.0070.00016.89
8.0.150.0050.00516.75
8.0.140.0040.00816.76
8.0.130.0000.00613.27
8.0.120.0040.00416.81
8.0.110.0050.00216.86
8.0.100.0070.00016.73
8.0.90.0040.00416.63
8.0.80.0130.00316.77
8.0.70.0000.00716.79
8.0.60.0000.00716.77
8.0.50.0000.00716.69
8.0.30.0060.01217.14
8.0.20.0110.00817.40
8.0.10.0040.00416.93
8.0.00.0110.00716.59
7.4.330.0020.00215.00
7.4.320.0000.00616.46
7.4.300.0060.00016.44
7.4.290.0000.00716.55
7.4.280.0050.00316.50
7.4.270.0030.00316.45
7.4.260.0040.00416.41
7.4.250.0050.00316.54
7.4.240.0040.00416.52
7.4.230.0030.00316.41
7.4.220.0160.00016.45
7.4.210.0070.00716.44
7.4.200.0000.00716.55
7.4.160.0160.00016.30
7.4.150.0120.01217.40
7.4.140.0090.00917.86
7.4.130.0070.01316.44
7.4.120.0070.00916.49
7.4.110.0100.00716.36
7.4.100.0070.01116.51
7.4.90.0080.00816.39
7.4.80.0130.00719.39
7.4.70.0140.00816.57
7.4.60.0100.01016.31
7.4.50.0040.00416.04
7.4.40.0100.00616.36
7.4.30.0060.00916.32
7.4.00.0060.00914.81
7.3.330.0050.00012.89
7.3.320.0030.00312.98
7.3.310.0000.00716.20
7.3.300.0000.00716.15
7.3.290.0090.00616.10
7.3.280.0080.00916.13
7.3.270.0030.01317.40
7.3.260.0120.00416.21
7.3.250.0140.00316.31
7.3.240.0100.01016.19
7.3.230.0080.00816.39
7.3.210.0100.00616.34
7.3.200.0040.01219.39
7.3.190.0130.00416.11
7.3.180.0040.01116.48
7.3.170.0070.01016.29
7.3.160.0100.00716.51
7.2.330.0100.00716.62
7.2.320.0040.01616.58
7.2.310.0130.01016.43
7.2.300.0110.01116.54
7.2.290.0030.01316.42
7.2.00.0040.00818.96
7.1.200.0030.00715.92
7.1.100.0000.01118.09
7.1.70.0000.00717.21
7.1.60.0120.01219.40
7.1.50.0060.00916.90
7.1.00.0070.07322.48
7.0.200.0030.00316.67
7.0.140.0070.07021.96
7.0.60.0130.05719.86
7.0.50.0200.07017.96
7.0.40.0070.05020.25
7.0.30.0270.04020.10
7.0.20.0170.04720.20
7.0.10.0270.04320.12
7.0.00.0100.06320.22
5.6.280.0000.08020.81
5.6.210.0070.09020.74
5.6.200.0100.07318.19
5.6.190.0030.04720.77
5.6.180.0200.04720.47
5.6.170.0230.04320.47
5.6.160.0070.04020.48
5.6.150.0000.07318.18
5.6.140.0030.09018.11
5.6.130.0030.05018.18
5.6.120.0070.06720.87
5.6.110.0070.06021.02
5.6.100.0100.05021.13
5.6.90.0130.07021.07
5.6.80.0100.07320.40
5.5.350.0200.05720.39
5.5.340.0070.05317.95
5.5.330.0030.06020.13
5.5.320.0100.07720.26
5.5.310.0400.05720.34
5.5.300.0100.06317.98
5.5.290.0070.08318.08
5.5.280.0030.08020.87
5.5.270.0100.05020.95
5.5.260.0130.04020.95
5.5.250.0100.07720.70
5.5.240.0000.08020.04
5.4.450.0700.08019.49
5.4.440.0200.05319.63
5.4.430.0200.05719.45
5.4.420.0200.05019.38
5.4.410.0100.06319.50
5.4.400.0170.05319.29
5.4.390.0930.06719.07
5.4.380.0270.07318.58
5.4.370.0270.05718.50
5.4.360.0500.05318.71
5.4.350.0430.05318.59
5.4.340.0330.04718.73
5.4.320.0060.04012.48
5.4.310.0070.04112.48
5.4.300.0090.04212.48
5.4.290.0050.03912.47
5.4.280.0030.03912.37
5.4.270.0080.03412.38
5.4.260.0070.03912.37
5.4.250.0060.03812.37
5.4.240.0050.03812.37
5.4.230.0060.03812.37
5.4.220.0080.03912.36
5.4.210.0100.03712.36
5.4.200.0080.04412.36
5.4.190.0050.04312.36
5.4.180.0060.03912.36
5.4.170.0070.03812.38
5.4.160.0120.03812.37
5.4.150.0070.03612.36
5.4.140.0070.03712.05
5.4.130.0080.03912.04
5.4.120.0090.04012.00
5.4.110.0020.03911.99
5.4.100.0030.03911.99
5.4.90.0070.03711.99
5.4.80.0050.03811.99
5.4.70.0070.03311.98
5.4.60.0070.03411.99
5.4.50.0060.03511.99
5.4.40.0080.03511.98
5.4.30.0040.03911.98
5.4.20.0050.04311.98
5.4.10.0060.03511.97
5.4.00.0050.03711.46
5.3.290.0110.03812.80
5.3.280.0050.04112.71
5.3.270.0080.04112.72
5.3.260.0090.04412.72
5.3.250.0080.04312.72
5.3.240.0110.05512.72
5.3.230.0060.03812.71
5.3.220.0050.03812.68
5.3.210.0070.03812.68
5.3.200.0070.03612.68
5.3.190.0040.04012.68
5.3.180.0070.03612.67
5.3.170.0070.03512.67
5.3.160.0080.03812.67
5.3.150.0050.03812.68
5.3.140.0080.03612.66
5.3.130.0090.03612.66
5.3.120.0080.03712.66
5.3.110.0070.03912.66
5.3.100.0040.04012.12
5.3.90.0080.03612.09
5.3.80.0080.03412.08
5.3.70.0060.03612.08
5.3.60.0060.04012.06
5.3.50.0060.03612.01
5.3.40.0060.03712.01
5.3.30.0040.03611.97
5.3.20.0080.03211.75
5.3.10.0070.03311.71
5.3.00.0090.03211.70
5.2.170.0080.0299.20
5.2.160.0070.0269.20
5.2.150.0060.0299.21
5.2.140.0080.0289.20
5.2.130.0050.0299.16
5.2.120.0050.0289.16
5.2.110.0060.0279.17
5.2.100.0030.0299.17
5.2.90.0050.0289.16
5.2.80.0050.0309.16
5.2.70.0040.0309.16
5.2.60.0060.0289.11
5.2.50.0050.0299.08
5.2.40.0090.0319.05
5.2.30.0060.0289.04
5.2.20.0050.0289.03
5.2.10.0050.0278.93
5.2.00.0060.0278.79
5.1.60.0040.0278.06
5.1.50.0090.0258.05
5.1.40.0030.0308.04
5.1.30.0080.0348.39
5.1.20.0090.0258.41
5.1.10.0070.0238.13
5.1.00.0040.0268.13
5.0.50.0050.0266.62
5.0.40.0050.0196.47
5.0.30.0060.0296.29
5.0.20.0060.0186.26
5.0.10.0030.0206.23
5.0.00.0030.0336.22
4.4.90.0010.0204.78
4.4.80.0050.0134.75
4.4.70.0030.0224.75
4.4.60.0040.0194.75
4.4.50.0010.0184.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0040.0144.84
4.4.10.0040.0144.85
4.4.00.0040.0244.75
4.3.110.0010.0174.67
4.3.100.0030.0174.66
4.3.90.0030.0154.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0000.0183.28
4.3.20.0030.0153.26
4.3.10.0020.0203.21
4.3.00.0030.0207.92

preferences:
65.52 ms | 401 KiB | 5 Q