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); asort($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.00.0110.00714.98
7.3.120.0070.01014.83
7.3.110.0110.00714.80
7.3.100.0060.00914.90
7.3.90.0060.01214.93
7.3.80.0090.00614.74
7.3.70.0100.00714.49
7.3.60.0070.00714.84
7.3.50.0000.01414.75
7.3.40.0030.01014.89
7.3.30.0040.00714.91
7.3.20.0030.01016.50
7.3.10.0090.00016.38
7.3.00.0090.00616.63
7.2.250.0030.01315.28
7.2.240.0040.01515.28
7.2.230.0030.01615.18
7.2.220.0000.01914.54
7.2.210.0060.01015.06
7.2.200.0100.00615.17
7.2.190.0060.00915.21
7.2.180.0110.00414.79
7.2.170.0070.01114.96
7.1.330.0070.00715.75
7.1.320.0070.01015.90
7.1.310.0060.01115.50
7.1.300.0090.00615.78
7.1.290.0060.00315.76
7.1.280.0110.00415.84
7.1.270.0000.01715.61
7.1.260.0030.00615.91
7.1.70.0000.00816.93
7.1.60.0030.02119.46
7.1.50.0100.01417.03
7.1.00.0000.07322.42
7.0.200.0070.00016.69
7.0.140.0030.07021.98
7.0.60.0100.08019.92
7.0.50.0070.07017.82
7.0.40.0130.08320.23
7.0.30.0200.06720.16
7.0.20.0270.06020.16
7.0.10.0070.07720.12
7.0.00.0100.08720.29
5.6.280.0030.07720.89
5.6.210.0100.07720.65
5.6.200.0030.05718.27
5.6.190.0130.06320.67
5.6.180.0270.04020.39
5.6.170.0270.05320.50
5.6.160.0070.04720.57
5.6.150.0070.06718.16
5.6.140.0070.06318.27
5.6.130.0070.06318.15
5.6.120.0000.05321.00
5.6.110.0130.06320.98
5.6.100.0170.05320.96
5.6.90.0100.05020.88
5.6.80.0170.07320.39
5.6.70.0100.07720.43
5.5.350.0170.08320.44
5.5.340.0030.06017.99
5.5.330.0130.07320.28
5.5.320.0070.05020.20
5.5.310.0300.07720.27
5.5.300.0030.07317.98
5.5.290.0100.07717.95
5.5.280.0000.05020.95
5.5.270.0100.07320.98
5.5.260.0070.04020.68
5.5.250.0100.03720.69
5.5.240.0170.07020.14
5.4.450.0170.04319.48
5.4.440.0170.03319.52
5.4.430.0270.04319.63
5.4.420.0630.04719.41
5.4.410.0230.04719.26
5.4.400.0370.03719.20
5.4.390.0370.05019.22
5.4.380.0300.05718.56
5.4.370.0430.05018.73
5.4.360.0330.05718.57
5.4.350.0470.05318.61
5.4.340.0370.04718.61
5.4.320.0050.03612.52
5.4.310.0060.03812.51
5.4.300.0060.03712.52
5.4.290.0130.03112.52
5.4.280.0060.03512.41
5.4.270.0030.03812.41
5.4.260.0110.03212.41
5.4.250.0040.03912.41
5.4.240.0080.03312.41
5.4.230.0030.04012.40
5.4.220.0050.03712.41
5.4.210.0070.03512.40
5.4.200.0020.04312.40
5.4.190.0040.03712.39
5.4.180.0070.03512.40
5.4.170.0030.03912.41
5.4.160.0050.03712.41
5.4.150.0060.03612.40
5.4.140.0070.03512.09
5.4.130.0040.03712.07
5.4.120.0050.03512.03
5.4.110.0030.03712.03
5.4.100.0050.03512.03
5.4.90.0050.03712.03
5.4.80.0050.03712.03
5.4.70.0050.03512.02
5.4.60.0080.03112.03
5.4.50.0030.03712.02
5.4.40.0080.03212.01
5.4.30.0060.03612.01
5.4.20.0070.03312.00
5.4.10.0050.03512.01
5.4.00.0070.03411.50
5.3.290.0050.03912.80
5.3.280.0030.04012.71
5.3.270.0060.03812.73
5.3.260.0080.03612.72
5.3.250.0070.03512.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0060.03612.68
5.3.210.0070.03712.68
5.3.200.0080.03512.68
5.3.190.0060.04512.68
5.3.180.0080.04312.68
5.3.170.0040.03812.67
5.3.160.0050.04212.67
5.3.150.0040.03812.68
5.3.140.0050.03612.66
5.3.130.0050.04112.66
5.3.120.0050.04712.66
5.3.110.0090.04112.65
5.3.100.0070.03912.13
5.3.90.0100.03312.11
5.3.80.0070.03512.11
5.3.70.0020.03912.11
5.3.60.0050.03612.09
5.3.50.0070.03912.04
5.3.40.0050.03612.04
5.3.30.0050.03512.00
5.3.20.0020.03811.77
5.3.10.0070.03311.74
5.3.00.0070.03411.73
5.2.170.0060.0299.19
5.2.160.0050.0289.18
5.2.150.0050.0309.18
5.2.140.0060.0349.18
5.2.130.0100.0269.14
5.2.120.0040.0319.14
5.2.110.0080.0359.15
5.2.100.0040.0319.14
5.2.90.0060.0299.14
5.2.80.0070.0299.14
5.2.70.0040.0319.14
5.2.60.0050.0309.09
5.2.50.0040.0319.06
5.2.40.0030.0319.04
5.2.30.0050.0309.02
5.2.20.0040.0299.00
5.2.10.0070.0258.93
5.2.00.0060.0278.79
5.1.60.0100.0258.07
5.1.50.0060.0248.07
5.1.40.0030.0288.05
5.1.30.0040.0278.40
5.1.20.0060.0288.42
5.1.10.0050.0358.14
5.1.00.0060.0238.15
5.0.50.0040.0196.63
5.0.40.0040.0186.48
5.0.30.0030.0316.30
5.0.20.0060.0176.27
5.0.10.0030.0206.24
5.0.00.0040.0306.23
4.4.90.0030.0204.78
4.4.80.0010.0164.76
4.4.70.0030.0144.75
4.4.60.0030.0184.75
4.4.50.0000.0184.77
4.4.40.0050.0334.71
4.4.30.0050.0134.76
4.4.20.0010.0184.84
4.4.10.0040.0154.85
4.4.00.0010.0274.76
4.3.110.0030.0184.67
4.3.100.0020.0164.66
4.3.90.0000.0174.63
4.3.80.0020.0254.58
4.3.70.0060.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0020.0173.29
4.3.20.0020.0223.26
4.3.10.0000.0173.23
4.3.00.0070.01318.41

preferences:
34.47 ms | 401 KiB | 5 Q