3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(0,null,3,null); $filtered = array_filter($arr, function($var){return !is_null($var);} ); print_r($filtered);

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.10.0110.01117.75
8.3.140.0080.00017.35
8.3.130.0060.01016.61
8.3.120.0150.00020.53
8.3.110.0080.00818.24
8.3.100.0080.00016.36
8.3.90.0150.00026.77
8.3.80.0060.00316.61
8.3.70.0070.00716.63
8.3.60.0070.01418.18
8.3.50.0080.00721.02
8.3.40.0090.00618.59
8.3.30.0030.01620.35
8.3.20.0030.00521.97
8.3.10.0070.00020.95
8.3.00.0000.00822.46
8.2.250.0040.00416.71
8.2.240.0030.00618.68
8.2.230.0050.00320.94
8.2.220.0040.00424.06
8.2.210.0040.01126.77
8.2.200.0090.00018.29
8.2.190.0110.00416.58
8.2.180.0140.00716.63
8.2.170.0070.00722.96
8.2.160.0070.00722.14
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0030.00520.69
8.2.110.0120.00622.06
8.2.100.0040.00717.63
8.2.90.0050.00317.84
8.2.80.0080.00019.02
8.2.70.0000.00817.63
8.2.60.0000.00817.90
8.2.50.0060.00318.10
8.2.40.0030.00520.59
8.2.30.0040.00417.98
8.2.20.0040.00419.50
8.2.10.0040.00417.75
8.2.00.0080.00017.74
8.1.300.0090.00018.71
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00023.79
8.1.230.0070.00322.81
8.1.220.0080.00017.79
8.1.210.0080.00018.77
8.1.200.0050.00317.25
8.1.190.0030.00517.35
8.1.180.0060.00318.10
8.1.170.0050.00318.59
8.1.160.0000.00822.18
8.1.150.0050.00318.68
8.1.140.0000.00817.32
8.1.130.0070.00017.75
8.1.120.0040.00417.49
8.1.110.0030.00617.46
8.1.100.0030.00417.41
8.1.90.0030.00317.50
8.1.80.0030.00317.45
8.1.70.0070.00017.43
8.1.60.0080.00017.64
8.1.50.0040.00417.44
8.1.40.0070.00017.54
8.1.30.0000.00817.52
8.1.20.0000.00817.61
8.1.10.0090.00017.32
8.1.00.0040.00417.28
8.0.300.0000.00820.27
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0030.00317.16
8.0.260.0060.00016.69
8.0.250.0000.00816.83
8.0.240.0040.00417.02
8.0.230.0040.00416.99
8.0.220.0040.00416.89
8.0.210.0040.00416.96
8.0.200.0030.00316.94
8.0.190.0050.00316.84
8.0.180.0040.00416.92
8.0.170.0040.00416.82
8.0.160.0030.00516.85
8.0.150.0030.00316.81
8.0.140.0000.00716.85
8.0.130.0030.00313.27
8.0.120.0000.00716.86
8.0.110.0000.00816.93
8.0.100.0070.00016.72
8.0.90.0030.00316.68
8.0.80.0160.00416.91
8.0.70.0050.00217.01
8.0.60.0070.00016.69
8.0.50.0070.00016.77
8.0.30.0110.01216.97
8.0.20.0120.01417.21
8.0.10.0250.00617.05
8.0.00.0120.01116.80
7.4.330.0020.00216.73
7.4.320.0030.00316.62
7.4.300.0000.00716.51
7.4.290.0000.00616.51
7.4.280.0040.00816.54
7.4.270.0030.00316.52
7.4.260.0030.00313.25
7.4.250.0070.00016.44
7.4.240.0000.00716.61
7.4.230.0070.00016.58
7.4.220.0030.01416.54
7.4.210.0090.00816.54
7.4.200.0040.00416.71
7.4.190.0030.00316.36
7.4.160.0160.00816.47
7.4.150.0190.00316.89
7.4.140.0150.00717.37
7.4.130.0110.01116.51
7.4.120.0120.00916.56
7.4.110.0140.00816.37
7.4.100.0120.01116.57
7.4.90.0150.00916.40
7.4.80.0110.01217.05
7.4.70.0140.00716.44
7.4.60.0130.00916.48
7.4.50.0140.00516.38
7.4.40.0140.00716.42
7.4.30.0110.00916.38
7.4.20.0150.00516.43
7.4.10.0100.01116.45
7.4.00.0110.00716.17
7.3.330.0020.00213.23
7.3.320.0030.00313.23
7.3.310.0030.00316.34
7.3.300.0030.00316.05
7.3.290.0030.01016.21
7.3.280.0100.00716.18
7.3.270.0130.00916.76
7.3.260.0170.00617.21
7.3.250.0110.01216.27
7.3.240.0140.00916.18
7.3.230.0140.00916.27
7.3.220.0130.00916.13
7.3.210.0110.00916.29
7.3.200.0150.00916.32
7.3.190.0150.00616.18
7.3.180.0120.00916.24
7.3.170.0110.01016.34
7.3.160.0120.01216.30
7.3.150.0120.01016.40
7.3.140.0120.01016.28
7.3.130.0140.00716.36
7.3.120.0120.00816.00
7.3.110.0100.00915.94
7.3.100.0120.00615.71
7.3.90.0100.00815.81
7.3.80.0100.00715.66
7.3.70.0100.00615.47
7.3.60.0080.00815.48
7.3.50.0110.00815.48
7.3.40.0130.00515.44
7.3.30.0110.00715.40
7.3.20.0150.00615.72
7.3.10.0120.00915.62
7.3.00.0120.01115.56
7.2.340.0170.00916.53
7.2.330.0190.00316.50
7.2.320.0120.01016.55
7.2.310.0140.01116.62
7.2.300.0140.00916.65
7.2.290.0100.01016.57
7.2.280.0130.00916.52
7.2.270.0150.00616.67
7.2.260.0130.00616.59
7.2.250.0120.01016.51
7.2.240.0110.00716.16
7.2.230.0140.00915.99
7.2.220.0100.00815.95
7.2.210.0100.00815.92
7.2.200.0090.00715.70
7.2.190.0090.00815.76
7.2.180.0080.00915.78
7.2.170.0090.00915.68
7.2.160.0100.00815.76
7.2.150.0170.01116.06
7.2.140.0220.00816.05
7.2.130.0170.01016.02
7.2.120.0160.01115.78
7.2.110.0170.00715.85
7.2.100.0190.00915.86
7.2.90.0160.00815.73
7.2.80.0250.00815.73
7.2.70.0150.00815.73
7.2.60.0180.00815.88
7.2.50.0160.00815.82
7.2.40.0240.00916.24
7.2.30.0220.00916.32
7.2.20.0230.00916.24
7.2.10.0230.01016.27
7.2.00.0190.01016.29
7.1.330.0190.00615.16
7.1.320.0150.00715.01
7.1.310.0160.00615.17
7.1.300.0130.00914.92
7.1.290.0130.01014.92
7.1.280.0130.01014.97
7.1.270.0150.00714.91
7.1.260.0150.00714.90
7.1.250.0160.00714.77
7.1.240.0210.00814.69
7.1.230.0160.00914.70
7.1.220.0200.00814.67
7.1.210.0220.00914.70
7.1.200.0180.00914.79
7.1.190.0360.00714.72
7.1.180.0300.00714.63
7.1.170.0200.00914.46
7.1.160.0260.00815.04
7.1.150.0270.00615.06
7.1.140.0280.00915.12
7.1.130.0280.00815.08
7.1.120.0270.00915.10
7.1.110.0250.00914.97
7.1.100.0280.00814.99
7.1.90.0370.00814.99
7.1.80.0320.00814.96
7.1.70.0250.00914.79
7.1.60.0290.00918.96
7.1.50.0280.00918.95
7.1.40.0340.00818.88
7.1.30.0300.01118.81
7.1.20.0270.01018.80
7.1.10.0260.00614.76
7.1.00.0240.01014.65
7.0.330.0200.01014.42
7.0.320.0290.00914.33
7.0.310.0210.00814.34
7.0.300.0260.00814.23
7.0.290.0270.00814.77
7.0.280.0210.00814.35
7.0.270.0240.00814.73
7.0.260.0300.00814.74
7.0.250.0250.00714.67
7.0.240.0250.00814.73
7.0.230.0270.00814.80
7.0.220.0240.00914.69
7.0.210.0250.00814.49
7.0.200.0230.00814.50
7.0.190.0270.00614.46
7.0.180.0300.00714.43
7.0.170.0260.00714.48
7.0.160.0260.00814.43
7.0.150.0220.01014.41
7.0.140.0240.00614.40
7.0.130.0230.00714.52
7.0.120.0220.00814.43
7.0.110.0260.00714.42
7.0.100.0470.00914.37
7.0.90.0300.00814.35
7.0.80.0250.00914.40
7.0.70.0230.00814.47
7.0.60.0230.00714.36
7.0.50.0260.00814.45
7.0.40.0250.00914.46
7.0.30.0230.00814.55
7.0.20.0220.00614.38
7.0.10.0290.00714.55
7.0.00.0260.00714.50
5.6.400.0140.01014.99
5.6.390.0120.01214.98
5.6.380.0150.00814.88
5.6.370.0170.00814.87
5.6.360.0180.00714.97
5.6.350.0160.00914.74
5.6.340.0120.01014.84
5.6.330.0140.01014.83
5.6.320.0120.01114.92
5.6.310.0170.00914.84
5.6.300.0120.01815.73
5.6.290.0150.01415.63
5.6.280.0140.01815.63
5.6.270.0150.01715.78
5.6.260.0140.01615.67
5.6.250.0140.01515.71
5.6.240.0180.01915.69
5.6.230.0170.02015.72
5.6.220.0180.01715.68
5.6.210.0140.01815.70
5.6.200.0170.01715.72
5.6.190.0150.01815.72
5.6.180.0160.01815.71
5.6.170.0160.01615.68
5.6.160.0140.01715.76
5.6.150.0130.01915.70
5.6.140.0140.01615.69
5.6.130.0140.02015.71
5.6.120.0140.02215.71
5.6.110.0150.01815.68
5.6.100.0140.01815.70
5.6.90.0150.01615.68
5.6.80.0140.01815.55
5.6.70.0140.01615.51
5.6.60.0130.01915.57
5.6.50.0150.01615.53
5.6.40.0140.01815.53
5.6.30.0130.01915.55
5.6.20.0130.01915.50
5.6.10.0140.01715.61
5.6.00.0160.01615.57
5.5.380.0160.01914.42
5.5.370.0130.01714.43
5.5.360.0170.01614.40
5.5.350.0140.01714.44
5.5.340.0150.01514.58
5.5.330.0130.01914.46
5.5.320.0130.01614.47
5.5.310.0150.01514.51
5.5.300.0130.01614.53
5.5.290.0150.01814.52
5.5.280.0130.01814.53
5.5.270.0140.01614.49
5.5.260.0150.01614.42
5.5.250.0130.01814.40
5.5.240.0130.01814.44
5.5.230.0140.01614.29
5.5.220.0140.01614.38
5.5.210.0140.01614.40
5.5.200.0120.01714.30
5.5.190.0120.01714.36
5.5.180.0120.01814.35
5.5.170.0150.00814.43
5.5.160.0130.01814.34
5.5.150.0130.01614.38
5.5.140.0110.01914.41
5.5.130.0130.01614.31
5.5.120.0120.01514.33
5.5.110.0130.01614.29
5.5.100.0140.01514.26
5.5.90.0160.01414.33
5.5.80.0130.01814.37
5.5.70.0130.01714.39
5.5.60.0130.01614.26
5.5.50.0150.01614.27
5.5.40.0130.01714.35
5.5.30.0140.01714.24
5.5.20.0120.01714.28
5.5.10.0120.01814.36
5.5.00.0140.01614.27
5.4.450.0110.01412.93
5.4.440.0090.01712.96
5.4.430.0100.01512.94
5.4.420.0140.01412.92
5.4.410.0110.01512.95
5.4.400.0140.01212.81
5.4.390.0120.01512.82
5.4.380.0110.01312.83
5.4.370.0120.01512.81
5.4.360.0100.01512.92
5.4.350.0120.01412.83
5.4.340.0130.01312.88
5.4.330.0130.00611.84
5.4.320.0110.01512.91
5.4.310.0100.01512.84
5.4.300.0110.01412.88
5.4.290.0120.01312.86
5.4.280.0100.01412.85
5.4.270.0130.01512.84
5.4.260.0110.01512.82
5.4.250.0120.01512.84
5.4.240.0130.01412.84
5.4.230.0130.01612.86
5.4.220.0130.01412.80
5.4.210.0110.01612.76
5.4.200.0110.01712.79
5.4.190.0110.01612.80
5.4.180.0100.01612.83
5.4.170.0120.01512.87
5.4.160.0110.01612.88
5.4.150.0120.01512.82
5.4.140.0110.01312.46
5.4.130.0110.01512.48
5.4.120.0130.01112.50
5.4.110.0130.01312.45
5.4.100.0120.01312.50
5.4.90.0110.01312.49
5.4.80.0110.01612.49
5.4.70.0110.01712.46
5.4.60.0130.01312.48
5.4.50.0120.01412.46
5.4.40.0120.01412.47
5.4.30.0110.01412.49
5.4.20.0100.01612.49
5.4.10.0120.01612.49
5.4.00.0120.01312.35
5.3.290.0100.01612.21
5.3.280.0100.01412.15
5.3.270.0120.01412.19
5.3.260.0110.01612.16
5.3.250.0130.01612.21
5.3.240.0110.01412.13
5.3.230.0110.01412.16
5.3.220.0130.01412.01
5.3.210.0110.01512.04
5.3.200.0110.01412.07
5.3.190.0120.01412.15
5.3.180.0130.01412.15
5.3.170.0110.01312.19
5.3.160.0120.01512.14
5.3.150.0120.01612.15
5.3.140.0110.01512.13
5.3.130.0110.01612.11
5.3.120.0120.01412.12
5.3.110.0110.01512.09
5.3.100.0110.01412.06
5.3.90.0110.01512.10
5.3.80.0090.01511.99
5.3.70.0100.01412.03
5.3.60.0100.01612.06
5.3.50.0110.01311.99
5.3.40.0130.01512.02
5.3.30.0120.01512.04
5.3.20.0100.01512.00
5.3.10.0100.01411.89
5.3.00.0090.01711.90

preferences:
61.24 ms | 403 KiB | 5 Q