3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(0,null,3,null); function is_not_null ($var) { return !is_null($var); } $filtered = array_filter($arr, 'is_not_null'); 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.0070.01017.48
8.3.140.0080.00017.26
8.3.130.0040.00418.34
8.3.120.0040.00420.85
8.3.110.0110.00520.94
8.3.100.0030.00624.06
8.3.90.0170.00826.77
8.3.80.0090.00016.50
8.3.70.0040.01116.58
8.3.60.0110.00718.30
8.3.50.0100.00521.14
8.3.40.0030.01118.71
8.3.30.0100.00320.22
8.3.20.0000.01420.14
8.3.10.0030.00521.13
8.3.00.0000.00822.43
8.2.260.0100.00716.33
8.2.250.0080.00016.47
8.2.240.0170.00317.01
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0070.01026.77
8.2.200.0090.00318.16
8.2.190.0060.01216.58
8.2.180.0060.00925.92
8.2.170.0180.00418.91
8.2.160.0130.00722.96
8.2.150.0040.01425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.23
8.2.110.0030.00622.12
8.2.100.0040.00817.85
8.2.90.0030.00618.10
8.2.80.0040.00418.04
8.2.70.0050.00317.50
8.2.60.0000.01118.04
8.2.50.0030.00618.07
8.2.40.0040.00418.15
8.2.30.0040.00419.36
8.2.20.0040.00417.52
8.2.10.0040.00417.64
8.2.00.0040.00417.79
8.1.300.0080.00817.73
8.1.290.0040.00430.84
8.1.280.0130.01025.92
8.1.270.0040.00424.66
8.1.260.0120.00626.35
8.1.250.0060.00328.09
8.1.240.0050.00523.84
8.1.230.0070.00322.67
8.1.220.0050.00317.79
8.1.210.0040.00418.84
8.1.200.0080.00017.35
8.1.190.0080.00017.53
8.1.180.0060.00318.10
8.1.170.0060.00318.50
8.1.160.0040.00418.88
8.1.150.0040.00418.69
8.1.140.0040.00417.36
8.1.130.0040.00417.40
8.1.120.0000.00717.43
8.1.110.0070.00417.36
8.1.100.0080.00017.47
8.1.90.0020.00517.36
8.1.80.0000.00717.37
8.1.70.0070.00017.37
8.1.60.0040.00717.50
8.1.50.0070.00017.39
8.1.40.0030.00517.51
8.1.30.0000.00817.51
8.1.20.0060.00317.74
8.1.10.0100.00017.42
8.1.00.0000.00817.22
8.0.300.0030.00320.09
8.0.290.0030.00616.80
8.0.280.0080.00018.48
8.0.270.0000.00716.68
8.0.260.0000.00716.84
8.0.250.0040.00416.91
8.0.240.0000.00716.93
8.0.230.0060.00316.83
8.0.220.0050.00216.74
8.0.210.0000.00716.77
8.0.200.0070.00016.89
8.0.190.0040.00416.93
8.0.180.0040.00416.81
8.0.170.0000.00816.95
8.0.160.0070.00016.79
8.0.150.0040.00416.69
8.0.140.0060.00516.88
8.0.130.0070.00115.63
8.0.120.0070.00016.85
8.0.110.0030.00516.77
8.0.100.0030.00616.95
8.0.90.0000.00716.91
8.0.80.0030.01116.85
8.0.70.0070.00016.94
8.0.60.0000.00716.95
8.0.50.0050.00316.86
8.0.30.0100.00716.99
8.0.20.0100.01017.23
8.0.10.0130.01017.01
8.0.00.0100.00916.82
7.4.330.0150.00726.15
7.4.320.0030.00316.52
7.4.300.0030.00616.45
7.4.290.0030.00316.43
7.4.280.0000.00716.43
7.4.270.0060.00016.57
7.4.260.0030.00313.29
7.4.250.0080.00016.34
7.4.240.0030.00316.49
7.4.230.0030.00316.47
7.4.220.0030.01416.38
7.4.210.0070.00816.46
7.4.200.0000.00616.57
7.4.190.0070.00016.67
7.4.160.0110.00816.36
7.4.150.0080.00916.89
7.4.140.0170.00317.42
7.4.130.0070.01116.42
7.4.120.0120.01016.40
7.4.110.0100.01216.40
7.4.100.0100.00916.29
7.4.90.0090.01016.42
7.4.80.0120.00817.09
7.4.70.0120.00816.38
7.4.60.0120.00916.34
7.4.50.0080.00816.32
7.4.40.0090.00917.85
7.4.30.0130.00616.32
7.4.20.0110.01116.33
7.4.10.0100.00816.37
7.4.00.0080.00916.06
7.3.330.0000.00513.17
7.3.320.0030.00312.97
7.3.310.0040.00416.25
7.3.300.0030.00516.02
7.3.290.0100.00316.17
7.3.280.0090.00916.18
7.3.270.0110.00516.77
7.3.260.0130.00917.18
7.3.250.0140.00916.21
7.3.240.0090.01316.21
7.3.230.0120.01116.30
7.3.220.0130.00916.17
7.3.210.0090.00916.01
7.3.200.0130.00716.89
7.3.190.0110.00916.13
7.3.180.0090.01116.17
7.3.170.0120.00616.22
7.3.160.0090.00916.20
7.3.150.0080.00916.01
7.3.140.0100.00716.15
7.3.130.0120.00716.36
7.3.120.0090.00915.83
7.3.110.0100.00715.98
7.3.100.0110.00615.93
7.3.90.0070.01215.94
7.3.80.0100.00915.92
7.3.70.0120.00915.89
7.3.60.0110.00915.87
7.3.50.0090.01215.94
7.3.40.0080.01015.86
7.3.30.0100.01115.90
7.3.20.0120.00616.24
7.3.10.0070.00916.30
7.3.00.0050.01416.24
7.2.340.0180.01016.57
7.2.330.0140.01116.54
7.2.320.0170.00916.51
7.2.310.0190.01016.53
7.2.300.0150.01116.60
7.2.290.0140.01216.44
7.2.280.0190.01016.56
7.2.270.0130.01016.45
7.2.260.0140.00916.49
7.2.250.0180.00816.37
7.2.240.0140.01016.21
7.2.230.0190.01016.31
7.2.220.0130.01016.11
7.2.210.0140.00816.17
7.2.200.0130.01116.22
7.2.190.0140.00816.16
7.2.180.0080.01516.12
7.2.170.0130.00916.23
7.2.160.0100.01116.22
7.2.150.0180.00816.59
7.2.140.0120.01116.67
7.2.130.0200.00616.66
7.2.120.0150.00816.64
7.2.110.0140.01016.69
7.2.100.0090.01416.69
7.2.90.0160.00917.05
7.2.80.0130.01016.94
7.2.70.0130.00816.87
7.2.60.0120.00916.92
7.2.50.0140.00816.90
7.2.40.0140.00917.03
7.2.30.0120.00917.02
7.2.20.0130.01016.94
7.2.10.0160.00616.94
7.2.00.0160.00816.95
7.1.330.0120.01115.55
7.1.320.0170.01215.66
7.1.310.0220.01115.94
7.1.300.0200.00815.56
7.1.290.0150.00915.54
7.1.280.0180.00915.59
7.1.270.0260.01215.58
7.1.260.0180.00715.45
7.1.250.0200.00915.44
7.1.240.0200.01415.41
7.1.230.0170.00915.48
7.1.220.0190.01015.52
7.1.210.0220.00515.96
7.1.200.0220.00515.82
7.1.190.0240.00715.95
7.1.180.0170.00815.95
7.1.170.0160.01015.91
7.1.160.0180.00815.92
7.1.150.0180.00815.99
7.1.140.0130.01115.92
7.1.130.0200.00615.99
7.1.120.0170.00916.01
7.1.110.0150.01015.95
7.1.100.0160.00816.47
7.1.90.0200.00915.99
7.1.80.0230.00615.94
7.1.70.0140.00916.15
7.1.60.0190.00616.14
7.1.50.0180.00816.12
7.1.40.0170.01016.22
7.1.30.0180.01116.15
7.1.20.0170.00916.12
7.1.10.0150.00816.11
7.1.00.0260.00916.04
7.0.330.0150.01015.16
7.0.320.0230.01115.64
7.0.310.0160.01215.58
7.0.300.0200.00715.69
7.0.290.0150.01115.60
7.0.280.0190.00815.71
7.0.270.0170.00615.64
7.0.260.0150.01015.62
7.0.250.0200.00815.87
7.0.240.0210.00915.76
7.0.230.0170.01015.72
7.0.220.0150.01015.74
7.0.210.0180.00815.74
7.0.200.0170.00815.85
7.0.190.0160.00915.94
7.0.180.0150.01115.84
7.0.170.0150.00915.84
7.0.160.0150.01215.83
7.0.150.0190.00915.81
7.0.140.0140.00915.87
7.0.130.0180.01015.90
7.0.120.0170.00815.96
7.0.110.0170.00715.89
7.0.100.0190.00515.88
7.0.90.0150.01115.82
7.0.80.0140.00815.86
7.0.70.0150.00815.83
7.0.60.0150.00715.79
7.0.50.0130.00915.81
7.0.40.0160.00715.83
7.0.30.0140.00815.79
7.0.20.0190.00615.39
7.0.10.0140.01115.83
7.0.00.0200.00715.74
5.6.400.0170.01215.88
5.6.390.0160.01415.64
5.6.380.0150.01015.84
5.6.370.0180.01015.69
5.6.360.0160.01115.80
5.6.350.0190.00915.83
5.6.340.0170.01015.71
5.6.330.0160.01115.85
5.6.320.0160.01115.82
5.6.310.0190.00915.77
5.6.300.0150.01916.73
5.6.290.0140.01916.79
5.6.280.0140.01716.78
5.6.270.0170.02216.89
5.6.260.0160.02016.86
5.6.250.0210.01716.89
5.6.240.0140.02416.80
5.6.230.0150.02516.82
5.6.220.0150.02316.86
5.6.210.0140.02216.84
5.6.200.0160.02016.83
5.6.190.0140.01916.92
5.6.180.0160.02116.85
5.6.170.0160.01616.83
5.6.160.0140.01816.83
5.6.150.0140.02016.88
5.6.140.0140.02416.89
5.6.130.0150.01916.94
5.6.120.0130.02016.94
5.6.110.0140.02116.88
5.6.100.0160.01616.77
5.6.90.0160.02116.80
5.6.80.0150.01916.64
5.6.70.0140.01616.88
5.6.60.0170.01916.56
5.6.50.0110.01816.57
5.6.40.0150.01816.65
5.6.30.0120.01916.63
5.6.20.0130.01916.66
5.6.10.0150.01616.71
5.6.00.0160.01516.66
5.5.380.0140.02916.11
5.5.370.0170.01616.09
5.5.360.0140.01916.16
5.5.350.0140.02016.13
5.5.340.0130.01916.23
5.5.330.0170.01616.30
5.5.320.0150.02116.23
5.5.310.0160.01516.18
5.5.300.0150.02016.16
5.5.290.0150.01716.29
5.5.280.0130.01816.22
5.5.270.0100.02116.14
5.5.260.0130.02116.18
5.5.250.0140.02016.14
5.5.240.0130.02116.00
5.5.230.0150.01615.94
5.5.220.0130.02015.96
5.5.210.0120.01916.01
5.5.200.0160.01415.94
5.5.190.0140.02315.95
5.5.180.0110.02616.01
5.5.170.0180.01115.55
5.5.160.0120.01715.90
5.5.150.0140.01715.99
5.5.140.0100.02116.02
5.5.130.0180.01516.07
5.5.120.0140.01615.96
5.5.110.0130.01715.98
5.5.100.0140.01615.87
5.5.90.0110.01715.90
5.5.80.0160.02216.02
5.5.70.0130.02015.98
5.5.60.0120.01716.04
5.5.50.0130.01615.92
5.5.40.0120.01716.06
5.5.30.0130.02015.93
5.5.20.0130.01815.88
5.5.10.0160.01715.85
5.5.00.0140.01715.91
5.4.450.0130.02114.63
5.4.440.0100.01514.73
5.4.430.0090.01414.72
5.4.420.0110.01314.75
5.4.410.0150.02114.76
5.4.400.0100.01614.66
5.4.390.0100.01814.64
5.4.380.0090.01614.64
5.4.370.0160.01614.66
5.4.360.0110.01514.71
5.4.350.0110.01614.71
5.4.340.0140.01814.63
5.4.330.0190.00613.55
5.4.320.0130.01114.66
5.4.310.0100.01414.70
5.4.300.0100.01814.62
5.4.290.0100.01314.54
5.4.280.0080.01514.63
5.4.270.0100.01514.67
5.4.260.0090.01914.57
5.4.250.0100.01814.63
5.4.240.0090.01614.73
5.4.230.0110.01314.68
5.4.220.0070.01814.60
5.4.210.0110.01714.61
5.4.200.0120.02014.70
5.4.190.0140.01814.57
5.4.180.0140.01114.64
5.4.170.0110.02014.61
5.4.160.0100.01614.58
5.4.150.0110.01714.57
5.4.140.0100.01414.13
5.4.130.0130.01514.09
5.4.120.0090.01414.23
5.4.110.0130.01614.12
5.4.100.0090.01614.13
5.4.90.0110.01214.10
5.4.80.0110.01514.19
5.4.70.0110.01314.11
5.4.60.0130.01414.16
5.4.50.0130.01214.15
5.4.40.0110.01514.11
5.4.30.0110.01514.19
5.4.20.0130.01414.09
5.4.10.0140.01714.12
5.4.00.0120.01114.14
5.3.290.0140.01414.32
5.3.280.0130.01814.25
5.3.270.0110.01514.34
5.3.260.0120.01414.34
5.3.250.0140.01914.34
5.3.240.0120.01414.29
5.3.230.0160.01614.27
5.3.220.0140.02214.25
5.3.210.0120.01514.25
5.3.200.0100.01614.22
5.3.190.0110.01414.29
5.3.180.0150.01514.29
5.3.170.0130.01314.35
5.3.160.0120.01414.35
5.3.150.0150.01214.30
5.3.140.0150.01114.28
5.3.130.0120.01414.28
5.3.120.0130.01414.29
5.3.110.0150.01214.29
5.3.100.0150.01414.27
5.3.90.0120.01514.35
5.3.80.0120.01414.26
5.3.70.0110.01414.25
5.3.60.0130.01214.31
5.3.50.0100.02514.29
5.3.40.0120.01514.28
5.3.30.0110.01414.30
5.3.20.0120.01514.32
5.3.10.0140.01814.23
5.3.00.0140.01914.25
4.3.90.0030.01824.18

preferences:
66.87 ms | 403 KiB | 5 Q