3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( 'type' => 'checkbox', 'id' => 'f0', 'is_active' => 1 ), array( 'type' => 'checkbox', 'id' => 'f1', 'is_active' => 0 ), array( 'type' => 'radio', 'id' => 'f2', 'is_active' => 0 ), array( 'type' => 'checkbox', 'id' => 'f3', 'is_active' => 1 ), array( 'type' => 'text', 'id' => 'f4', 'is_active' => 1 ) ); $filtered = array_filter($array, function($v){return $v['type'] == 'checkbox' && $v['is_active'] == 1;}); 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.5.10.0120.00619.46
8.5.00.0140.00619.93
8.4.150.0030.00014.05
8.4.140.0180.00417.53
8.4.130.0100.01017.92
8.4.120.0090.01220.73
8.4.110.0120.00822.58
8.4.100.0100.01017.69
8.4.90.0120.00720.69
8.4.80.0040.00418.90
8.4.70.0110.01018.84
8.4.60.0060.00318.98
8.4.50.0130.01020.66
8.4.40.0070.00619.48
8.4.30.0090.01020.62
8.4.20.0060.00320.50
8.4.10.0180.00319.38
8.3.280.0120.00918.70
8.3.270.0120.00716.41
8.3.260.0120.00316.61
8.3.250.0120.00618.73
8.3.240.0060.00216.66
8.3.230.0100.00916.72
8.3.220.0120.00618.95
8.3.210.0110.01118.75
8.3.200.0080.00316.68
8.3.190.0120.00316.89
8.3.180.0110.00718.71
8.3.170.0180.00022.64
8.3.160.0110.00716.97
8.3.150.0160.00319.06
8.3.140.0030.00620.91
8.3.130.0070.00318.40
8.3.120.0090.00018.78
8.3.110.0180.00020.94
8.3.100.0120.00324.06
8.3.90.0160.00326.77
8.3.80.0060.00316.75
8.3.70.0120.00618.18
8.3.60.0090.00618.43
8.3.50.0090.00418.39
8.3.40.0120.00318.69
8.3.30.0030.01218.71
8.3.20.0000.00820.84
8.3.10.0060.00323.61
8.3.00.0070.00020.68
8.2.290.0050.00520.60
8.2.280.0120.00818.25
8.2.270.0110.00716.88
8.2.260.0040.00417.45
8.2.250.0080.00018.16
8.2.240.0150.00417.21
8.2.230.0090.00022.58
8.2.220.0120.00337.54
8.2.210.0080.00026.77
8.2.200.0090.00018.29
8.2.190.0120.00916.63
8.2.180.0200.00018.67
8.2.170.0150.00622.96
8.2.160.0130.00722.06
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0080.00022.20
8.2.100.0000.01119.45
8.2.90.0000.00817.75
8.2.80.0050.00318.78
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00818.09
8.2.30.0000.00718.14
8.2.20.0040.00418.01
8.2.10.0040.00418.89
8.2.00.0040.00419.36
8.1.330.0100.00822.13
8.1.320.0090.01116.46
8.1.310.0040.00416.57
8.1.300.0060.00318.02
8.1.290.0100.00330.84
8.1.280.0090.00625.92
8.1.270.0030.00624.66
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00620.69
8.1.230.0040.00717.89
8.1.220.0080.00017.77
8.1.210.0110.00318.77
8.1.200.0050.00517.38
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0060.00318.86
8.1.150.0040.00418.92
8.1.140.0070.00018.93
8.1.130.0070.00017.45
8.1.120.0090.00017.36
8.1.110.0000.00717.50
8.1.100.0040.00417.47
8.1.90.0070.00017.43
8.1.80.0000.00817.45
8.1.70.0000.00717.46
8.1.60.0080.00017.48
8.1.50.0040.00417.43
8.1.40.0040.00417.55
8.1.30.0000.00717.67
8.1.20.0000.00817.68
8.1.10.0000.00717.52
8.1.00.0040.00417.38
8.0.300.0080.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0050.00217.42
8.0.260.0040.00416.73
8.0.250.0000.00817.01
8.0.240.0040.00417.05
8.0.230.0000.00916.93
8.0.220.0050.00216.74
8.0.210.0030.00316.80
8.0.200.0030.00316.96
8.0.190.0000.00716.86
8.0.180.0040.00416.82
8.0.170.0060.00316.89
8.0.160.0040.00416.89
8.0.150.0040.00416.84
8.0.140.0040.00416.83
8.0.130.0040.00413.33
8.0.120.0040.00416.93
8.0.110.0000.00816.99
8.0.100.0050.00216.85
8.0.90.0030.00516.88
8.0.80.0070.00816.84
8.0.70.0000.00716.95
8.0.60.0070.00016.75
8.0.50.0030.00616.96
8.0.30.0130.00317.14
8.0.20.0140.00417.10
8.0.10.0050.00317.00
8.0.00.0120.00616.87
7.4.330.0000.00515.55
7.4.320.0030.00316.48
7.4.300.0040.00416.43
7.4.290.0030.00316.57
7.4.280.0030.00516.61
7.4.270.0030.00316.44
7.4.260.0000.00513.30
7.4.250.0030.00316.40
7.4.240.0030.00416.55
7.4.230.0000.00716.73
7.4.220.0020.00516.35
7.4.210.0070.00916.58
7.4.200.0000.00716.64
7.4.130.0100.01016.47
7.4.120.0090.00916.52
7.4.110.0050.01316.54
7.4.100.0100.01016.59
7.4.90.0080.00916.44
7.4.80.0070.01119.39
7.4.70.0110.00516.43
7.4.60.0060.01216.50
7.4.50.0070.00716.38
7.4.40.0120.00616.40
7.4.00.0120.00315.02
7.3.330.0000.00716.31
7.3.320.0050.00013.32
7.3.310.0070.00016.13
7.3.300.0050.00216.32
7.3.290.0090.00816.25
7.3.260.0130.01016.29
7.3.240.0090.00916.42
7.3.230.0100.00716.37
7.3.210.0130.00316.50
7.3.200.0070.01416.57
7.3.190.0090.00616.37
7.3.180.0060.00916.52
7.3.170.0090.00916.23
7.3.160.0090.00616.47
7.3.120.0090.00614.93
7.3.110.0120.00914.90
7.3.100.0060.01314.96
7.3.90.0090.00714.64
7.3.80.0100.00314.82
7.3.70.0060.00614.79
7.3.60.0110.00314.69
7.3.50.0030.01014.73
7.3.40.0060.00814.69
7.3.30.0070.00514.72
7.3.20.0050.00915.71
7.3.10.0060.00815.67
7.3.00.0050.00915.81
7.2.330.0070.01116.57
7.2.320.0100.00716.50
7.2.310.0140.00816.62
7.2.300.0100.01316.35
7.2.290.0120.00316.64
7.2.250.0100.00714.83
7.2.240.0030.01715.24
7.2.230.0090.00615.12
7.2.220.0070.00914.65
7.2.210.0050.00914.84
7.2.200.0050.01115.00
7.2.190.0080.00515.14
7.2.180.0050.01015.03
7.2.170.0050.01015.05
7.2.160.0090.00614.79
7.2.150.0030.00916.02
7.2.140.0060.00715.89
7.2.130.0070.00715.98
7.2.120.0080.00815.86
7.2.110.0090.00815.90
7.2.100.0080.01115.98
7.2.90.0140.01115.99
7.2.80.0090.00616.07
7.2.70.0070.00716.03
7.2.60.0090.00316.05
7.2.50.0050.00915.97
7.2.40.0090.00615.94
7.2.30.0130.00616.02
7.2.20.0020.01116.02
7.2.10.0020.01116.04
7.2.00.0080.00516.03
7.1.330.0070.01214.65
7.1.320.0100.00714.71
7.1.310.0080.00714.81
7.1.300.0040.00814.89
7.1.290.0080.00714.89
7.1.280.0020.00914.98
7.1.270.0100.00414.87
7.1.260.0020.01114.85
7.1.250.0040.00714.66
7.1.240.0060.00315.79
7.1.230.0030.00615.72
7.1.220.0030.01015.60
7.1.210.0060.01115.69
7.1.200.0090.00415.77
7.1.190.0130.00015.89
7.1.180.0000.01215.56
7.1.170.0040.00815.81
7.1.160.0060.01215.91
7.1.150.0000.00915.89
7.1.140.0040.00815.74
7.1.130.0070.00715.86
7.1.120.0130.00315.86
7.1.110.0030.01215.63
7.1.100.0090.00615.87
7.1.90.0000.01115.92
7.1.80.0000.01415.61
7.1.70.0070.00715.83
7.1.60.0030.00615.96
7.1.50.0040.00716.04
7.1.40.0070.00415.46
7.1.30.0030.00915.84
7.1.20.0030.00615.80
7.1.10.0090.00615.64
7.1.00.0040.01115.71

preferences:
166.45 ms | 403 KiB | 5 Q