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); foreach(array_filter($arr,function($v,$k){ return $k <= 15 && $k >= 10; },2) 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.2.00.0060.00619.48
7.1.70.0040.00417.02
7.1.60.0070.01719.46
7.1.50.0030.02017.07
7.1.00.0100.07022.37
7.0.200.0070.00316.75
7.0.140.0230.05722.08
7.0.120.0030.07722.05
7.0.110.0070.07721.96
7.0.100.0030.07022.11
7.0.90.0030.09321.93
7.0.80.0070.06722.14
7.0.70.0000.05321.99
7.0.60.0000.07022.05
7.0.50.0000.04021.99
7.0.40.0000.06720.01
7.0.30.0100.06720.10
7.0.20.0000.08020.06
7.0.10.0030.07719.92
7.0.00.0100.03319.96
5.6.270.0030.07721.04
5.6.260.0000.08020.93
5.6.250.0030.06720.91
5.6.240.0070.07721.00
5.6.230.0070.07321.04
5.6.220.0100.06321.03
5.6.210.0070.08020.87
5.6.200.0000.08720.79
5.6.190.0030.05020.97
5.6.180.0030.04720.81
5.6.170.0030.06320.97
5.6.160.0000.05720.89
5.6.150.0030.04020.80
5.6.140.0070.03720.75
5.6.130.0070.07020.74
5.6.120.0030.04020.88
5.6.110.0000.05721.00
5.6.100.0070.04320.77
5.6.90.0070.07720.96
5.6.80.0030.03720.40
5.6.70.0000.07720.25
5.6.60.0070.07020.07
5.6.50.0030.07320.42
5.6.40.0100.07320.14
5.6.30.0030.08020.32
5.6.20.0070.05320.22
5.6.10.0070.03320.13
5.6.00.0030.06720.23
5.5.380.0000.07717.60
5.5.370.0070.04717.55
5.5.360.0000.08017.46
5.5.350.0000.06317.50
5.5.340.0030.07317.91
5.5.330.0000.04018.13
5.5.320.0000.04317.96
5.5.310.0000.07717.91
5.5.300.0030.08718.11
5.5.290.0100.07718.04
5.5.280.0100.05717.91
5.5.270.0000.05318.13
5.5.260.0070.04717.90
5.5.250.0070.07717.90
5.5.240.0030.06717.52
5.5.230.0030.07017.51
5.5.220.0030.06317.43
5.5.210.0000.05317.48
5.5.200.0070.03317.57
5.5.190.0000.05317.49
5.5.180.0030.08017.48
5.5.160.0030.08017.19
5.5.150.0030.07717.28
5.5.140.0000.03717.46
5.5.130.0100.06717.18
5.5.120.0000.08317.43
5.5.110.0000.03717.25
5.5.100.0030.07717.41
5.5.90.0000.05017.16
5.5.80.0030.04317.34
5.5.70.0070.07017.34
5.5.60.0030.07317.17
5.5.50.0000.06717.29
5.5.40.0030.03317.17
5.5.30.0030.06717.47
5.5.20.0000.03717.15
5.5.10.0000.04017.19
5.5.00.0070.06017.48
5.4.450.0000.08019.37
5.4.440.0070.07319.31
5.4.430.0000.05719.28
5.4.420.0030.03719.30
5.4.410.0030.05719.09
5.4.400.0000.07719.04
5.4.390.0100.06318.95
5.4.380.0070.06318.95
5.4.370.0100.02718.96
5.4.360.0030.05019.18
5.4.350.0000.07018.96
5.4.340.0030.07319.11
5.4.320.0000.05319.08
5.4.310.0070.07018.90
5.4.300.0030.03718.96
5.4.290.0000.03718.97
5.4.280.0030.05018.93
5.4.270.0000.08018.94
5.4.260.0000.07719.08
5.4.250.0030.07019.26
5.4.240.0000.06019.27
5.4.230.0030.07319.13
5.4.220.0000.08319.18
5.4.210.0030.04018.93
5.4.200.0000.08019.13
5.4.190.0070.07018.95
5.4.180.0000.05719.16
5.4.170.0000.07719.11
5.4.160.0000.05318.93
5.4.150.0030.04319.11
5.4.140.0130.06316.58
5.4.130.0070.05716.41
5.4.120.0070.06716.31
5.4.110.0070.08016.43
5.4.100.0030.06716.42
5.4.90.0000.05016.50
5.4.80.0000.04316.38
5.4.70.0030.03316.52
5.4.60.0070.03716.29
5.4.50.0030.04016.49
5.4.40.0000.07016.55
5.4.30.0030.05716.49
5.4.20.0100.02716.20
5.4.10.0030.04016.44
5.4.00.0000.07715.71
5.3.290.0030.07714.66
5.3.280.0100.03014.63
5.3.270.0030.05314.63
5.3.260.0030.04314.70
5.3.250.0030.05014.78
5.3.240.0070.07014.74
5.3.230.0030.07014.62
5.3.220.0000.04714.67
5.3.210.0030.04714.71
5.3.200.0030.05714.57
5.3.190.0030.04314.59
5.3.180.0000.03714.57
5.3.170.0030.03714.80
5.3.160.0030.08714.72
5.3.150.0030.04714.61
5.3.140.0000.04014.53
5.3.130.0030.04014.41
5.3.120.0000.05314.55
5.3.110.0030.03714.65
5.3.100.0030.03714.09
5.3.90.0070.08314.26
5.3.80.0030.03314.05
5.3.70.0070.04714.05
5.3.60.0070.03314.04
5.3.50.0030.04314.09
5.3.40.0070.03313.91
5.3.30.0070.06313.98
5.3.20.0030.06013.93
5.3.10.0070.06713.68
5.3.00.0000.07713.63
5.2.170.0070.02311.08
5.2.160.0030.04311.20
5.2.150.0100.04010.93
5.2.140.0000.06311.11
5.2.130.0000.06711.04
5.2.120.0070.05711.00
5.2.110.0000.06311.00
5.2.100.0030.03711.25
5.2.90.0000.06311.26
5.2.80.0000.06310.89
5.2.70.0030.06011.00
5.2.60.0070.05010.95
5.2.50.0000.06310.95
5.2.40.0000.06010.89
5.2.30.0030.02710.91
5.2.20.0000.03310.89
5.2.10.0030.02711.08
5.2.00.0000.05710.71
5.1.60.0000.02710.13
5.1.50.0000.02310.25
5.1.40.0000.03010.13
5.1.30.0070.03710.42
5.1.20.0000.05310.26
5.1.10.0070.04310.13
5.1.00.0000.03010.13
5.0.50.0030.04310.13
5.0.40.0030.02310.13
5.0.30.0000.03310.13
5.0.20.0000.02010.13
5.0.10.0000.02310.13
5.0.00.0000.02710.13
4.4.90.0000.04310.13
4.4.80.0000.01310.13
4.4.70.0000.02710.13
4.4.60.0030.01310.13
4.4.50.0000.03310.13
4.4.40.0000.03310.13
4.4.30.0000.02710.13
4.4.20.0000.01710.13
4.4.10.0000.01710.13
4.4.00.0000.05710.13
4.3.110.0000.03310.13
4.3.100.0070.00710.13
4.3.90.0070.02710.13
4.3.80.0000.05010.13
4.3.70.0000.01310.13
4.3.60.0000.02310.13
4.3.50.0070.03010.13
4.3.40.0000.05710.13
4.3.30.0030.03710.13
4.3.20.0030.03310.13
4.3.10.0000.02710.13
4.3.00.0030.03310.13

preferences:
36.66 ms | 401 KiB | 5 Q