3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myIsset($value) { return isset($value); } $array1 = array( 'str' => 'foo', 'null1' => null, 'null2' => null, 'bool' => true, ); $filtered_array1 = array_filter($array1, 'myIsset'); var_dump($array1, $filtered_array1); $array2 = $array1; $array2['bool'] = false; $filtered_array2 = array_filter($array2, 'myIsset'); var_dump($array2, $filtered_array2);

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.40.0160.00618.62
8.3.30.0140.00018.85
8.3.20.0060.00918.71
8.3.10.0060.00320.46
8.3.00.0090.00919.26
8.2.170.0040.01118.92
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00420.51
8.2.110.0040.00821.03
8.2.100.0090.00317.78
8.2.90.0000.01019.09
8.2.80.0100.00017.97
8.2.70.0030.00617.63
8.2.60.0060.00318.03
8.2.50.0060.00318.99
8.2.40.0080.00418.16
8.2.30.0030.00618.09
8.2.20.0030.00619.45
8.2.10.0070.00017.72
8.2.00.0050.00217.61
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.00321.06
8.1.230.0080.00417.52
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0050.00318.83
8.1.150.0000.00718.63
8.1.140.0000.00817.46
8.1.130.0000.00717.77
8.1.120.0030.00617.30
8.1.110.0070.00017.29
8.1.100.0050.00217.40
8.1.90.0020.00517.32
8.1.80.0080.00017.31
8.1.70.0000.00717.29
8.1.60.0030.00517.55
8.1.50.0040.00417.30
8.1.40.0040.00417.42
8.1.30.0000.00717.51
8.1.20.0030.00617.49
8.1.10.0000.00717.51
8.1.00.0050.00317.48
8.0.300.0000.00718.77
8.0.290.0070.00016.58
8.0.280.0080.00018.30
8.0.270.0050.00217.11
8.0.260.0070.00016.68
8.0.250.0030.00516.93
8.0.240.0050.00216.77
8.0.230.0000.00716.78
8.0.220.0000.00716.90
8.0.210.0030.00316.70
8.0.200.0060.00016.86
8.0.190.0040.00416.78
8.0.180.0070.00316.85
8.0.170.0030.00616.74
8.0.160.0030.00316.91
8.0.150.0030.00516.85
8.0.140.0060.00316.69
8.0.130.0060.00013.27
8.0.120.0030.00516.81
8.0.110.0000.00716.89
8.0.100.0050.00216.78
8.0.90.0080.00016.72
8.0.80.0060.00916.77
8.0.70.0050.00216.86
8.0.60.0070.00016.78
8.0.50.0060.00316.86
8.0.30.0090.01217.19
8.0.20.0110.00816.77
8.0.10.0040.00416.84
8.0.00.0160.00416.73
7.4.330.0030.00313.00
7.4.320.0030.00316.55
7.4.300.0030.00316.39
7.4.290.0000.00716.45
7.4.280.0050.00316.39
7.4.270.0080.00016.45
7.4.260.0030.00313.25
7.4.250.0060.00316.53
7.4.240.0000.00716.54
7.4.230.0020.00516.59
7.4.220.0030.01416.58
7.4.210.0100.01116.46
7.4.200.0040.00416.65
7.4.190.0000.00716.50
7.4.160.0130.00416.36
7.4.150.0100.01316.50
7.4.140.0060.01216.40
7.4.130.0070.01416.43
7.4.120.0120.00616.29
7.4.110.0070.01016.55
7.4.100.0130.00816.48
7.4.90.0090.00916.47
7.4.80.0090.00919.39
7.4.70.0100.00716.56
7.4.60.0120.00316.33
7.4.50.0000.00616.36
7.4.40.0110.00416.50
7.4.30.0050.01416.38
7.4.00.0060.01014.98
7.3.330.0000.00613.25
7.3.320.0000.00513.22
7.3.310.0040.00416.04
7.3.300.0070.00016.28
7.3.290.0070.00916.25
7.3.280.0110.00416.26
7.3.270.0140.00316.29
7.3.260.0060.01516.55
7.3.250.0120.00716.55
7.3.240.0030.01516.25
7.3.230.0110.00616.55
7.3.210.0080.01116.23
7.3.200.0000.01716.61
7.3.190.0110.00716.17
7.3.180.0080.00816.52
7.3.170.0080.01116.46
7.3.160.0000.01616.38
7.3.120.0030.01314.84
7.2.330.0080.01016.72
7.2.320.0110.00716.79
7.2.310.0090.00916.75
7.2.300.0030.01516.77
7.2.290.0000.01916.38
7.2.00.0060.00619.41
7.1.200.0270.00515.78
7.1.100.0050.00518.21
7.1.70.0090.00616.97
7.1.60.0130.01019.31
7.1.50.0000.01716.89
7.1.00.0000.03722.41
7.0.200.0040.00416.79
7.0.140.0000.07322.09
7.0.120.0070.06721.96
7.0.60.0100.08019.91
7.0.50.0100.05717.71
7.0.40.0070.08720.11
7.0.30.0300.03720.25
7.0.20.0270.08320.21
7.0.10.0330.07720.16
7.0.00.0070.08720.21
5.6.280.0070.07321.13
5.6.210.0200.06320.61
5.6.200.0100.05018.19
5.6.190.0030.04320.43
5.6.180.0270.08020.60
5.6.170.0130.08020.39
5.6.160.0130.06320.54
5.6.150.0000.09018.18
5.6.140.0100.07718.21
5.6.130.0100.04318.25
5.6.120.0070.04021.14
5.6.110.0030.07720.96
5.6.100.0030.08320.89
5.6.90.0100.08321.04
5.6.80.0070.06720.29
5.6.70.0200.08020.35
5.5.350.0330.07320.40
5.5.340.0100.08017.95
5.5.330.0070.08320.44
5.5.320.0300.07720.41
5.5.310.0270.08020.30
5.5.300.0030.07318.01
5.5.290.0130.05018.04
5.5.280.0070.05020.77
5.5.270.0030.06320.86
5.5.260.0030.08320.84
5.5.250.0130.06320.47
5.5.240.0130.07320.25
5.4.450.0000.04719.25
5.4.440.0100.07719.48
5.4.430.0170.07719.29
5.4.420.0070.04319.17
5.4.410.0100.07319.45
5.4.400.0100.06019.24
5.4.390.0030.06019.08
5.4.380.0030.07018.85
5.4.370.0000.06719.14
5.4.360.0130.04019.24
5.4.350.0030.08019.14
5.4.340.0130.04319.25
5.4.320.0070.05319.08
5.4.310.0070.05318.98
5.4.300.0030.07319.14
5.4.290.0230.06318.87
5.4.280.0100.07018.99
5.4.270.0100.05019.07
5.4.260.0030.07018.87
5.4.250.0030.04719.14
5.4.240.0130.05718.84
5.4.230.0070.04718.84
5.4.220.0000.05319.23
5.4.210.0130.05018.84
5.4.200.0070.07319.14
5.4.190.0030.05019.11
5.4.180.0030.04319.13
5.4.170.0030.05718.97
5.4.160.0030.05018.95
5.4.150.0030.04019.13
5.4.140.0170.04016.46
5.4.130.0030.05016.25
5.4.120.0100.03016.42
5.4.110.0070.05316.28
5.4.100.0070.08016.53
5.4.90.0100.06716.39
5.4.80.0100.06016.29
5.4.70.0030.07716.32
5.4.60.0000.05316.35
5.4.50.0070.06716.45
5.4.40.0000.04016.27
5.4.30.0100.05716.44
5.4.20.0000.04316.44
5.4.10.0100.03716.25
5.4.00.0070.04015.75
5.3.290.0070.07714.55
5.3.280.0130.06714.66
5.3.270.0030.06014.75
5.3.260.0100.04714.60
5.3.250.0000.04714.63
5.3.240.0030.07714.64
5.3.230.0130.07014.76
5.3.220.0130.06714.59
5.3.210.0070.06314.56
5.3.200.0030.04014.73
5.3.190.0030.08314.73
5.3.180.0130.05314.74
5.3.170.0130.06714.50
5.3.160.0130.03014.63
5.3.150.0000.04014.62
5.3.140.0100.05314.44
5.3.130.0030.05014.60
5.3.120.0070.07314.71
5.3.110.0100.03714.58
5.3.100.0130.02713.95
5.3.90.0070.04014.17
5.3.80.0070.06714.09
5.3.70.0000.06314.09
5.3.60.0070.04314.04
5.3.50.0030.04714.10
5.3.40.0000.07713.98
5.3.30.0070.06713.90
5.3.20.0100.04313.73
5.3.10.0030.05713.70
5.3.00.0030.04013.69
5.2.170.0000.04011.09
5.2.160.0000.03011.22
5.2.150.0100.06011.11
5.2.140.0070.05011.13
5.2.130.0070.05711.10
5.2.120.0000.04011.10
5.2.110.0030.05011.05
5.2.100.0100.05311.05
5.2.90.0100.04711.10
5.2.80.0030.05311.09
5.2.70.0030.05711.07
5.2.60.0000.05011.21
5.2.50.0030.04011.00
5.2.40.0030.02711.04
5.2.30.0070.03711.02
5.2.20.0030.03311.03
5.2.10.0030.05010.87
5.2.00.0070.03010.78
5.1.60.0100.03010.13
5.1.50.0030.02310.03
5.1.40.0070.0239.88
5.1.30.0100.05310.33
5.1.20.0070.06010.34
5.1.10.0030.0579.97
5.1.00.0000.05310.06
5.0.50.0000.0238.54
5.0.40.0030.0438.45
5.0.30.0030.0708.13
5.0.20.0070.0278.11
5.0.10.0030.0478.16
5.0.00.0030.0608.21
4.4.90.0000.0278.05
4.4.80.0070.0278.05
4.4.70.0000.0238.05
4.4.60.0030.0178.05
4.4.50.0000.0338.05
4.4.40.0030.0238.05
4.4.30.0000.0178.05
4.4.20.0030.0378.05
4.4.10.0000.0378.05
4.4.00.0030.0578.05
4.3.110.0030.0238.05
4.3.100.0070.0308.05
4.3.90.0000.0338.05
4.3.80.0000.0578.05
4.3.70.0030.0338.05
4.3.60.0030.0278.05
4.3.50.0000.0378.05
4.3.40.0000.0238.05
4.3.30.0070.0138.05
4.3.20.0030.0408.05
4.3.10.0000.0238.05
4.3.00.0030.0338.05

preferences:
46.74 ms | 400 KiB | 5 Q