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($date as $k =>$v ){ foreach($arr as $k2 =>$v2 ){ 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.40.0120.00318.84
8.3.30.0140.00019.17
8.3.20.0050.00320.29
8.3.10.0070.00022.14
8.3.00.0040.00422.51
8.2.170.0110.00422.96
8.2.160.0100.00721.07
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0120.00626.16
8.2.120.0000.00819.38
8.2.110.0040.00422.25
8.2.100.0080.00419.64
8.2.90.0040.00419.17
8.2.80.0060.00319.77
8.2.70.0080.00017.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0030.00618.34
8.2.30.0080.00018.10
8.2.20.0000.00717.68
8.2.10.0080.00017.70
8.2.00.0000.00817.78
8.1.270.0060.00322.08
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0110.00019.12
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0050.00517.35
8.1.190.0000.00917.51
8.1.180.0000.00918.10
8.1.170.0080.00018.55
8.1.160.0000.00721.98
8.1.150.0040.00418.58
8.1.140.0040.00417.47
8.1.130.0040.00417.86
8.1.120.0050.00317.51
8.1.110.0040.00417.52
8.1.100.0050.00217.38
8.1.90.0040.00417.50
8.1.80.0000.00817.45
8.1.70.0030.00317.43
8.1.60.0050.00317.48
8.1.50.0050.00217.38
8.1.40.0040.00417.43
8.1.30.0000.00717.51
8.1.20.0030.00517.72
8.1.10.0030.00617.45
8.1.00.0030.00617.37
8.0.300.0080.00018.77
8.0.290.0070.00017.04
8.0.280.0000.00718.48
8.0.270.0000.00717.26
8.0.260.0030.00316.76
8.0.250.0030.00316.93
8.0.240.0050.00316.89
8.0.230.0070.00016.92
8.0.220.0030.00316.92
8.0.210.0070.00016.93
8.0.200.0030.00316.99
8.0.190.0040.00416.86
8.0.180.0030.00416.96
8.0.170.0060.00316.94
8.0.160.0040.00416.83
8.0.150.0000.00716.82
8.0.140.0040.00416.87
8.0.130.0000.00713.39
8.0.120.0000.00916.85
8.0.110.0040.00416.87
8.0.100.0000.00716.88
8.0.90.0000.00816.99
8.0.80.0120.00916.91
8.0.70.0070.00016.78
8.0.60.0050.00216.97
8.0.50.0030.00516.98
8.0.30.0120.01017.13
8.0.20.0110.00817.40
8.0.10.0090.00016.96
8.0.00.0130.00916.82
7.4.330.0000.00615.00
7.4.320.0000.00716.67
7.4.300.0030.00316.67
7.4.290.0050.00316.66
7.4.280.0000.00716.53
7.4.270.0030.00316.63
7.4.260.0000.00716.62
7.4.250.0040.00416.52
7.4.240.0000.00716.57
7.4.230.0000.00716.66
7.4.220.0090.00916.60
7.4.210.0070.00816.59
7.4.200.0030.00316.71
7.4.190.0070.00016.48
7.4.160.0080.00816.52
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0090.00916.52
7.4.120.0120.00716.48
7.4.110.0110.00516.44
7.4.100.0090.00916.55
7.4.90.0060.01016.54
7.4.80.0070.01719.39
7.4.70.0000.01716.39
7.4.60.0060.00916.46
7.4.50.0030.00516.60
7.4.40.0070.00722.77
7.4.30.0070.01016.53
7.4.00.0080.00815.01
7.3.330.0000.00513.25
7.3.320.0030.00313.26
7.3.310.0040.00416.43
7.3.300.0030.00316.24
7.3.290.0100.01316.29
7.3.280.0050.01216.36
7.3.270.0120.00617.40
7.3.260.0100.00716.64
7.3.250.0020.01516.52
7.3.240.0060.01116.40
7.3.230.0100.00616.43
7.3.210.0130.00316.34
7.3.200.0080.00819.39
7.3.190.0090.00916.59
7.3.180.0110.00416.28
7.3.170.0100.00616.56
7.3.160.0100.01016.50
7.3.120.0030.01214.83
7.3.110.0050.01014.84
7.3.100.0070.00714.76
7.3.90.0060.00714.88
7.3.80.0040.01114.84
7.3.70.0050.00714.96
7.3.60.0080.00614.91
7.3.50.0030.00814.82
7.3.40.0080.00814.71
7.3.30.0050.01214.88
7.3.20.0020.00916.54
7.3.10.0080.00516.47
7.3.00.0050.00916.59
7.2.330.0070.01016.83
7.2.320.0070.01716.63
7.2.310.0040.01516.69
7.2.300.0140.00316.75
7.2.290.0000.01616.66
7.2.250.0040.01515.30
7.2.240.0070.01115.10
7.2.230.0030.01214.75
7.2.220.0020.01615.15
7.2.210.0060.00815.00
7.2.200.0020.01115.13
7.2.190.0130.00015.06
7.2.180.0110.00315.07
7.2.170.0060.00815.00
7.2.160.0030.01015.30
7.2.150.0140.00017.12
7.2.140.0060.00816.91
7.2.130.0070.00716.55
7.2.120.0080.00516.88
7.2.110.0000.01416.96
7.2.100.0170.00017.05
7.2.90.0000.01617.01
7.2.80.0100.00716.93
7.2.70.0090.00316.79
7.2.60.0060.01216.85
7.2.50.0070.00716.64
7.2.40.0030.01016.81
7.2.30.0060.00917.10
7.2.20.0000.01416.89
7.2.10.0120.00317.02
7.2.00.0060.00718.01
7.1.330.0060.00715.73
7.1.320.0040.01315.90
7.1.310.0020.01115.70
7.1.300.0040.00815.70
7.1.290.0020.01115.80
7.1.280.0070.00415.59
7.1.270.0060.00715.84
7.1.260.0040.00915.77
7.1.250.0030.01415.90
7.1.100.0000.01518.37
7.1.70.0050.00317.20
7.1.60.0060.01919.82
7.1.50.0080.00316.84
7.1.00.0070.07322.45
7.0.200.0060.00616.80
7.0.140.0070.07722.10
7.0.60.0030.09319.91
7.0.50.0100.04717.89
7.0.40.0000.09720.24
7.0.30.0300.05320.30
7.0.20.0170.04020.07
7.0.10.0130.08320.06
7.0.00.0070.05320.17
5.6.280.0130.06721.05
5.6.210.0030.08020.54
5.6.200.0070.04718.25
5.6.190.0030.04720.61
5.6.180.0300.05020.41
5.6.170.0330.07320.71
5.6.160.0070.05720.57
5.6.150.0100.05318.19
5.6.140.0070.07318.22
5.6.130.0100.07318.23
5.6.120.0100.05021.15
5.6.110.0130.03720.93
5.6.100.0030.07020.92
5.6.90.0170.07721.13
5.6.80.0100.06020.54
5.6.70.4600.03020.38
5.5.350.0170.05720.46
5.5.340.0070.08018.07
5.5.330.0130.04020.13
5.5.320.0470.07320.51
5.5.310.0170.05020.23
5.5.300.0030.06017.97
5.5.290.0030.04718.08
5.5.280.0130.08020.79
5.5.270.0030.06020.89
5.5.260.0270.06720.85
5.5.250.0100.03720.72
5.5.240.0070.08320.18
5.4.450.1800.04019.30
5.4.440.0330.06019.48
5.4.430.0530.05319.12
5.4.420.0300.05319.56
5.4.410.0270.06019.39
5.4.400.0230.05318.78
5.4.390.0170.06718.63
5.4.380.0330.06018.61
5.4.370.0430.04718.75
5.4.360.0300.05718.59
5.4.350.0300.05018.75
5.4.340.0300.05718.59
5.4.320.0200.03512.55
5.4.310.0110.04712.54
5.4.300.0180.04612.55
5.4.290.0130.04212.54
5.4.280.0150.03612.44
5.4.270.0230.05718.87
5.4.260.0330.05718.92
5.4.250.0300.06018.82
5.4.240.0200.04718.95
5.4.230.0200.05719.08
5.4.220.0230.06318.80
5.4.210.0200.06318.98
5.4.200.0100.07019.06
5.4.190.0270.04718.97
5.4.180.0230.05019.01
5.4.170.0270.05018.92
5.4.160.0200.05719.09
5.4.150.0170.06319.02
5.4.140.0270.05716.58
5.4.130.0370.05716.71
5.4.120.0200.04716.66
5.4.110.0270.05016.68
5.4.100.0130.05316.69
5.4.90.0200.08016.68
5.4.80.0130.08016.70
5.4.70.0270.06716.42
5.4.60.0270.07016.65
5.4.50.0200.05316.43
5.4.40.0230.05016.48
5.4.30.0230.05316.55
5.4.20.0130.07316.66
5.4.10.0200.05716.65
5.4.00.0300.08316.20
5.3.290.0150.04412.80
5.3.280.0200.06314.91
5.3.270.0300.05014.84
5.3.260.0270.07714.93
5.3.250.0130.05314.84
5.3.240.0170.05014.84
5.3.230.0230.06014.94
5.3.220.0230.05014.89
5.3.210.0100.05714.91
5.3.200.0270.04714.91
5.3.190.0270.07314.79
5.3.180.0330.05314.88
5.3.170.0200.05314.89
5.3.160.0200.05014.68
5.3.150.0200.07014.80
5.3.140.0230.06314.67
5.3.130.0130.10314.80
5.3.120.0100.06714.91
5.3.110.0030.07014.91
5.3.100.0170.05314.14
5.3.90.0100.05314.24
5.3.80.0170.05714.07
5.3.70.0170.07014.27
5.3.60.0230.05314.25
5.3.50.0270.05714.31
5.3.40.0170.05714.12
5.3.30.0130.05714.16
5.3.20.0170.04313.80
5.3.10.0230.06013.76
5.3.00.0070.06313.88
5.2.170.0200.05311.48
5.2.160.0200.04711.25
5.2.150.0070.06711.25
5.2.140.0170.04011.50
5.2.130.0200.04011.04
5.2.120.0230.06011.41
5.2.110.0100.04311.44
5.2.100.0200.05311.44
5.2.90.0070.05711.33
5.2.80.0200.04711.20
5.2.70.0100.04311.20
5.2.60.0170.06311.16
5.2.50.0300.03311.37
5.2.40.0200.04011.26
5.2.30.0200.04011.07
5.2.20.0170.03711.13
5.2.10.0200.03011.09
5.2.00.0130.04710.98
5.1.60.0070.04010.39
5.1.50.0030.04010.39
5.1.40.0100.04010.39
5.1.30.0130.03310.39
5.1.20.0200.03310.68
5.1.10.0270.02710.39
5.1.00.0130.03310.39
5.0.50.0170.03310.39
5.0.40.0100.03710.39
5.0.30.0100.05010.39
5.0.20.0100.04010.39
5.0.10.0100.03710.39
5.0.00.0100.04010.39
4.4.90.0130.03010.39
4.4.80.0100.02710.39
4.4.70.0170.02710.39
4.4.60.0130.03010.39
4.4.50.0030.04010.39
4.4.40.0130.03310.39
4.4.30.0070.02310.39
4.4.20.0200.02310.39
4.4.10.0130.02310.39
4.4.00.0070.03710.39
4.3.110.0130.02710.39
4.3.100.0170.02710.39
4.3.90.0100.02310.39
4.3.80.0130.03710.39
4.3.70.0170.02010.39
4.3.60.0170.02710.39
4.3.50.0100.02710.39
4.3.40.0100.05310.39
4.3.30.0070.02710.39
4.3.20.0100.03010.39
4.3.10.0130.02310.39
4.3.00.0130.0204.44

preferences:
38.42 ms | 400 KiB | 5 Q