3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' [ { "id": "11", "from_userid": "1996", "contest_id": "29", "to_userid": "8", "vote_date": "2020-10-06 01:40:04", "count_votes": "1" }, { "id": "1", "from_userid": "82", "contest_id": "29", "to_userid": "94", "vote_date": "2020-09-03 07:06:36", "count_votes": "1" }, { "id": "2", "from_userid": "82", "contest_id": "29", "to_userid": "98", "vote_date": "2020-09-03 07:06:36", "count_votes": "0" } ]'; $arr = json_decode($json, true); $max = max(array_column($arr, 'count_votes')); $out = array_filter($arr, function ($o) use ($max) { return $o['count_votes'] == $max; }); print_r($out);

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.130.0110.00917.50
8.4.120.0100.01020.49
8.4.110.0100.00919.62
8.4.100.0140.00618.50
8.4.90.0120.00822.41
8.4.80.0070.00119.00
8.4.70.0110.01218.88
8.4.60.0090.01220.48
8.4.50.0140.00819.38
8.4.40.0130.00717.86
8.4.30.0140.00718.59
8.4.20.0070.01319.50
8.4.10.0040.00420.56
8.3.260.0070.00116.66
8.3.250.0100.00618.84
8.3.240.0050.00316.53
8.3.230.0040.00516.57
8.3.220.0020.00518.77
8.3.210.0110.00916.45
8.3.200.0030.00616.76
8.3.190.0100.00917.49
8.3.180.0120.00816.61
8.3.170.0060.00316.96
8.3.160.0040.00418.54
8.3.150.0140.00020.71
8.3.140.0120.00616.70
8.3.130.0030.00618.37
8.3.120.0060.01318.86
8.3.110.0060.00316.63
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0070.00416.50
8.3.70.0120.00316.75
8.3.60.0110.01118.40
8.3.50.0100.00723.54
8.3.40.0040.01121.95
8.3.30.0100.01018.90
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.290.0090.00920.27
8.2.280.0050.00320.22
8.2.270.0090.00917.38
8.2.260.0040.01119.04
8.2.250.0000.00817.38
8.2.240.0090.00618.73
8.2.230.0090.00920.94
8.2.220.0040.00437.54
8.2.210.0070.00726.77
8.2.200.0060.00316.50
8.2.190.0150.00316.58
8.2.180.0140.00725.92
8.2.170.0120.00619.10
8.2.160.0110.00622.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0030.00720.38
8.2.100.0040.00817.84
8.2.90.0050.00317.63
8.2.80.0030.00518.74
8.2.70.0060.00317.75
8.2.60.0080.00017.93
8.2.50.0000.00818.05
8.2.40.0040.00418.34
8.2.30.0030.00618.15
8.2.20.0100.00018.13
8.2.10.0040.00419.28
8.2.00.0070.00019.17
8.1.330.0100.00916.06
8.1.320.0100.00915.89
8.1.310.0030.00516.79
8.1.300.0030.00618.59
8.1.290.0090.00018.88
8.1.280.0060.00825.92
8.1.270.0000.00723.99
8.1.260.0090.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00322.17
8.1.230.0070.00422.61
8.1.220.0030.00617.76
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0030.00518.66
8.1.160.0030.00518.82
8.1.150.0070.00318.84
8.1.140.0000.00818.82
8.1.130.0000.00721.84
8.1.120.0000.00717.43
8.1.110.0030.00617.38
8.1.100.0050.00217.54
8.1.90.0070.00017.37
8.1.80.0020.00517.48
8.1.70.0000.00717.40
8.1.60.0030.00617.61
8.1.50.0050.00317.53
8.1.40.0000.00917.55
8.1.30.0070.00017.67
8.1.20.0000.00817.58
8.1.10.0120.00617.56
8.1.00.0120.00717.46
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0040.00417.98
8.0.260.0000.00820.23
8.0.250.0040.00416.99
8.0.240.0000.00817.00
8.0.230.0040.00416.96
8.0.220.0030.00516.86
8.0.210.0030.00316.91
8.0.200.0000.00716.96
8.0.190.0080.00016.92
8.0.180.0040.00416.95
8.0.170.0040.00416.80
8.0.160.0060.00316.93
8.0.150.0030.00516.73
8.0.140.0040.00416.88
8.0.130.0100.00415.05
8.0.120.0090.00516.78
8.0.110.0070.00716.82
8.0.100.0100.00516.85
8.0.90.0120.00416.83
8.0.80.0090.00816.81
8.0.70.0060.00916.85
8.0.60.0060.00916.95
8.0.50.0090.00616.81
8.0.30.0150.00517.06
8.0.20.0140.00616.91
8.0.10.0090.00516.87
8.0.00.0070.00816.94
7.4.330.0050.00015.55
7.4.320.0000.00616.51
7.4.300.0030.00316.51
7.4.290.0040.00416.55
7.4.280.0000.00816.52
7.4.270.0060.00316.59
7.4.260.0070.00414.96
7.4.250.0070.00416.42
7.4.240.0080.00416.52
7.4.230.0110.00316.53
7.4.220.0050.00616.55
7.4.210.0080.00716.56
7.4.200.0080.00416.41
7.4.190.0150.00816.56
7.4.180.0200.00316.57
7.4.160.0120.00716.67
7.4.150.0170.00016.36
7.4.140.0070.00716.48
7.4.130.0090.00716.47
7.4.120.0140.00916.57
7.4.110.0160.00416.43
7.4.100.0150.00616.43
7.4.90.0120.00716.42
7.4.80.0110.00916.56
7.4.70.0150.00516.46
7.4.60.0110.00816.53
7.4.50.0150.00516.36
7.4.40.0080.01016.58
7.4.30.0060.00916.45
7.4.20.0110.00716.48
7.4.10.0090.01216.44
7.4.00.0180.00516.53
7.3.330.0050.00416.29
7.3.320.0110.00114.87
7.3.310.0050.00616.31
7.3.300.0070.00316.24
7.3.290.0100.00716.35
7.3.280.0190.00016.29
7.3.270.0170.00416.35
7.3.260.0120.01216.32
7.3.250.0200.00316.15
7.3.240.0170.00316.29
7.3.230.0110.00916.40
7.3.220.0160.00616.36
7.3.210.0130.00816.35
7.3.200.0110.00916.44
7.3.190.0090.01016.30
7.3.180.0150.00616.33
7.3.170.0140.00516.44
7.3.160.0110.00816.31
7.3.150.0110.00916.30
7.3.140.0120.01016.28
7.3.130.0130.00816.26
7.3.120.0160.00616.36
7.3.110.0130.00816.32
7.3.100.0170.00516.16
7.3.90.0120.00816.52
7.3.80.0140.00816.29
7.3.70.0120.01016.35
7.3.60.0110.00816.42
7.3.50.0120.00916.45
7.3.40.0080.01016.42
7.3.30.0100.00916.34
7.3.20.0110.00916.46
7.3.10.0280.01016.48
7.3.00.0140.00716.47
7.2.340.0090.01416.55
7.2.330.0130.00916.38
7.2.320.0110.00916.34
7.2.310.0140.00616.51
7.2.300.0080.01116.59
7.2.290.0140.00716.56
7.2.280.0130.00616.51
7.2.270.0120.00716.48
7.2.260.0120.00616.54
7.2.250.0170.00316.51
7.2.240.0130.00616.61
7.2.230.0130.01116.43
7.2.220.0100.01216.46
7.2.210.0090.01316.51
7.2.200.0120.00816.57
7.2.190.0140.00716.61
7.2.180.0100.01016.53
7.2.170.0130.00516.51
7.2.160.0130.00516.48
7.2.150.0120.00716.63
7.2.140.0160.00416.54
7.2.130.0160.00716.79
7.2.120.0170.00516.72
7.2.110.0130.00716.61
7.2.100.0140.00516.65
7.2.90.0100.01016.70
7.2.80.0110.00916.54
7.2.70.0100.01016.59
7.2.60.0130.00916.73
7.2.50.0150.00616.52
7.2.40.0150.00616.67
7.2.30.0140.00916.54
7.2.20.0170.00616.57
7.2.10.0150.01016.66
7.2.00.0180.00616.67

preferences:
26.84 ms | 403 KiB | 5 Q