3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rand = range(0, 50); shuffle($rand); $rand2 = range(0, 50); shuffle($rand2); $arr = array_combine($rand, $rand2); $arr = array_filter($arr,function($k){ return $k <= 15 && $k >= 10; },2); ksort($arr); foreach($arr as $key => $value) { echo "$key: $value\n"; }

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)
7.4.10.0030.01714.82
7.4.00.0070.01315.14
7.3.130.0100.00315.07
7.3.120.0130.00714.76
7.3.110.0080.00814.83
7.3.100.0040.01114.61
7.3.90.0090.00614.68
7.3.80.0090.00614.89
7.3.70.0040.01414.79
7.3.60.0060.01214.95
7.3.50.0000.01414.57
7.3.40.0070.01114.52
7.3.30.0000.01414.74
7.3.20.0030.01016.84
7.3.10.0070.01016.72
7.3.00.0120.00016.54
7.2.260.0140.00714.84
7.2.250.0070.01114.98
7.2.240.0000.01514.81
7.2.230.0090.00314.90
7.2.220.0030.01015.20
7.2.210.0030.00715.00
7.2.200.0000.01814.86
7.2.190.0050.00514.75
7.2.180.0070.01015.05
7.2.170.0070.01014.99
7.2.160.0030.01014.98
7.2.150.0090.00616.73
7.2.140.0100.00316.78
7.2.130.0080.00416.84
7.2.120.0040.01516.80
7.2.110.0040.00916.79
7.2.100.0040.01116.91
7.2.90.0000.01516.90
7.2.80.0030.00616.84
7.2.70.0060.00916.89
7.2.60.0000.01416.91
7.2.50.0070.00716.63
7.2.40.0070.01016.95
7.2.30.0040.01117.02
7.2.20.0100.00717.02
7.2.10.0050.00816.81
7.2.00.0050.01117.98
7.1.330.0160.00015.40
7.1.320.0030.00915.55
7.1.310.0030.01015.54
7.1.300.0000.01015.82
7.1.290.0070.00315.50
7.1.280.0030.00715.75
7.1.270.0030.00915.98
7.1.260.0030.01015.82
7.1.250.0060.00615.93
7.1.240.0040.00715.76
7.1.230.0110.00415.67
7.1.220.0100.00315.92
7.1.210.0160.00015.67
7.1.200.0000.01115.86
7.1.190.0060.00315.81
7.1.180.0120.00415.59
7.1.170.0030.01015.88
7.1.160.0090.00615.67
7.1.150.0000.00915.68
7.1.140.0120.00315.57
7.1.130.0070.00415.75
7.1.120.0080.00815.88
7.1.110.0040.00815.87
7.1.100.0090.00615.98
7.1.90.0030.00615.75
7.1.80.0000.01715.49
7.1.70.0020.00816.51
7.1.60.0090.01017.54
7.1.50.0050.01616.50
7.1.40.0110.00415.75
7.1.30.0040.00815.88
7.1.20.0060.00615.75
7.1.10.0070.00315.54
7.1.00.0080.03919.03
7.0.330.0000.01315.42
7.0.320.0070.00715.43
7.0.310.0030.00915.60
7.0.300.0040.01115.54
7.0.290.0030.01215.34
7.0.280.0070.00715.16
7.0.270.0070.00715.33
7.0.260.0030.00615.11
7.0.250.0030.00915.44
7.0.240.0100.00315.51
7.0.230.0070.01015.48
7.0.220.0030.01015.33
7.0.210.0030.01015.50
7.0.200.0030.00716.14
7.0.190.0070.00315.21
7.0.180.0100.00315.26
7.0.170.0060.01015.47
7.0.160.0090.00615.36
7.0.150.0120.00315.43
7.0.140.0080.03318.67
7.0.130.0100.00715.40
7.0.120.0000.01215.52
7.0.110.0070.00415.36
7.0.100.0030.00715.21
7.0.90.0120.00315.46
7.0.80.0110.00315.39
7.0.70.0070.01015.54
7.0.60.0070.04317.75
7.0.50.0070.02216.76
7.0.40.0050.02516.68
7.0.30.0280.03816.86
7.0.20.0080.03816.93
7.0.10.0100.04116.82
7.0.00.0080.04016.92
5.6.400.0040.01414.38
5.6.390.0040.00414.59
5.6.380.0100.00714.58
5.6.370.0030.01014.04
5.6.360.0070.00714.34
5.6.350.0080.00414.54
5.6.340.0170.00014.33
5.6.330.0090.00614.48
5.6.320.0030.01014.29
5.6.310.0060.00914.35
5.6.300.0100.00314.49
5.6.290.0000.01014.07
5.6.280.0100.03717.60
5.6.270.0040.00914.26
5.6.260.0000.01014.16
5.6.250.0030.01014.29
5.6.240.0040.01114.12
5.6.230.0080.01114.63
5.6.220.0040.00714.42
5.6.210.0050.04717.38
5.6.200.0100.04016.13
5.6.190.0050.03717.38
5.6.180.0170.02817.25
5.6.170.0150.04517.38
5.6.160.0080.02717.38
5.6.150.0060.02216.14
5.6.140.0060.04316.27
5.6.130.0070.04216.13
5.6.120.0120.02717.51
5.6.110.0050.03817.80
5.6.100.0100.04017.83
5.6.90.0070.03317.49
5.6.80.0070.04517.16
5.6.70.2260.02417.19
5.6.60.0040.00914.34
5.6.50.0070.00714.20
5.6.40.0000.01213.98
5.6.30.0030.01014.41
5.6.20.0000.01514.06
5.6.10.0000.01013.95
5.6.00.0060.00614.32
5.5.380.0040.01514.28
5.5.370.0090.00614.15
5.5.360.0040.00814.02
5.5.350.0050.04217.26
5.5.340.0030.02516.11
5.5.330.0080.02117.22
5.5.320.0200.04217.24
5.5.310.0150.03517.35
5.5.300.0030.02916.02
5.5.290.0080.03515.96
5.5.280.0070.04817.35
5.5.270.0070.04617.44
5.5.260.0050.04517.67
5.5.250.0040.02217.22
5.5.240.2200.02217.15
5.5.230.0100.00314.21
5.5.220.0090.00314.38
5.5.210.0070.00713.93
5.5.200.0000.01613.97
5.5.190.0060.00614.25
5.5.180.0120.00314.10
5.5.170.0080.00314.18
5.5.160.0100.00613.95
5.5.150.0040.00814.06
5.5.140.0030.00714.20
5.5.130.0040.00414.14
5.5.120.0070.00714.30
5.5.110.0000.01214.19
5.5.100.0120.00014.21
5.5.90.0030.01013.98
5.5.80.0040.00814.16
5.5.70.0060.00914.10
5.5.60.0030.00914.11
5.5.50.0000.01113.98
5.5.40.0030.00714.18
5.5.30.0030.01013.97
5.5.20.0070.00414.09
5.5.10.0030.00614.36
5.5.00.0000.00813.82
5.4.450.0200.02715.05
5.4.440.0170.02415.21
5.4.430.0190.02815.25
5.4.420.0080.02815.22
5.4.410.0050.02215.28
5.4.400.0220.02414.99
5.4.390.0120.02715.14
5.4.380.0180.02914.88
5.4.370.0170.03014.86
5.4.360.0170.02914.70
5.4.350.0240.02814.94
5.4.340.0250.02714.90
5.4.330.0070.00010.95
5.4.320.0060.02011.84
5.4.310.0060.02411.86
5.4.300.0040.02311.80
5.4.290.0030.02711.86
5.4.280.0080.01911.65
5.4.270.0040.02211.84
5.4.260.0020.02411.69
5.4.250.0020.02311.74
5.4.240.0050.02011.77
5.4.230.0050.02311.75
5.4.220.0050.02211.79
5.4.210.0040.02211.77
5.4.200.0040.02311.62
5.4.190.0080.02011.78
5.4.180.0070.02411.64
5.4.170.0020.02511.65
5.4.160.0040.02211.71
5.4.150.0060.01911.77
5.4.140.0070.01911.50
5.4.130.0040.02111.52
5.4.120.0060.02011.47
5.4.110.0070.01711.37
5.4.100.0020.02311.50
5.4.90.0070.02211.54
5.4.80.0050.02611.50
5.4.70.0060.02711.48
5.4.60.0070.03611.57
5.4.50.0050.02711.55
5.4.40.0070.02011.40
5.4.30.0050.02211.50
5.4.20.0090.01811.54
5.4.10.0070.02111.39
5.4.00.0040.02311.13
5.3.290.0080.03712.80
5.3.280.0050.03912.71
5.3.270.0050.04112.73
5.3.260.0020.04312.72
5.3.250.0080.03612.72
5.3.240.0110.03412.72
5.3.230.0020.04212.71
5.3.220.0080.03512.68
5.3.210.0080.03612.68
5.3.200.0070.03712.68
5.3.190.0060.03812.68
5.3.180.0050.03912.68
5.3.170.0060.03812.67
5.3.160.0070.03712.68
5.3.150.0060.03812.67
5.3.140.0060.03712.66
5.3.130.0080.03712.66
5.3.120.0100.03512.66
5.3.110.0070.03812.66
5.3.100.0070.03512.13
5.3.90.0070.03512.12
5.3.80.0050.03712.11
5.3.70.0070.03912.11
5.3.60.0060.03612.09
5.3.50.0060.03612.04
5.3.40.0070.03512.04
5.3.30.0060.03812.00
5.3.20.0070.03811.78
5.3.10.0070.03411.74
5.3.00.0070.03511.73
5.2.170.0070.0289.19
5.2.160.0050.0309.18
5.2.150.0040.0329.19
5.2.140.0030.0379.18
5.2.130.0010.0319.14
5.2.120.0020.0319.14
5.2.110.0050.0339.15
5.2.100.0070.0259.14
5.2.90.0060.0299.15
5.2.80.0040.0299.14
5.2.70.0050.0299.14
5.2.60.0090.0259.09
5.2.50.0050.0389.06
5.2.40.0050.0329.04
5.2.30.0040.0329.02
5.2.20.0030.0309.00
5.2.10.0020.0308.93
5.2.00.0050.0298.79
5.1.60.0040.0248.07
5.1.50.0060.0258.06
5.1.40.0020.0268.05
5.1.30.0040.0308.40
5.1.20.0030.0288.42
5.1.10.0060.0248.14
5.1.00.0060.0248.14
5.0.50.0030.0216.63
5.0.40.0040.0186.48
5.0.30.0020.0326.30
5.0.20.0040.0186.26
5.0.10.0050.0186.24
5.0.00.0030.0316.24
4.4.90.0030.0184.78
4.4.80.0030.0184.75
4.4.70.0040.0154.75
4.4.60.0030.0154.76
4.4.50.0000.0184.77
4.4.40.0010.0274.71
4.4.30.0030.0174.76
4.4.20.0050.0184.85
4.4.10.0020.0174.85
4.4.00.0040.0234.76
4.3.110.0020.0174.67
4.3.100.0040.0154.66
4.3.90.0020.0144.63
4.3.80.0040.0344.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0010.0173.29
4.3.20.0030.0153.26
4.3.10.0020.0153.22
4.3.00.0000.01718.41

preferences:
37.33 ms | 401 KiB | 5 Q