3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array( array("count"=>10,"date"=>"2014-04-16"), array("count"=>50,"date"=>"2014-04-18"), array("count"=>80,"date"=>"2014-04-20") ); $date =array("2014-04-16","2014-04-17","2014-04-18","2014-04-19","2014-04-20"); foreach($arr as $k =>$v ){ //if(!array_key_exists($v['date'],$date)){ // $arr[]=array("count"=>0,"date"=>$date) //} $tt[]=$v['date']; } foreach($arr as $k2 =>$v2 ){foreach($date as $k =>$v ){ if(!array_key_exists($v,$tt)){ $arr[]=array("count"=>0,"date"=>$v); } } } print_r($arr); //对应$date所有日期转换为 $arr=array( array("count"=>10,"date"=>"2014-04-16"), array("count"=>0,"date"=>"2014-04-17"), array("count"=>50,"date"=>"2014-04-18"), array("count"=>0,"date"=>"2014-04-19"), array("count"=>80,"date"=>"2014-04-20") );

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.3.60.0090.00916.75
8.3.50.0240.00916.29
8.3.40.0000.01418.84
8.3.30.0040.01118.84
8.3.20.0040.00418.87
8.3.10.0030.00618.77
8.3.00.0150.00419.13
8.2.180.0100.01016.75
8.2.170.0090.00622.96
8.2.160.0080.00818.79
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00621.18
8.2.110.0100.00019.33
8.2.100.0130.00017.91
8.2.90.0060.00317.75
8.2.80.0090.00318.73
8.2.70.0050.00317.63
8.2.60.0000.00817.63
8.2.50.0000.00817.80
8.2.40.0060.00319.47
8.2.30.0040.00417.74
8.2.20.0100.00017.69
8.2.10.0000.00717.62
8.2.00.0040.00417.86
8.1.280.0160.00025.92
8.1.270.0020.00523.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00419.44
8.1.230.0070.00421.03
8.1.220.0000.00818.70
8.1.210.0030.00618.77
8.1.200.0000.00817.23
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0000.00718.89
8.1.150.0040.00418.56
8.1.140.0050.00317.33
8.1.130.0000.00719.11
8.1.120.0020.00517.50
8.1.110.0000.00817.42
8.1.100.0070.00017.38
8.1.90.0030.00517.48
8.1.80.0040.00417.48
8.1.70.0050.00317.38
8.1.60.0040.00417.49
8.1.50.0000.00717.47
8.1.40.0060.00317.55
8.1.30.0060.00317.61
8.1.20.0000.00717.50
8.1.10.0050.00217.37
8.1.00.0030.00517.30
8.0.300.0030.00618.77
8.0.290.0030.00616.75
8.0.280.0000.00818.48
8.0.270.0030.00317.16
8.0.260.0060.00016.82
8.0.250.0030.00616.96
8.0.240.0050.00217.00
8.0.230.0000.00816.82
8.0.220.0040.00416.75
8.0.210.0050.00216.89
8.0.200.0000.00717.02
8.0.190.0000.00716.98
8.0.180.0050.00216.92
8.0.170.0030.00516.94
8.0.160.0030.00316.93
8.0.150.0030.00616.84
8.0.140.0040.00416.90
8.0.130.0030.00313.39
8.0.120.0050.00516.86
8.0.110.0000.00716.88
8.0.100.0040.00416.82
8.0.90.0000.00716.89
8.0.80.0000.01716.81
8.0.70.0040.00416.78
8.0.60.0030.00516.90
8.0.50.0000.00716.88
8.0.30.0030.01217.12
8.0.20.0080.01416.98
8.0.10.0080.00017.04
8.0.00.0100.00716.73
7.4.330.0000.00612.92
7.4.320.0000.00716.65
7.4.300.0000.00716.41
7.4.290.0030.00516.59
7.4.280.0040.00416.46
7.4.270.0030.00316.62
7.4.260.0000.00613.30
7.4.250.0040.00416.62
7.4.240.0040.00416.50
7.4.230.0000.00716.40
7.4.220.0120.00916.61
7.4.210.0120.00916.63
7.4.200.0030.00416.39
7.4.190.0030.00616.55
7.4.160.0110.00716.75
7.4.150.0140.00916.45
7.4.140.0120.00617.86
7.4.130.0130.01316.62
7.4.120.0090.00916.63
7.4.110.0100.00716.64
7.4.100.0080.01516.39
7.4.90.0080.01216.59
7.4.80.0130.00319.39
7.4.70.0110.00616.40
7.4.60.0130.01016.47
7.4.50.0090.00016.54
7.4.40.0080.00516.62
7.4.30.0100.00616.63
7.4.00.0090.00615.07
7.3.330.0030.00313.16
7.3.320.0000.00613.11
7.3.310.0030.00316.28
7.3.300.0040.00416.32
7.3.290.0080.00716.33
7.3.280.0070.00716.34
7.3.270.0140.00416.61
7.3.260.0030.01416.34
7.3.240.0070.01816.54
7.3.230.0070.01016.34
7.3.210.0130.00316.45
7.3.200.0040.01616.34
7.3.190.0130.00316.38
7.3.180.0090.00616.24
7.3.170.0090.00916.43
7.3.160.0100.01016.52
7.3.120.0030.01414.92
7.3.110.0070.00715.10
7.3.100.0080.00515.09
7.3.90.0070.00714.83
7.3.80.0040.00715.07
7.3.70.0030.01414.97
7.3.60.0090.00314.94
7.3.50.0090.00614.94
7.3.40.0030.01014.96
7.3.30.0030.01014.61
7.3.20.0030.00716.70
7.3.10.0060.00916.29
7.3.00.0030.01316.79
7.2.330.0100.00716.58
7.2.320.0040.01616.71
7.2.310.0070.01116.61
7.2.300.0100.00716.55
7.2.290.0120.00616.61
7.2.240.0090.00614.92
7.2.230.0030.01315.10
7.2.220.0100.00015.10
7.2.210.0030.01315.01
7.2.200.0080.00314.99
7.2.190.0000.01414.93
7.2.180.0100.00315.08
7.2.170.0090.00614.77
7.2.160.0040.00914.99
7.2.150.0110.00717.08
7.2.140.0070.01017.02
7.2.130.0030.01316.84
7.2.120.0030.01016.62
7.2.110.0060.01016.74
7.2.100.0040.00716.87
7.2.90.0100.00716.97
7.2.80.0070.01116.94
7.2.70.0110.00716.79
7.2.60.0040.01116.86
7.2.50.0030.00917.00
7.2.40.0090.00916.98
7.2.30.0030.01316.85
7.2.20.0060.00617.20
7.2.10.0060.01016.91
7.2.00.0050.01018.07
7.1.330.0080.00316.05
7.1.320.0080.00815.76
7.1.310.0000.01415.95
7.1.300.0040.01115.76
7.1.290.0090.00615.88
7.1.280.0110.00715.61
7.1.270.0000.01415.85
7.1.260.0030.00616.00
7.1.250.0030.00715.93
7.1.100.0030.00617.99
7.1.70.0000.01117.07
7.1.60.0110.01519.25
7.1.50.0130.01017.05
7.1.00.0030.07722.45
7.0.200.0030.00516.79
7.0.140.0100.07022.07
7.0.120.0130.06322.25
7.0.110.0070.05720.11
7.0.100.0070.04319.87
7.0.90.0000.08719.84
7.0.80.0100.07019.93
7.0.70.0030.08019.84
7.0.60.0100.08019.98
7.0.50.0130.08020.06
7.0.40.0070.07019.86
7.0.30.0130.06019.72
7.0.20.0070.08319.84
7.0.10.0100.07719.77
7.0.00.0130.06719.82
5.6.280.0130.06720.91
5.6.260.0100.03320.74
5.6.250.0070.07720.59
5.6.240.0070.05720.68
5.6.230.0200.08020.70
5.6.220.0170.07320.68
5.6.210.0070.08320.62
5.6.200.0130.08320.57
5.6.190.0100.04020.56
5.6.180.0130.06320.48
5.6.170.0000.09020.57
5.6.160.0100.08020.55
5.6.150.0130.07720.65
5.6.140.0130.07720.64
5.6.130.0070.08320.86
5.6.120.0130.07720.59
5.6.110.0100.07720.64
5.6.100.0130.04720.57
5.6.90.0030.08320.63
5.6.80.0200.07719.96
5.6.70.0100.07020.01
5.6.60.0070.05720.08
5.6.50.0030.08319.85
5.6.40.0070.08320.01
5.6.30.0100.04319.95
5.6.20.0100.07720.03
5.6.10.0070.05019.95
5.6.00.0100.03319.93
5.5.380.0070.05020.32
5.5.370.0030.08720.29
5.5.360.0170.04320.57
5.5.350.0070.05320.47
5.5.340.0130.08020.91
5.5.330.0200.06721.04
5.5.320.0070.08020.75
5.5.310.0170.06020.81
5.5.300.0030.05320.81
5.5.290.0170.06720.97
5.5.280.0130.08320.83
5.5.270.0170.07020.95
5.5.260.0170.07020.83
5.5.250.0100.05020.77
5.5.240.0170.07320.09
5.5.230.0100.04720.27
5.5.220.0030.05320.36
5.5.210.0100.07320.35
5.5.200.0030.08320.32
5.5.190.0070.06720.22
5.5.180.0070.04020.30
5.5.160.0070.08020.09
5.5.150.0070.06720.30
5.5.140.0070.06720.04
5.5.130.0030.09020.34
5.5.120.0100.08320.09
5.5.110.0170.07020.23
5.5.100.0230.06320.16
5.5.90.0070.08020.19
5.5.80.0100.07720.28
5.5.70.0100.04720.14
5.5.60.0100.07319.99
5.5.50.0130.07020.01
5.5.40.0070.04720.04
5.5.30.0030.07320.04
5.5.20.0100.03720.23
5.5.10.0100.07320.01
5.5.00.0000.08020.03
5.4.450.0100.04319.34
5.4.440.0000.05719.64
5.4.430.0200.06319.46
5.4.420.0100.08019.27
5.4.410.0100.06719.23
5.4.400.0070.08019.01
5.4.390.0130.07319.05
5.4.380.0100.07719.18
5.4.370.0130.06719.01
5.4.360.0070.08019.18
5.4.350.0100.07019.31
5.4.340.0030.07019.11
5.4.320.0030.07718.93
5.4.310.0070.06019.06
5.4.300.0200.06719.00
5.4.290.0070.07719.16
5.4.280.0100.07319.18
5.4.270.0100.04318.98
5.4.260.0000.04319.24
5.4.250.0070.08019.23
5.4.240.0130.07319.27
5.4.230.0100.07019.24
5.4.220.0100.06319.02
5.4.210.0030.06319.02
5.4.200.0030.07319.18
5.4.190.0100.06718.97
5.4.180.0100.07019.21
5.4.170.0000.04718.98
5.4.160.0030.03318.96
5.4.150.0100.04318.96
5.4.140.0030.03716.59
5.4.130.0130.04716.44
5.4.120.0000.03716.46
5.4.110.0000.04016.57
5.4.100.0070.03016.46
5.4.90.0130.05716.48
5.4.80.0070.05716.43
5.4.70.0100.07016.65
5.4.60.0070.05016.44
5.4.50.0070.07016.28
5.4.40.0070.03316.49
5.4.30.0030.07716.58
5.4.20.0030.03716.25
5.4.10.0130.06716.49
5.4.00.0100.07015.95
5.3.290.0070.06714.66
5.3.280.0100.07314.75
5.3.270.0100.07314.63
5.3.260.0030.07714.64
5.3.250.0100.07014.70
5.3.240.0070.07314.47
5.3.230.0000.08314.63
5.3.220.0030.07314.71
5.3.210.0070.06314.66
5.3.200.0030.05314.70
5.3.190.0030.06314.71
5.3.180.0130.03314.55
5.3.170.0070.03014.66
5.3.160.0100.03014.59
5.3.150.0030.04314.57
5.3.140.0070.04314.64
5.3.130.0100.05314.54
5.3.120.0070.07714.57
5.3.110.0070.07314.50
5.3.100.0100.07314.20
5.3.90.0070.07714.18
5.3.80.0070.07714.05
5.3.70.0070.07014.17
5.3.60.0000.05313.87
5.3.50.0000.04013.98
5.3.40.0070.08013.83
5.3.30.0030.07313.94
5.3.20.0070.07713.93
5.3.10.0070.08013.75
5.3.00.0030.06713.71
5.2.170.0070.06011.88
5.2.160.0170.05011.88
5.2.150.0070.03711.88
5.2.140.0070.06011.88
5.2.130.0030.04711.88
5.2.120.0100.05311.88
5.2.110.0130.05711.88
5.2.100.0100.05011.88
5.2.90.0030.03311.88
5.2.80.0030.07011.88
5.2.70.0030.06311.88
5.2.60.0070.05711.88
5.2.50.0070.05011.88
5.2.40.0000.05711.88
5.2.30.0100.06011.88
5.2.20.0030.05011.88
5.2.10.0070.03711.88
5.2.00.0170.04711.88
5.1.60.0000.05711.88
5.1.50.0130.04711.88
5.1.40.0030.02311.88
5.1.30.0030.04011.88
5.1.20.0030.02711.88
5.1.10.0000.04711.88
5.1.00.0130.05011.88
5.0.50.0030.04711.88
5.0.40.0100.01711.88
5.0.30.0030.06311.88
5.0.20.0100.03711.88
5.0.10.0030.02311.88
5.0.00.0100.06011.88
4.4.90.0030.03311.88
4.4.80.0000.02011.88
4.4.70.0070.02311.88
4.4.60.0070.01311.88
4.4.50.0070.03011.88
4.4.40.0100.01311.88
4.4.30.0000.01711.88
4.4.20.0030.03011.88
4.4.10.0030.03311.88
4.4.00.0070.02711.88
4.3.110.0030.02711.88
4.3.100.0000.03711.88
4.3.90.0070.02311.88
4.3.80.0030.05311.88
4.3.70.0070.03011.88
4.3.60.0000.03711.88
4.3.50.0030.02711.88
4.3.40.0000.03011.88
4.3.30.0000.04011.88
4.3.20.0000.03711.88
4.3.10.0070.03011.88
4.3.00.0070.03011.88

preferences:
51.29 ms | 401 KiB | 5 Q