3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(0, 1440); $it = new CallbackFilterIterator( new ArrayIterator($array), function($value, $key) { return 0 === $key % 30; } ); foreach ($it as $value) { var_dump($value); }

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.1.70.0030.00517.52
8.1.60.0060.00317.57
8.1.50.0080.00017.54
8.1.40.0040.00417.61
8.1.30.0040.00417.69
8.1.20.0090.00017.75
8.1.10.0080.00017.54
8.1.00.0030.00617.57
8.0.200.0000.00717.03
8.0.190.0000.00716.93
8.0.180.0050.00216.89
8.0.170.0000.00816.97
8.0.160.0070.00016.85
8.0.150.0060.00316.94
8.0.140.0040.00416.84
8.0.130.0000.00613.40
8.0.120.0000.00816.90
8.0.110.0030.00516.98
8.0.100.0030.00516.86
8.0.90.0000.00716.98
8.0.80.0090.00916.97
8.0.70.0000.00716.83
8.0.60.0040.00416.88
8.0.50.0000.00717.02
8.0.30.0130.00717.39
8.0.20.0140.00617.40
8.0.10.0020.00517.03
8.0.00.0130.01016.82
7.4.300.0070.00016.59
7.4.290.0070.00016.58
7.4.280.0080.00016.69
7.4.270.0040.00416.61
7.4.260.0040.00416.66
7.4.250.0030.00516.64
7.4.240.0020.00516.63
7.4.230.0040.00416.52
7.4.220.0070.01716.75
7.4.210.0050.00916.69
7.4.200.0000.00716.70
7.4.190.0020.00516.76
7.4.160.0110.00516.75
7.4.150.0060.01217.40
7.4.140.0160.00717.86
7.4.130.0160.00516.59
7.4.120.0130.00716.60
7.4.110.0090.00916.46
7.4.100.0130.00916.54
7.4.90.0110.01116.60
7.4.80.0100.00719.39
7.4.70.0040.01516.75
7.4.60.0140.00516.67
7.4.50.0040.00416.57
7.4.40.0070.00522.77
7.4.30.0180.00616.51
7.4.00.0070.00915.06
7.3.330.0030.00313.26
7.3.320.0060.00013.25
7.3.310.0000.00716.50
7.3.300.0030.00516.42
7.3.290.0120.00316.38
7.3.280.0090.00916.38
7.3.270.0110.00717.40
7.3.260.0110.00716.71
7.3.250.0130.00516.53
7.3.240.0090.01316.69
7.3.230.0070.01016.39
7.3.210.0130.00716.71
7.3.200.0120.00916.32
7.3.190.0100.01016.50
7.3.180.0130.00316.34
7.3.170.0030.01316.77
7.3.160.0050.01216.72
7.3.120.0060.01215.02
7.3.110.0050.01314.97
7.3.100.0050.01114.78
7.3.90.0060.00614.85
7.3.80.0030.01014.98
7.3.70.0020.01114.85
7.3.60.0060.00714.78
7.3.50.0030.01014.51
7.3.40.0050.01214.96
7.3.30.0050.01014.81
7.3.20.0080.00316.49
7.3.10.0060.00516.68
7.3.00.0070.00716.60
7.2.330.0090.01216.63
7.2.320.0070.01316.73
7.2.310.0060.01016.79
7.2.300.0110.00616.73
7.2.290.0060.01216.87
7.2.250.0130.00615.16
7.2.240.0080.00815.21
7.2.230.0050.01215.11
7.2.220.0030.00815.22
7.2.210.0080.00915.03
7.2.200.0050.01115.17
7.2.190.0060.00815.00
7.2.180.0050.00915.33
7.2.170.0090.00514.96
7.2.130.0060.00917.09
7.2.120.0170.00317.06
7.2.110.0090.00416.78
7.2.100.0060.01016.82
7.2.90.0080.00816.90
7.2.80.0100.00616.91
7.2.70.0040.01116.85
7.2.60.0100.00516.76
7.2.50.0120.00416.95
7.2.40.0080.01517.08
7.2.30.0070.01216.88
7.2.20.0110.00716.70
7.2.10.0060.01317.05
7.2.00.0130.00616.78
7.1.330.0020.01415.82
7.1.320.0020.01215.60
7.1.310.0030.01215.85
7.1.300.0030.00915.74
7.1.290.0060.01015.66
7.1.280.0070.00515.70
7.1.270.0060.01015.60
7.1.260.0060.00815.77
7.1.250.0060.00615.79
7.1.240.0100.00015.93
7.1.230.0080.01015.50
7.1.220.0110.00715.56
7.1.210.0070.01015.62
7.1.200.0060.00515.69
7.1.190.0110.00715.48
7.1.180.0140.00415.62
7.1.170.0060.01015.68
7.1.160.0040.01415.80
7.1.150.0090.00615.50
7.1.140.0130.00315.89
7.1.130.0070.00715.63
7.1.120.0070.01015.94
7.1.110.0140.00315.79
7.1.100.0070.01315.69
7.1.90.0070.01115.96
7.1.80.0150.00015.67
7.1.70.0030.01516.60
7.1.60.0120.00817.44
7.1.50.0070.00716.33
7.1.40.0030.01315.61
7.1.30.0090.00915.79
7.1.20.0000.01415.84
7.1.10.0030.01615.88
7.1.00.0050.04519.07
7.0.330.0060.00614.96
7.0.320.0130.00415.21
7.0.310.0110.00515.30
7.0.300.0120.00815.30
7.0.290.0070.01315.29
7.0.280.0060.00915.14
7.0.270.0090.00915.46
7.0.260.0090.00615.45
7.0.250.0130.00015.46
7.0.240.0070.01015.43
7.0.230.0100.00715.27
7.0.220.0170.00014.98
7.0.210.0070.01015.39
7.0.200.0060.00915.94
7.0.190.0150.00315.13
7.0.180.0100.00314.98
7.0.170.0210.00014.94
7.0.160.0090.00915.19
7.0.150.0060.01015.39
7.0.140.0150.03218.72
7.0.130.0100.00615.33
7.0.120.0170.00315.17
7.0.110.0130.01315.36
7.0.100.0100.00715.45
7.0.90.0100.01015.64
7.0.80.0150.00215.35
7.0.70.0110.00415.32
7.0.60.0030.05017.76
7.0.50.0090.02516.54
7.0.40.0030.03316.89
7.0.30.0080.03216.65
7.0.20.0150.03916.78
7.0.10.0100.04116.75
7.0.00.0080.04516.63
5.6.380.0030.01014.69
5.6.370.0070.00714.63
5.6.360.0080.00814.75
5.6.350.0040.01214.75
5.6.340.0120.00214.90
5.6.330.0110.00714.69
5.6.320.0110.00414.46
5.6.310.0040.01114.73
5.6.300.0070.01414.72
5.6.290.0000.01814.57
5.6.280.0000.05017.98
5.6.270.0090.00914.61
5.6.260.0120.00814.61
5.6.250.0120.01014.77
5.6.240.0000.01414.73
5.6.230.0100.00714.97
5.6.220.0090.00914.70
5.6.210.0090.04117.58
5.6.200.0040.02916.41
5.6.190.0100.03317.66
5.6.180.0150.02617.58
5.6.170.0080.03017.74
5.6.160.0030.02717.59
5.6.150.0100.04616.42
5.6.140.0060.03616.36
5.6.130.0110.04516.59
5.6.120.0070.02618.05
5.6.110.0100.04617.91
5.6.100.0090.03918.16
5.6.90.0160.04517.97
5.6.80.0070.05017.59
5.6.70.2130.02517.75
5.6.60.0080.01514.44
5.6.50.0110.01414.59
5.6.40.0110.01414.56
5.6.30.0120.00814.52
5.6.20.0130.00614.84
5.6.10.0090.00614.64
5.6.00.0090.00314.32
5.5.380.0000.01011.34
5.5.370.0100.00611.45
5.5.360.0030.01011.21
5.5.350.0080.04515.84
5.5.340.0070.04314.79
5.5.330.0070.04315.86
5.5.320.0060.02315.74
5.5.310.0150.03015.73
5.5.300.0060.02314.81
5.5.290.0080.04514.86
5.5.280.0090.04316.32
5.5.270.0050.03216.29
5.5.260.0080.04816.25
5.5.250.0120.03816.02
5.5.240.0170.03815.79
5.5.230.0060.00911.21
5.5.220.0070.00310.99
5.5.210.0090.00311.24
5.5.200.0080.00811.10
5.5.190.0120.00011.45
5.5.180.0070.00311.47
5.5.170.0000.00911.29
5.5.160.0030.00611.45
5.5.150.0000.01011.31
5.5.140.0030.00911.27
5.5.130.0130.00011.48
5.5.120.0030.00911.53
5.5.110.0000.01311.47
5.5.100.0000.00811.31
5.5.90.0000.01111.46
5.5.80.0070.00311.21
5.5.70.0000.01511.03
5.5.60.0090.00011.34
5.5.50.0030.01011.45
5.5.40.0080.00311.06
5.5.30.0080.00311.39
5.5.20.0040.00811.33
5.5.10.0090.00310.88
5.5.00.0060.00311.32
5.4.450.0320.03215.38
5.4.440.0440.03715.56
5.4.430.0470.03315.67
5.4.420.0380.00215.54
5.4.410.0080.03215.36
5.4.400.0180.04015.19
5.4.390.0150.02615.18
5.4.380.0090.03115.03
5.4.370.0030.02615.02
5.4.360.0030.03415.13
5.4.350.0060.02711.83
5.4.340.0070.01911.84
5.4.330.0030.00511.24
5.4.320.0060.02112.01
5.4.310.0050.02212.05
5.4.300.0080.02012.04
5.4.290.0140.03311.99
5.4.280.0080.03511.97
5.4.270.0100.04111.97
5.4.260.0100.02711.98
5.4.250.0120.03111.79
5.4.240.0080.03311.82
5.4.230.0060.03111.86
5.4.220.0070.02712.06
5.4.210.0080.02811.82
5.4.200.0080.02812.03
5.4.190.0080.02811.96
5.4.180.0090.02611.99
5.4.170.0070.02912.00
5.4.160.0080.03611.94
5.4.150.0060.03611.93
5.4.140.0050.02811.64
5.4.130.0050.03411.53
5.4.120.0090.03011.72
5.4.110.0090.03011.75
5.4.100.0050.03311.86
5.4.90.0100.03111.82
5.4.80.0100.03011.89
5.4.70.0110.02711.83
5.4.60.0090.02711.79
5.4.50.0060.03311.79
5.4.40.0080.03211.78
5.4.30.0080.02711.83
5.4.20.0070.03211.79
5.4.10.0060.02311.77
5.4.00.0070.02511.42
5.3.290.0070.02111.88
5.3.280.0080.02911.69
5.3.270.0080.02911.70
5.3.260.0070.02411.70
5.3.250.0050.02911.85
5.3.240.0080.02811.79
5.3.230.0050.02911.70
5.3.220.0050.02511.71
5.3.210.0100.02211.68
5.3.200.0090.02611.74
5.3.190.0070.02711.75
5.3.180.0040.03111.85
5.3.170.0090.02811.81
5.3.160.0070.02811.82
5.3.150.0100.02511.82
5.3.140.0070.02711.79
5.3.130.0070.02511.67
5.3.120.0060.02911.78
5.3.110.0080.03011.80
5.3.100.0040.03811.56
5.3.90.0090.02911.51
5.3.80.0050.03311.42
5.3.70.0060.03011.40
5.3.60.0050.02811.39
5.3.50.0040.03111.36
5.3.40.0090.02811.38
5.3.30.0050.03111.38
5.3.20.0070.03111.26
5.3.10.0120.06311.22
5.3.00.0060.03111.21
5.2.170.0070.0259.85
5.2.160.0070.0299.85
5.2.150.0060.0249.85
5.2.140.0090.0309.85
5.2.130.0030.0239.83
5.2.120.0070.0279.83
5.2.110.0040.0259.83
5.2.100.0040.0249.83
5.2.90.0050.0239.83
5.2.80.0070.0219.83
5.2.70.0020.0259.83
5.2.60.0100.0219.80
5.2.50.0020.0299.79
5.2.40.0050.0239.77
5.2.30.0050.0219.76
5.2.20.0070.0209.76
5.2.10.0050.0189.72
5.2.00.0060.0169.65
5.1.60.0040.0199.29
5.1.50.0050.0199.29
5.1.40.0030.0239.28
5.1.30.0080.0209.46
5.1.20.0050.0199.47
5.1.10.0070.0199.33
5.1.00.0050.0239.33
5.0.50.0040.0178.57
5.0.40.0060.0158.50
5.0.30.0060.0238.40
5.0.20.0070.0138.39
5.0.10.0040.0178.38
5.0.00.0020.0248.37
4.4.90.0030.0117.64
4.4.80.0020.0127.63
4.4.70.0050.0187.63
4.4.60.0050.0107.63
4.4.50.0020.0187.64
4.4.40.0030.0207.61
4.4.30.0040.0127.63
4.4.20.0040.0127.68
4.4.10.0030.0127.68
4.4.00.0020.0187.63
4.3.110.0030.0197.59
4.3.100.0040.0137.59
4.3.90.0080.0137.57
4.3.80.0040.0187.54
4.3.70.0070.0187.57
4.3.60.0030.0117.57
4.3.50.0040.0127.57
4.3.40.0030.0187.52
4.3.30.0040.0126.90
4.3.20.0050.0106.88
4.3.10.0040.0106.87
4.3.00.0170.0138.66

preferences:
13.36 ms | 406 KiB | 5 Q