3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_comp = function ($max) { return function ($v) use ($max) { return $v > $max; }; }; $input = array(1, 2, 3, 4, 5); $output = array_filter($input, $max_comp(2)); var_dump($output);

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.0000.01418.55
8.3.50.0110.00918.37
8.3.40.0110.00418.85
8.3.30.0120.00318.72
8.3.20.0060.00321.94
8.3.10.0040.00420.90
8.3.00.0070.00021.73
8.2.180.0130.00625.92
8.2.170.0070.01422.96
8.2.160.0100.00722.20
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00326.35
8.2.110.0070.00322.11
8.2.100.0040.00817.73
8.2.90.0090.00022.24
8.2.80.0000.00817.97
8.2.70.0030.00618.03
8.2.60.0080.00018.22
8.2.50.0000.00819.23
8.2.40.0060.00321.17
8.2.30.0040.00420.43
8.2.20.0000.00717.93
8.2.10.0040.00418.86
8.2.00.0000.00718.02
8.1.280.0170.00325.92
8.1.270.0080.00020.88
8.1.260.0050.00226.35
8.1.250.0000.01428.09
8.1.240.0110.00022.55
8.1.230.0060.00620.85
8.1.220.0080.00017.74
8.1.210.0060.00319.04
8.1.200.0050.00517.35
8.1.190.0090.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0070.00018.80
8.1.150.0040.00418.94
8.1.140.0030.00320.32
8.1.130.0040.00417.38
8.1.120.0040.00417.41
8.1.110.0040.00417.45
8.1.100.0080.00017.36
8.1.90.0040.00417.45
8.1.80.0030.00317.49
8.1.70.0000.00717.36
8.1.60.0030.00617.63
8.1.50.0030.00517.55
8.1.40.0060.00317.52
8.1.30.0040.00417.61
8.1.20.0080.00017.57
8.1.10.0030.00617.61
8.1.00.0000.00817.37
8.0.300.0040.00419.79
8.0.290.0070.00016.63
8.0.280.0050.00218.30
8.0.270.0040.00417.20
8.0.260.0000.00816.74
8.0.250.0070.00016.98
8.0.240.0030.00316.95
8.0.230.0000.00817.00
8.0.220.0030.00316.87
8.0.210.0000.00716.88
8.0.200.0030.00316.96
8.0.190.0040.00416.90
8.0.180.0040.00416.89
8.0.170.0040.00416.92
8.0.160.0050.00217.00
8.0.150.0030.00716.85
8.0.140.0000.00816.82
8.0.130.0000.00613.28
8.0.120.0000.00816.75
8.0.110.0040.00416.86
8.0.100.0000.00716.86
8.0.90.0040.00416.96
8.0.80.0070.00716.84
8.0.70.0050.00216.86
8.0.60.0070.00016.77
8.0.50.0030.00616.70
8.0.30.0080.01017.08
8.0.20.0140.00717.19
8.0.10.0040.00416.90
8.0.00.0060.01216.81
7.4.330.0040.00015.55
7.4.320.0030.00316.41
7.4.300.0040.00416.57
7.4.290.0040.00416.45
7.4.280.0000.00716.54
7.4.270.0000.00816.41
7.4.260.0000.00716.57
7.4.250.0030.00316.54
7.4.240.0040.00416.40
7.4.230.0030.00316.35
7.4.220.0000.00816.49
7.4.210.0090.00916.57
7.4.200.0070.00016.57
7.4.160.0090.01416.54
7.4.140.0130.01317.86
7.4.130.0120.00616.46
7.4.120.0070.01216.57
7.4.110.0120.00616.38
7.4.100.0110.01016.61
7.4.90.0110.00716.55
7.4.80.0100.01319.39
7.4.70.0100.00616.44
7.4.60.0070.01016.42
7.4.50.0110.00416.18
7.4.40.0140.00716.44
7.4.00.0090.00714.98
7.3.330.0050.00013.22
7.3.320.0000.00613.30
7.3.310.0070.00016.18
7.3.300.0070.00016.21
7.3.290.0070.00016.18
7.3.280.0130.01016.27
7.3.260.0090.00916.44
7.3.240.0110.00716.37
7.3.230.0100.01316.43
7.3.210.0110.01116.36
7.3.200.0150.00616.35
7.3.190.0130.00616.23
7.3.180.0050.01016.41
7.3.170.0100.00616.29
7.3.160.0100.01016.42
7.3.120.0030.01414.72
7.3.110.0040.00914.71
7.3.100.0140.00314.76
7.3.90.0080.00814.52
7.3.80.0080.00014.46
7.3.70.0070.00714.86
7.3.60.0090.00614.91
7.3.50.0100.00914.66
7.3.40.0050.00914.67
7.3.30.0050.01114.79
7.3.20.0110.00216.67
7.3.10.0080.00316.62
7.3.00.0110.00316.43
7.2.330.0090.00916.59
7.2.320.0070.01016.54
7.2.310.0090.01216.78
7.2.300.0090.01216.51
7.2.290.0070.01016.47
7.2.250.0100.00715.19
7.2.240.0060.01315.04
7.2.230.0040.01115.16
7.2.220.0030.01015.01
7.2.210.0130.00315.07
7.2.200.0060.00914.88
7.2.190.0070.01015.13
7.2.180.0050.01514.73
7.2.170.0100.00814.81
7.2.160.0100.01414.99
7.2.150.0040.00916.50
7.2.140.0170.00716.97
7.2.130.0070.00716.75
7.2.120.0140.00916.94
7.2.110.0140.00716.90
7.2.100.0070.01016.52
7.2.90.0210.00616.98
7.2.80.0070.00716.76
7.2.70.0090.00616.92
7.2.60.0090.00316.95
7.2.50.0100.01016.86
7.2.40.0120.01416.74
7.2.30.0060.00916.93
7.2.20.0080.00516.66
7.2.10.0130.00716.70
7.2.00.0060.01516.93
7.1.330.0070.00715.68
7.1.320.0040.00815.64
7.1.310.0070.00715.62
7.1.300.0040.01115.89
7.1.290.0030.01315.73
7.1.280.0080.00915.75
7.1.270.0040.01015.58
7.1.260.0120.00515.84
7.1.250.0030.01315.54

preferences:
63.89 ms | 401 KiB | 5 Q