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); aksort($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.0070.01015.05
7.4.00.0100.00714.99
7.3.130.0100.00714.98
7.3.120.0060.00614.88
7.3.110.0120.00614.68
7.3.100.0060.00614.90
7.3.90.0080.00014.88
7.3.80.0080.00814.53
7.3.70.0050.00314.84
7.3.60.0030.00914.78
7.3.50.0060.00914.89
7.3.40.0000.01414.73
7.3.30.0060.00614.79
7.3.20.0070.01016.89
7.3.10.0070.00716.53
7.3.00.0040.01216.69
7.2.260.0130.00715.04
7.2.250.0120.00614.86
7.2.240.0120.00314.92
7.2.230.0030.01214.81
7.2.220.0090.00615.13
7.2.210.0040.01115.08
7.2.200.0030.01014.99
7.2.190.0080.00615.09
7.2.180.0060.01215.04
7.2.170.0090.00314.98
7.2.160.0040.00715.15
7.2.150.0040.01116.93
7.2.140.0000.01116.70
7.2.130.0000.01316.66
7.2.120.0030.00917.02
7.2.110.0100.00716.66
7.2.100.0040.00817.07
7.2.90.0040.01216.82
7.2.80.0090.00617.15
7.2.70.0030.01016.70
7.2.60.0090.00617.00
7.2.50.0060.00317.08
7.2.40.0030.01217.14
7.2.30.0000.01016.72
7.2.20.0030.00917.01
7.2.10.0000.00916.91
7.2.00.0030.01017.95
7.1.330.0100.00315.75
7.1.320.0030.00615.70
7.1.310.0060.00915.88
7.1.300.0070.00715.99
7.1.290.0070.01015.84
7.1.280.0110.00315.75
7.1.270.0070.00715.75
7.1.260.0040.00415.85
7.1.250.0100.00715.84
7.1.240.0060.00615.93
7.1.230.0090.00615.84
7.1.220.0060.00315.90
7.1.210.0030.00915.91
7.1.200.0000.01515.82
7.1.190.0030.01015.81
7.1.180.0030.01315.82
7.1.170.0060.00315.83
7.1.160.0100.00015.65
7.1.150.0040.00415.91
7.1.140.0110.00415.82
7.1.130.0060.00315.74
7.1.120.0080.00015.93
7.1.110.0060.00315.92
7.1.100.0000.01615.70
7.1.90.0040.01515.80
7.1.80.0030.00715.90
7.1.70.0030.00716.60
7.1.60.0130.00517.53
7.1.50.0070.01216.46
7.1.40.0000.00915.88
7.1.30.0040.00815.98
7.1.20.0030.00615.88
7.1.10.0030.00915.80
7.1.00.0040.04419.20
7.0.330.0030.01015.36
7.0.320.0100.00015.33
7.0.310.0040.00715.34
7.0.300.0040.01115.14
7.0.290.0030.00915.41
7.0.280.0080.00415.20
7.0.270.0070.00715.50
7.0.260.0080.00815.16
7.0.250.0000.01315.29
7.0.240.0030.01415.52
7.0.230.0030.01015.56
7.0.220.0000.01415.34
7.0.210.0030.01015.49
7.0.200.0000.00915.94
7.0.190.0030.00615.22
7.0.180.0060.00615.50
7.0.170.0080.00515.61
7.0.160.0080.00015.59
7.0.150.0040.01115.32
7.0.140.0040.04018.85
7.0.130.0060.00915.50
7.0.120.0060.00915.28
7.0.110.0070.00415.56
7.0.100.0060.00615.50
7.0.90.0120.00315.30
7.0.80.0070.00715.29
7.0.70.0040.01115.30
7.0.60.0050.02717.66
7.0.50.0020.04616.73
7.0.40.0060.04916.87
7.0.30.0270.03916.80
7.0.20.0120.03116.78
7.0.10.0070.04716.81
7.0.00.0040.02916.81
5.6.400.0170.00014.55
5.6.390.0140.00314.25
5.6.380.0100.00714.26
5.6.370.0070.01014.46
5.6.360.0000.01514.28
5.6.350.0070.00313.86
5.6.340.0070.00714.32
5.6.330.0130.00014.09
5.6.320.0000.01014.27
5.6.310.0070.00414.13
5.6.300.0000.00914.54
5.6.290.0040.01114.40
5.6.280.0030.04317.85
5.6.270.0090.00014.65
5.6.260.0030.01014.28
5.6.250.0060.00914.20
5.6.240.0070.00714.36
5.6.230.0030.01014.43
5.6.220.0120.00014.39
5.6.210.0130.03817.46
5.6.200.0070.02716.33
5.6.190.0050.02917.52
5.6.180.1980.02217.47
5.6.170.0090.02517.27
5.6.160.0010.02417.28
5.6.150.0100.04216.33
5.6.140.0040.02616.15
5.6.130.0030.03016.16
5.6.120.0040.02917.66
5.6.110.0070.03817.73
5.6.100.0050.04917.61
5.6.90.0070.03717.72
5.6.80.0050.03117.21
5.6.70.2360.02017.21
5.6.60.0090.00913.96
5.6.50.0060.00914.32
5.6.40.0030.01314.42
5.6.30.0070.00714.25
5.6.20.0030.01014.36
5.6.10.0080.00813.96
5.6.00.0040.01114.31
5.5.380.0090.00613.82
5.5.370.0030.01314.22
5.5.360.0050.00514.08
5.5.350.0090.04217.30
5.5.340.0070.04415.89
5.5.330.0030.03817.16
5.5.320.0150.02317.45
5.5.310.0240.02317.10
5.5.300.0080.04016.04
5.5.290.0030.03516.17
5.5.280.0050.04417.54
5.5.270.0160.03317.50
5.5.260.0050.04717.52
5.5.250.0070.04517.39
5.5.240.0030.03517.18
5.5.230.0030.01314.30
5.5.220.0030.00914.20
5.5.210.0100.00714.21
5.5.200.0030.00913.90
5.5.190.0040.01114.10
5.5.180.0040.00814.03
5.5.170.0060.00614.04
5.5.160.0100.00314.18
5.5.150.0060.00914.20
5.5.140.0100.00313.62
5.5.130.0070.00713.95
5.5.120.0060.00614.05
5.5.110.0030.01014.13
5.5.100.0070.00714.22
5.5.90.0090.00613.96
5.5.80.0060.00914.09
5.5.70.0070.00714.18
5.5.60.0090.00913.64
5.5.50.0060.00614.33
5.5.40.0080.00814.18
5.5.30.0000.01113.66
5.5.20.0080.00814.16
5.5.10.0070.00713.63
5.5.00.0030.01413.76
5.4.450.0150.02315.65
5.4.440.0180.02315.64
5.4.430.0210.02615.51
5.4.420.0120.02715.70
5.4.410.0130.02715.59
5.4.400.0080.02315.53
5.4.390.0180.02015.57
5.4.380.0230.02715.23
5.4.370.0180.03315.28
5.4.360.0180.02815.30
5.4.350.0250.02615.31
5.4.340.0220.03015.33
5.4.330.0070.00311.84
5.4.320.0060.02112.18
5.4.310.0060.02812.18
5.4.300.0040.02112.18
5.4.290.0080.02112.18
5.4.280.0100.02112.13
5.4.270.0040.02312.12
5.4.260.0080.01812.12
5.4.250.0050.02012.13
5.4.240.0030.02212.13
5.4.230.0030.02312.12
5.4.220.0040.02212.12
5.4.210.0070.01812.12
5.4.200.0070.02212.12
5.4.190.0040.02312.12
5.4.180.0040.02212.12
5.4.170.0050.02312.13
5.4.160.0020.02312.13
5.4.150.0050.02112.12
5.4.140.0050.02211.96
5.4.130.0070.02011.96
5.4.120.0050.01811.94
5.4.110.0050.02011.93
5.4.100.0040.02311.93
5.4.90.0030.02411.93
5.4.80.0060.02211.93
5.4.70.0070.02111.93
5.4.60.0050.02211.93
5.4.50.0040.01911.93
5.4.40.0040.02011.93
5.4.30.0040.01911.93
5.4.20.0040.02211.92
5.4.10.0020.02311.92
5.4.00.0060.02011.67
5.3.290.0080.03712.80
5.3.280.0050.03812.71
5.3.270.0100.03812.72
5.3.260.0080.03812.72
5.3.250.0060.03612.72
5.3.240.0040.04012.72
5.3.230.0060.03712.71
5.3.220.0080.03412.68
5.3.210.0050.04512.68
5.3.200.0060.03712.68
5.3.190.0050.03912.68
5.3.180.0060.03612.68
5.3.170.0090.03312.67
5.3.160.0050.03812.68
5.3.150.0070.03812.67
5.3.140.0070.03512.66
5.3.130.0070.04312.66
5.3.120.0060.03912.66
5.3.110.0050.04012.66
5.3.100.0030.04012.14
5.3.90.0080.03312.13
5.3.80.0030.03812.11
5.3.70.0080.03412.11
5.3.60.0070.03512.10
5.3.50.0020.04112.04
5.3.40.0060.03512.04
5.3.30.0080.04012.00
5.3.20.0050.03911.78
5.3.10.0090.03811.75
5.3.00.0050.03711.73
5.2.170.0070.0329.18
5.2.160.0070.0309.18
5.2.150.0060.0339.19
5.2.140.0070.0299.18
5.2.130.0040.0299.14
5.2.120.0040.0359.14
5.2.110.0050.0279.15
5.2.100.0040.0339.14
5.2.90.0050.0299.15
5.2.80.0080.0289.14
5.2.70.0050.0299.14
5.2.60.0060.0299.09
5.2.50.0060.0289.05
5.2.40.0060.0289.04
5.2.30.0050.0319.01
5.2.20.0040.0339.00
5.2.10.0020.0308.92
5.2.00.0060.0288.78
5.1.60.0040.0258.07
5.1.50.0020.0268.07
5.1.40.0040.0248.05
5.1.30.0050.0258.40
5.1.20.0060.0258.42
5.1.10.0050.0258.14
5.1.00.0060.0248.15
5.0.50.0070.0216.63
5.0.40.0040.0216.49
5.0.30.0050.0296.30
5.0.20.0060.0176.26
5.0.10.0060.0176.25
5.0.00.0050.0296.24
4.4.90.0040.0144.78
4.4.80.0000.0174.75
4.4.70.0030.0164.75
4.4.60.0030.0144.75
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0000.0184.76
4.4.20.0040.0144.85
4.4.10.0050.0134.84
4.4.00.0030.0244.76
4.3.110.0020.0164.67
4.3.100.0030.0144.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0050.0124.63
4.3.60.0040.0134.63
4.3.50.0030.0144.63
4.3.40.0030.0234.54
4.3.30.0010.0173.29
4.3.20.0010.0173.27
4.3.10.0010.0163.23
4.3.00.0030.01718.41

preferences:
40.65 ms | 401 KiB | 5 Q