3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array_intersect_assoc( array( '2015-01-01' => array(array('HORA' => '0600', 'MOTIVO' => 'teste')), '2015-01-02' => array(array('HORA' => '0600', 'MOTIVO' => 'teste'),array('HORA' => '0700', 'MOTIVO' => 'teste')), '2015-01-03' => array(array('HORA' => '0600', 'MOTIVO' => 'demo')) ), array( '2015-01-01' => array(array('HORA' => '0600', 'MOTIVO' => 'teste')), '2015-01-02' => array(array('HORA' => '0800', 'MOTIVO' => 'teste')), '2015-01-03' => array(array('HORA' => '0800', 'MOTIVO' => 'demo')) ) ); print_r($result);

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.70.0090.01216.60
8.3.60.0100.01016.63
8.3.50.0110.00821.20
8.3.40.0060.01318.65
8.3.30.0070.00718.58
8.3.20.0070.00020.18
8.3.10.0050.00321.82
8.3.00.0040.00421.95
8.2.180.0140.00316.63
8.2.170.0070.00722.96
8.2.160.0000.01420.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00020.75
8.2.120.0080.00026.35
8.2.110.0070.01322.25
8.2.100.0090.00317.92
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.68
8.2.50.0000.00818.09
8.2.40.0100.00020.46
8.2.30.0040.00419.36
8.2.20.0000.00817.59
8.2.10.0040.00417.87
8.2.00.0040.00417.97
8.1.280.0180.00325.92
8.1.270.0130.00722.18
8.1.260.0050.00328.09
8.1.250.0050.00228.09
8.1.240.0000.01023.80
8.1.230.0070.00417.82
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0080.00317.23
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0030.00618.51
8.1.160.0000.00720.66
8.1.150.0030.00618.77
8.1.140.0030.00519.52
8.1.130.0030.00317.54
8.1.120.0030.00317.33
8.1.110.0000.00717.42
8.1.100.0040.00417.28
8.1.90.0040.00417.27
8.1.80.0050.00317.44
8.1.70.0000.00717.41
8.1.60.0040.00417.48
8.1.50.0030.00617.44
8.1.40.0050.00217.36
8.1.30.0040.00417.59
8.1.20.0050.00317.41
8.1.10.0040.00417.54
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0000.00817.19
8.0.260.0040.00417.18
8.0.250.0040.00416.89
8.0.240.0040.00416.91
8.0.230.0030.00316.91
8.0.220.0060.00516.73
8.0.210.0080.00016.90
8.0.200.0000.00616.84
8.0.190.0000.00716.94
8.0.180.0110.00016.95
8.0.170.0000.00816.79
8.0.160.0040.00416.89
8.0.150.0070.00316.78
8.0.140.0000.00716.80
8.0.130.0050.00013.32
8.0.120.0030.00616.74
8.0.110.0080.00016.92
8.0.100.0040.00417.00
8.0.90.0040.00416.69
8.0.80.0060.00916.91
8.0.70.0030.00616.76
8.0.60.0040.00416.84
8.0.50.0070.00016.94
8.0.30.0090.00917.09
8.0.20.0130.01117.40
8.0.10.0070.00217.07
8.0.00.0100.00616.86
7.4.330.0050.00016.79
7.4.320.0000.00616.53
7.4.300.0030.00316.58
7.4.290.0000.00716.51
7.4.280.0000.00716.48
7.4.270.0000.00716.50
7.4.260.0070.00016.37
7.4.250.0050.00316.26
7.4.240.0000.00716.44
7.4.230.0000.00716.23
7.4.220.0110.00716.58
7.4.210.0050.01216.53
7.4.200.0000.00716.57
7.4.160.0120.00316.41
7.4.150.0110.01417.40
7.4.140.0090.00817.86
7.4.130.0100.00716.54
7.4.120.0120.00716.47
7.4.110.0030.01316.15
7.4.100.0060.01516.66
7.4.90.0140.00316.40
7.4.80.0100.00719.39
7.4.70.0030.01416.66
7.4.60.0130.00616.45
7.4.50.0030.01316.25
7.4.40.0060.01016.39
7.4.30.0090.00916.39
7.4.10.0040.01214.88
7.4.00.0140.00314.95
7.3.330.0020.00212.96
7.3.320.0000.00513.04
7.3.310.0000.00716.27
7.3.300.0030.00316.24
7.3.290.0040.00416.20
7.3.280.0110.00816.22
7.3.270.0070.01117.40
7.3.260.0130.00316.23
7.3.250.0110.00616.21
7.3.240.0090.00816.45
7.3.230.0030.01316.39
7.3.210.0080.00816.23
7.3.200.0120.00619.39
7.3.190.0100.00716.55
7.3.180.0100.01016.34
7.3.170.0100.00716.33
7.3.160.0080.00816.21
7.3.130.0030.01214.64
7.3.120.0090.00914.69
7.3.110.0040.01514.95
7.3.100.0060.01014.95
7.3.90.0070.00714.45
7.3.80.0040.01314.47
7.3.70.0050.00514.86
7.3.60.0130.00014.34
7.3.50.0070.00714.76
7.3.40.0100.00714.82
7.3.30.0050.00514.62
7.3.20.0030.01016.28
7.3.10.0090.00616.51
7.3.00.0060.00316.46
7.2.330.0070.01116.51
7.2.320.0120.00616.43
7.2.310.0060.01016.37
7.2.300.0100.00716.60
7.2.290.0170.00716.28
7.2.260.0070.01014.96
7.2.250.0040.01214.65
7.2.240.0110.00314.89
7.2.230.0100.00715.00
7.2.220.0100.00314.62
7.2.210.0090.00314.81
7.2.200.0070.00714.75
7.2.190.0040.00714.97
7.2.180.0040.00414.76
7.2.170.0040.00714.81
7.2.160.0080.00414.58
7.2.150.0000.01516.57
7.2.140.0090.00316.91
7.2.130.0040.00716.42
7.2.120.0070.00716.57
7.2.110.0090.00616.97
7.2.100.0040.01116.72
7.2.90.0110.00016.78
7.2.80.0060.00616.78
7.2.70.0040.00716.54
7.2.60.0030.01116.60
7.2.50.0060.00916.89
7.2.40.0030.01016.91
7.2.30.0070.00716.86
7.2.20.0060.01016.95
7.2.10.0030.01316.70
7.2.00.0030.01117.94
7.1.330.0120.00315.61
7.1.320.0070.00415.58
7.1.310.0030.00515.87
7.1.300.0030.01415.63
7.1.290.0070.00715.82
7.1.280.0060.00615.81
7.1.270.0050.00515.36
7.1.260.0000.01015.72
7.1.250.0070.00715.45
7.1.240.0100.00315.54
7.1.230.0110.00015.84
7.1.220.0040.00715.75
7.1.210.0070.00415.84
7.1.200.0080.00515.85
7.1.190.0060.00615.86
7.1.180.0030.00915.65
7.1.170.0090.00315.61
7.1.160.0080.00815.68
7.1.150.0040.01015.85
7.1.140.0000.01015.66
7.1.130.0030.00715.79
7.1.120.0000.00815.79
7.1.110.0090.00615.82
7.1.100.0030.00916.76
7.1.90.0030.00715.67
7.1.80.0030.00615.72
7.1.70.0080.00816.40
7.1.60.0080.00717.57
7.1.50.0100.00616.38
7.1.40.0030.00615.66
7.1.30.0060.00915.72
7.1.20.0040.00715.82
7.1.10.0030.00615.69
7.1.00.0030.04319.09
7.0.330.0000.01315.36
7.0.320.0090.00015.30
7.0.310.0000.00814.98
7.0.300.0040.00415.17
7.0.290.0000.01215.23
7.0.280.0120.00315.44
7.0.270.0100.00315.25
7.0.260.0040.01115.23
7.0.250.0130.00315.39
7.0.240.0120.00315.28
7.0.230.0030.01315.41
7.0.220.0070.00715.41
7.0.210.0030.00915.30
7.0.200.0300.00614.86
7.0.190.0080.00815.36
7.0.180.0030.00915.45
7.0.170.0000.01115.46
7.0.160.0030.00615.36
7.0.150.0040.00415.32
7.0.140.0110.00015.53
7.0.130.0000.00815.36
7.0.120.0060.00915.21
7.0.110.0090.00315.33
7.0.100.0040.00415.38
7.0.90.0080.00415.31
7.0.80.0060.00915.31
7.0.70.0000.01115.05
7.0.60.0190.04217.68
7.0.50.0090.04416.51
7.0.40.0100.02816.83
7.0.30.0170.01916.84
7.0.20.0170.03516.81
7.0.10.0060.02816.82
7.0.00.0140.03016.82
5.6.400.0060.00813.98
5.6.390.0030.00614.25
5.6.380.0030.00914.26
5.6.370.0120.00314.35
5.6.360.0060.00613.86
5.6.350.0080.00514.22
5.6.340.0070.00714.43
5.6.330.0040.00814.55
5.6.320.0150.00014.37
5.6.310.0030.01314.20
5.6.300.0030.01114.38
5.6.290.0040.01414.31
5.6.280.0050.02017.62
5.6.270.0120.00014.61
5.6.260.0040.01114.25
5.6.250.0070.00714.10
5.6.240.0030.00914.50
5.6.230.0060.00814.09
5.6.220.0060.00313.96
5.6.210.0080.02717.47
5.6.200.0100.03216.23
5.6.190.0060.04417.44
5.6.180.0150.03717.28
5.6.170.0120.02717.22
5.6.160.0070.03217.25
5.6.150.0070.02716.23
5.6.140.0050.04916.23
5.6.130.0100.03016.25
5.6.120.0100.02517.70
5.6.110.0110.04317.56
5.6.100.0030.03717.50
5.6.90.0110.03817.38
5.6.80.0050.04417.30
5.6.70.0080.00814.22
5.6.60.0070.00714.25
5.6.50.0040.00713.99
5.6.40.0100.00714.09
5.6.30.0070.01014.01
5.6.20.0030.00914.09
5.6.10.0000.01314.20
5.6.00.0090.00314.16
5.5.380.0000.01414.33
5.5.370.0100.00613.99
5.5.360.0050.00514.16
5.5.350.0160.04517.37
5.5.340.0060.03115.90
5.5.330.0090.04617.24
5.5.320.0270.02417.15
5.5.310.0220.03317.16
5.5.300.0050.04016.24
5.5.290.0050.04316.17
5.5.280.0120.04217.43
5.5.270.0070.03917.55
5.5.260.0090.03517.52
5.5.250.0140.04017.38
5.5.240.0130.02017.12
5.5.230.0060.00913.89
5.5.220.0060.00913.96
5.5.210.0030.00714.26
5.5.200.0070.01114.19
5.5.190.0040.01514.13
5.5.180.0100.00714.19
5.5.170.0030.00613.85
5.5.160.0030.01014.25
5.5.150.0000.01313.93
5.5.140.0000.00914.21
5.5.130.0070.00714.11
5.5.120.0070.00713.70
5.5.110.0100.00314.04
5.5.100.0070.00313.91
5.5.90.0070.00714.11
5.5.80.0100.00713.73
5.5.70.0060.01214.26
5.5.60.0100.00714.01
5.5.50.0160.00014.13
5.5.40.0060.01014.23
5.5.30.0100.00713.66
5.5.20.0030.01213.96
5.5.10.0070.00413.98
5.5.00.0030.01013.96

preferences:
47.34 ms | 401 KiB | 5 Q