3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Creates an anonymous filter function accepting items > $min * * Returns a single filter out of a family of "greater than n" filters */ function criteria_greater_than($min) { return function($itemuuu) use ($min) { var_dump($itemuuu); return $item > $min; }; } $input = array(1, 2, 3, 4, 5, 6); // Use array_filter on a input with a selected filter function $output = array_filter($input, criteria_greater_than(3)); print_r($output); // items > 3

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.60.0120.00318.18
8.3.50.0120.00317.95
8.3.40.0120.00318.67
8.3.30.0140.00018.75
8.3.20.0080.00019.35
8.3.10.0040.00423.48
8.3.00.0050.00220.64
8.2.180.0120.00616.50
8.2.170.0130.00722.96
8.2.160.0030.01022.03
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00418.09
8.2.120.0000.00726.35
8.2.110.0090.00021.12
8.2.100.0030.00918.03
8.2.90.0050.00317.88
8.2.80.0030.00517.97
8.2.70.0030.00517.80
8.2.60.0080.00018.22
8.2.50.0000.00818.10
8.2.40.0040.00419.30
8.2.30.0000.00719.26
8.2.20.0000.00718.05
8.2.10.0000.01018.01
8.2.00.0040.00417.68
8.1.280.0120.00325.92
8.1.270.0040.00418.94
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00621.15
8.1.230.0060.00617.45
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00218.55
8.1.160.0000.00718.88
8.1.150.0000.00718.99
8.1.140.0000.00722.01
8.1.130.0040.00420.26
8.1.120.0050.00317.35
8.1.110.0040.00417.49
8.1.100.0080.00017.35
8.1.90.0060.00317.39
8.1.80.0000.00917.46
8.1.70.0040.00417.52
8.1.60.0060.00317.59
8.1.50.0060.00317.46
8.1.40.0030.00517.43
8.1.30.0070.00417.54
8.1.20.0000.00717.57
8.1.10.0080.00017.48
8.1.00.0020.00517.46
8.0.300.0030.00518.77
8.0.290.0000.00916.58
8.0.280.0000.00718.36
8.0.270.0000.00717.24
8.0.260.0060.00018.43
8.0.250.0070.00016.92
8.0.240.0000.00617.05
8.0.230.0020.00516.87
8.0.220.0040.00416.98
8.0.210.0030.00316.80
8.0.200.0000.00716.84
8.0.190.0060.00316.94
8.0.180.0000.00716.94
8.0.170.0060.00316.96
8.0.160.0000.00716.98
8.0.150.0030.00516.77
8.0.140.0000.00716.80
8.0.130.0000.00613.33
8.0.120.0000.00816.86
8.0.110.0040.00416.89
8.0.100.0040.00416.81
8.0.90.0000.00816.93
8.0.80.0090.00916.92
8.0.70.0050.00216.76
8.0.60.0050.00316.92
8.0.50.0000.00716.81
8.0.30.0170.00017.24
8.0.20.0150.00617.40
8.0.10.0000.00717.11
8.0.00.0100.01216.65
7.4.330.0000.00615.55
7.4.320.0030.00316.60
7.4.300.0000.00716.38
7.4.290.0070.00016.58
7.4.280.0040.00416.47
7.4.270.0000.00716.60
7.4.260.0030.00316.49
7.4.250.0040.00416.47
7.4.240.0000.00716.41
7.4.230.0030.00316.24
7.4.220.0040.00416.67
7.4.210.0080.00916.57
7.4.200.0040.00416.59
7.4.160.0050.01216.60
7.4.140.0150.00517.86
7.4.130.0100.00716.48
7.4.120.0140.00516.47
7.4.110.0130.01016.55
7.4.100.0120.00416.54
7.4.90.0110.00616.57
7.4.80.0110.00719.39
7.4.70.0110.00616.50
7.4.60.0110.01116.51
7.4.50.0080.00416.66
7.4.40.0070.01016.36
7.4.10.0090.00315.07
7.4.00.0090.00914.78
7.3.330.0020.00213.35
7.3.320.0030.00313.28
7.3.310.0000.00816.13
7.3.300.0040.00416.26
7.3.290.0050.00216.30
7.3.280.0060.00916.36
7.3.260.0070.01016.52
7.3.240.0100.00916.40
7.3.230.0080.00916.62
7.3.210.0140.00316.48
7.3.200.0060.01016.42
7.3.190.0070.01016.42
7.3.180.0050.01016.30
7.3.170.0100.01316.58
7.3.160.0040.01816.45
7.3.130.0130.00614.60
7.3.120.0060.01314.63
7.3.110.0070.01414.98
7.3.100.0100.00714.92
7.3.90.0110.00714.66
7.3.80.0090.00614.81
7.3.70.0090.00314.96
7.3.60.0040.00814.75
7.3.50.0100.00314.65
7.3.40.0000.01514.70
7.3.30.0060.00315.02
7.3.20.0030.01016.55
7.3.10.0060.00916.77
7.3.00.0080.00716.63
7.2.330.0110.00716.54
7.2.320.0090.01516.57
7.2.310.0140.00316.46
7.2.300.0120.00416.66
7.2.290.0040.01216.77
7.2.260.0120.00615.14
7.2.250.0110.00715.00
7.2.240.0030.01415.04
7.2.230.0080.01215.08
7.2.220.0080.00815.10
7.2.210.0060.00915.03
7.2.200.0070.00715.00
7.2.190.0070.00715.09
7.2.180.0040.01114.76
7.2.170.0160.00314.96
7.2.160.0030.00714.69
7.2.150.0100.00716.54
7.2.140.0040.00716.76
7.2.130.0000.01916.88
7.2.120.0070.01016.96
7.2.110.0060.01116.89
7.2.100.0070.01016.99
7.2.90.0110.00717.01
7.2.80.0040.01217.02
7.2.70.0100.00016.95
7.2.60.0040.00817.12
7.2.50.0060.00616.77
7.2.40.0100.00616.78
7.2.30.0160.00017.09
7.2.20.0130.00317.01
7.2.10.0030.01216.88
7.2.00.0060.00916.68
7.1.330.0130.00015.86
7.1.320.0060.00616.03
7.1.310.0040.00815.90
7.1.300.0060.00615.82
7.1.290.0030.01115.82
7.1.280.0030.00715.61
7.1.270.0060.00615.82
7.1.260.0030.01415.62
7.1.250.0000.01715.77
7.1.240.0040.01115.91
7.1.230.0070.00315.70
7.1.220.0030.01315.87
7.1.210.0030.01315.85
7.1.200.0030.01315.83
7.1.190.0060.00615.74
7.1.180.0130.00315.71
7.1.170.0030.01015.82
7.1.160.0080.00615.65
7.1.150.0030.00915.55
7.1.140.0100.00315.78
7.1.130.0060.00715.61
7.1.120.0080.00315.97
7.1.110.0000.01015.93
7.1.100.0000.01515.89
7.1.90.0040.01115.82
7.1.80.0120.00315.83
7.1.70.0000.01215.93
7.1.60.0090.00315.77
7.1.50.0040.00715.76
7.1.40.0060.00615.54
7.1.30.0070.00715.95
7.1.20.0060.00315.91
7.1.10.0000.01115.85
7.1.00.0030.01015.80
7.0.330.0070.00715.46
7.0.320.0110.00715.40
7.0.310.0000.01515.30
7.0.300.0090.00615.52
7.0.290.0030.01415.37
7.0.280.0070.00715.37
7.0.270.0030.00615.35
7.0.260.0040.00415.35
7.0.250.0030.00615.07
7.0.240.0040.00715.34
7.0.230.0100.00315.43
7.0.220.0040.01115.32
7.0.210.0040.00815.41
7.0.200.0000.01315.48
7.0.190.0070.00715.58
7.0.180.0040.00415.33
7.0.170.0080.00415.12
7.0.160.0050.00515.37
7.0.150.0000.01315.40
7.0.140.0000.01415.34
7.0.130.0130.00315.00
7.0.120.0000.01415.53
7.0.110.0040.00415.46
7.0.100.0060.00315.30
7.0.90.0000.01315.53
7.0.80.0050.00315.07
7.0.70.0000.01215.16
7.0.60.0070.00715.35
7.0.50.0040.01215.64
7.0.40.0060.00613.37
7.0.30.0060.00613.46
7.0.20.0060.00613.20
7.0.10.0030.01013.62
7.0.00.0070.00413.48
5.6.400.0100.00714.19
5.6.390.0030.01414.46
5.6.380.0060.01114.07
5.6.370.0000.01514.25
5.6.360.0060.00614.39
5.6.350.0070.01014.57
5.6.340.0030.00614.14
5.6.330.0140.00314.24
5.6.320.0120.00014.43
5.6.310.0070.00714.10
5.6.300.0090.00614.54
5.6.290.0070.00414.21
5.6.280.0040.00714.23
5.6.270.0030.00914.43
5.6.260.0100.00314.16
5.6.250.0090.00314.30
5.6.240.0120.00314.25
5.6.230.0000.01214.30
5.6.220.0030.01314.23
5.6.210.0040.01414.44
5.6.200.0030.00814.23
5.6.190.0060.00914.36
5.6.180.0000.00914.27
5.6.170.0070.00714.20
5.6.160.0030.00814.21
5.6.150.0030.01614.00
5.6.140.0070.00714.09
5.6.130.0060.01313.96
5.6.120.0030.01014.06
5.6.110.0030.01013.96
5.6.100.0100.00514.27
5.6.90.0000.01414.34
5.6.80.0060.00614.25
5.6.70.0060.00314.17
5.6.60.0090.00014.17
5.6.50.0070.00414.20
5.6.40.0070.01014.07
5.6.30.0030.01014.25
5.6.20.0090.00313.93
5.6.10.0070.00714.30
5.6.00.0080.00414.27

preferences:
64.26 ms | 401 KiB | 5 Q