3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "username": "7291991451", "uid": "mfwUrskyhzVvzS16pS_a", "name": "Abhishek B", "status": "Active", "is_busy": true, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 2244, "yesterdays_mileage": 30498, "created_at": " 3/05/2016 5:14:12PM", "merchant_address": null, "merchant_id": null }, { "username": "7291991462", "uid": "G1knzKyuKoZK78CZySyA", "name": "Akash Gupta", "status": "Active", "is_busy": false, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": "18/05/2016 1:16:19PM", "merchant_address": null, "merchant_id": null }, { "username": "7291991456", "uid": "ndHsmz-BvyXfjv42MTyd", "name": "Ankur Sagar", "status": "Archived", "is_busy": false, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": " 3/05/2016 5:36:00PM", "merchant_address": null, "merchant_id": null }, { "username": "7503710039", "uid": "j-w2jxx14s6GgF_YkcFP", "name": "Annu Gupta", "status": "Archived", "is_busy": false, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": " 2/09/2016 12:59:13PM", "merchant_address": null, "merchant_id": null }, { "username": "9599380369", "uid": "KarAFisqeRpcr_xtEhEB", "name": "Arun Kumar", "status": "Active", "is_busy": true, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": " 5/05/2016 1:30:33PM", "merchant_address": null, "merchant_id": null }]'; $users = json_decode($json, true); $active = array_filter($users, function($user) { return $user['status'] != 'Archived'; }); print_r($active);

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.4.10.0030.00619.32
8.3.140.0090.00916.41
8.3.130.0030.00516.51
8.3.120.0100.01019.03
8.3.110.0110.01120.94
8.3.100.0090.00024.06
8.3.90.0110.00726.77
8.3.80.0060.00316.50
8.3.70.0070.01416.75
8.3.60.0040.01116.62
8.3.50.0070.01221.27
8.3.40.0160.00018.82
8.3.30.0060.01018.73
8.3.20.0080.00021.79
8.3.10.0040.00420.40
8.3.00.0040.00421.90
8.2.260.0050.00318.34
8.2.250.0070.01116.88
8.2.240.0100.00617.30
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0070.01126.77
8.2.200.0040.00716.50
8.2.190.0110.00416.58
8.2.180.0100.01025.92
8.2.170.0000.02019.04
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.94
8.2.110.0090.00022.30
8.2.100.0090.00317.85
8.2.90.0000.00818.34
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0070.00317.92
8.2.50.0080.00018.07
8.2.40.0040.00419.93
8.2.30.0040.00418.05
8.2.20.0050.00218.03
8.2.10.0020.00518.12
8.2.00.0000.00817.74
8.1.310.0040.00418.56
8.1.300.0130.00617.78
8.1.290.0090.00030.84
8.1.280.0170.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0090.00420.57
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0090.00018.63
8.1.160.0050.00318.85
8.1.150.0040.00418.91
8.1.140.0080.00019.64
8.1.130.0000.00717.76
8.1.120.0090.00017.48
8.1.110.0000.00717.48
8.1.100.0040.00417.51
8.1.90.0000.00817.48
8.1.80.0000.00717.43
8.1.70.0070.00017.34
8.1.60.0000.00817.62
8.1.50.0060.00317.54
8.1.40.0080.00017.55
8.1.30.0040.00417.57
8.1.20.0000.00817.66
8.1.10.0030.00517.43
8.1.00.0050.00217.34
8.0.300.0070.00020.04
8.0.290.0070.00216.63
8.0.280.0080.00018.43
8.0.270.0000.00717.09
8.0.260.0040.00417.23
8.0.250.0030.00316.77
8.0.240.0030.00316.84
8.0.230.0000.00716.94
8.0.220.0040.00416.86
8.0.210.0000.00716.77
8.0.200.0000.00616.92
8.0.190.0030.00616.96
8.0.180.0040.00416.83
8.0.170.0070.00016.92
8.0.160.0000.00816.86
8.0.150.0050.00216.84
8.0.140.0030.00316.82
8.0.130.0090.00013.27
8.0.120.0040.00416.70
8.0.110.0030.00716.82
8.0.100.0050.00316.76
8.0.90.0000.00816.82
8.0.80.0000.01616.91
8.0.70.0040.00416.91
8.0.60.0050.00216.99
8.0.50.0050.00316.80
8.0.30.0150.00417.05
8.0.20.0130.00517.40
8.0.10.0000.00716.91
8.0.00.0090.00916.63
7.4.330.0000.00515.21
7.4.320.0030.00316.42
7.4.300.0030.00316.56
7.4.290.0000.00716.39
7.4.280.0000.00816.59
7.4.270.0000.00716.52
7.4.260.0000.00716.40
7.4.250.0050.00216.53
7.4.240.0000.00716.51
7.4.230.0040.00416.61
7.4.220.0130.01016.58
7.4.210.0070.01316.55
7.4.200.0030.00516.50
7.4.160.0080.00716.31
7.4.150.0120.00617.40
7.4.140.0140.00417.86
7.4.130.0090.00916.65
7.4.120.0080.00916.43
7.4.110.0130.00316.26
7.4.100.0140.01016.29
7.4.90.0140.00316.43
7.4.80.0150.00319.39
7.4.70.0090.00916.26
7.4.60.0120.00316.49
7.4.50.0040.01116.56
7.4.40.0070.01116.54
7.4.30.0090.00916.55
7.4.10.0030.01514.61
7.4.00.0050.01114.85
7.3.330.0020.00313.29
7.3.320.0050.00013.30
7.3.310.0040.00416.22
7.3.300.0040.00416.21
7.3.290.0070.00716.25
7.3.280.0070.01116.24
7.3.270.0090.00717.40
7.3.260.0110.00916.48
7.3.250.0110.00716.27
7.3.240.0060.01216.39
7.3.230.0100.00716.39
7.3.210.0060.00916.26
7.3.200.0000.01516.36
7.3.190.0130.00716.38
7.3.180.0090.00916.23
7.3.170.0140.01116.55
7.3.160.0070.01116.33
7.3.130.0030.01414.70
7.3.120.0070.01114.72
7.3.110.0050.01114.74
7.3.100.0060.00714.74
7.3.90.0050.01014.65
7.3.80.0050.01014.77
7.3.70.0060.00714.57
7.3.60.0040.01014.85
7.3.50.0020.01014.80
7.3.40.0050.00614.67
7.3.30.0040.00814.71
7.3.20.0080.00816.46
7.3.10.0060.01016.47
7.3.00.0050.00816.69
7.2.330.0090.00916.74
7.2.320.0070.01416.79
7.2.310.0130.01016.51
7.2.300.0070.01116.41
7.2.290.0070.01416.80
7.2.260.0110.00714.84
7.2.250.0090.01014.97
7.2.240.0050.01015.08
7.2.230.0040.01014.89
7.2.220.0060.00515.00
7.2.210.0050.01014.95
7.2.200.0030.01015.03
7.2.190.0080.00715.00
7.2.180.0040.00914.95
7.2.170.0030.01214.84
7.2.160.0060.01014.77
7.2.150.0090.00616.94
7.2.140.0040.00416.60
7.2.130.0000.01116.62
7.2.120.0140.00016.75
7.2.110.0030.00916.88
7.2.100.0110.00416.71
7.2.90.0060.01016.88
7.2.80.0140.00316.74
7.2.70.0040.00816.81
7.2.60.0060.00716.86
7.2.50.0080.00316.59
7.2.40.0100.01016.73
7.2.30.0040.01116.75
7.2.20.0070.01116.81
7.2.10.0070.01016.81
7.2.00.0130.00016.61
7.1.330.0050.00915.69
7.1.320.0060.00715.79
7.1.310.0040.01015.73
7.1.300.0090.00415.76
7.1.290.0030.00715.67
7.1.280.0070.00215.75
7.1.270.0080.00515.70
7.1.260.0060.00815.81
7.1.250.0040.01115.96
7.1.240.0060.00915.79
7.1.230.0080.00815.87
7.1.220.0030.00615.52
7.1.210.0060.00815.68
7.1.200.0080.00415.66
7.1.190.0060.00615.91
7.1.180.0000.01215.96
7.1.170.0060.00915.56
7.1.160.0070.00315.73
7.1.150.0000.01415.65
7.1.140.0120.00615.75
7.1.130.0040.01115.73
7.1.120.0040.00815.74
7.1.110.0060.00615.89
7.1.100.0090.00615.74
7.1.90.0070.00315.63
7.1.80.0070.00715.62
7.1.70.0040.00616.55
7.1.60.0060.00816.51
7.1.50.0000.01415.74
7.1.40.0050.00515.81
7.1.30.0100.00315.70
7.1.20.0060.00915.85
7.1.10.0070.00315.80
7.1.00.0090.03619.07
7.0.330.0070.00315.39
7.0.320.0060.01015.25
7.0.310.0090.00315.56
7.0.300.0140.00715.41
7.0.290.0060.01215.40
7.0.280.0070.01015.41
7.0.270.0100.00715.35
7.0.260.0040.01215.38
7.0.250.0000.01615.34
7.0.240.0080.00615.48
7.0.230.0060.01015.27
7.0.220.0090.00615.34
7.0.210.0090.00615.49
7.0.200.0370.00514.88
7.0.190.0080.00815.43
7.0.180.0130.00015.56
7.0.170.0040.00815.29
7.0.160.0070.01015.50
7.0.150.0030.01015.29
7.0.140.0060.00615.46
7.0.130.0120.00015.55
7.0.120.0060.00315.22
7.0.110.0100.03017.83
7.0.100.0070.03317.77
7.0.90.0070.03317.88
7.0.80.0090.03117.90
7.0.70.0050.03317.80
7.0.60.0070.03017.77
7.0.50.0060.03317.77
7.0.40.0230.03016.95
7.0.30.0210.02816.83
7.0.20.0190.03216.93
7.0.10.0170.03416.80
7.0.00.0170.03416.87
5.6.400.0000.01614.54
5.6.390.0080.00814.31
5.6.380.0000.01614.29
5.6.370.0030.00614.18
5.6.360.0070.01014.64
5.6.350.0070.01014.57
5.6.340.0090.00614.33
5.6.330.0030.00914.61
5.6.320.0070.00414.49
5.6.310.0100.00614.50
5.6.300.0030.00714.60
5.6.290.0030.01014.46
5.6.280.0070.00414.54
5.6.270.0030.01014.47
5.6.260.0060.03117.79
5.6.250.0080.03217.59
5.6.240.0070.03517.59
5.6.230.0070.03517.64
5.6.220.0060.03317.61
5.6.210.0070.03217.65
5.6.200.0070.03217.82
5.6.190.0060.03517.79
5.6.180.0080.03017.81
5.6.170.0100.02717.52
5.6.160.0060.03117.69
5.6.150.0050.03417.72
5.6.140.0030.03817.52
5.6.130.0080.03217.74
5.6.120.0070.03417.59
5.6.110.0110.02817.53
5.6.100.0080.03317.71
5.6.90.0120.02717.75
5.6.80.0070.03417.15
5.6.70.0120.02617.28
5.6.60.0060.03317.16
5.6.50.0080.02817.32
5.6.40.0100.03617.36
5.6.30.0080.03017.32
5.6.20.0120.03917.29
5.6.10.0100.03017.09
5.6.00.0120.02917.37

preferences:
19.07 ms | 403 KiB | 5 Q