3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => array ( 'rating_id' => 'rwp_rating_5b4da83f6b281', 'rating_post_id' => 343, 'rating_review_id' => '0', 'rating_score' => array ( 0 => 2.0, 1 => 2.0, 2 => 3.5, ), 'rating_user_id' => 0, 'rating_user_name' => 'Joep van Dongen', 'rating_user_email' => 'dongen.van.joep@gmail.com', 'rating_title' => 'Dit is een test beoordeling', 'rating_comment' => 'Dit is een test beoordeling', 'rating_images' => array ( ), 'rating_date' => 1531815999, 'rating_status' => 'published', 'rating_verified' => false, 'rating_template' => 'rwp_template_5b16a33aa16b7', 'rating_privacy' => array ( ), ), 1 => array ( 'rating_id' => 'rwp_rating_5bd0271605392', 'rating_post_id' => 343, 'rating_review_id' => '0', 'rating_score' => array ( 0 => 5.0, 1 => 5.0, 2 => 5.0, ), 'rating_user_id' => 4, 'rating_user_name' => '', 'rating_user_email' => '', 'rating_title' => 'Harry de Vries', 'rating_comment' => 'Dit is een testreview om te kijken of et werkrty', 'rating_images' => array ( ), 'rating_date' => 1540368150, 'rating_status' => 'published', 'rating_verified' => false, 'rating_template' => 'rwp_template_5b16a33aa16b7', 'rating_privacy' => array ( 't5bab7c0abed1f' => 'true', ), ), ); $new = array_intersect_key($arr,array_intersect(array_column($arr, 'rating_post_id'), [343])); Var_dump($new); Echo count($new);

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.5.00.0110.01019.86
8.4.150.0030.00014.05
8.4.140.0150.00817.48
8.4.130.0120.00818.76
8.4.120.0130.00823.93
8.4.110.0100.01018.03
8.4.100.0150.00618.83
8.4.90.0050.00422.57
8.4.80.0050.00318.91
8.4.70.0110.00717.91
8.4.60.0080.00418.95
8.4.50.0090.00520.31
8.4.40.0110.01119.46
8.4.30.0130.00719.41
8.4.20.0140.00720.18
8.4.10.0030.00617.86
8.3.280.0100.00918.50
8.3.270.0130.00716.42
8.3.260.0130.00616.50
8.3.250.0100.01019.05
8.3.240.0060.00417.26
8.3.230.0100.00916.59
8.3.220.0040.00419.04
8.3.210.0060.00316.52
8.3.200.0060.00316.54
8.3.190.0060.00519.11
8.3.180.0030.00617.06
8.3.170.0120.00620.75
8.3.160.0120.00616.34
8.3.150.0150.00716.82
8.3.140.0070.01116.51
8.3.130.0030.00618.60
8.3.120.0080.00018.87
8.3.110.0060.00320.94
8.3.100.0130.00624.06
8.3.90.0130.00726.77
8.3.80.0090.00017.97
8.3.70.0060.01216.75
8.3.60.0160.00020.02
8.3.50.0130.00518.10
8.3.40.0130.00318.89
8.3.30.0120.00418.62
8.3.20.0040.00423.52
8.3.10.0040.01123.72
8.3.00.0060.00323.74
8.2.290.0100.01020.57
8.2.280.0050.00418.36
8.2.270.0140.00517.36
8.2.260.0080.00016.70
8.2.250.0080.00016.58
8.2.240.0090.00017.25
8.2.230.0100.00022.58
8.2.220.0070.00337.54
8.2.210.0060.01326.77
8.2.200.0040.00718.41
8.2.190.0120.00318.35
8.2.180.0070.01118.16
8.2.170.0060.00922.96
8.2.160.0090.00619.14
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00519.83
8.2.120.0050.00326.35
8.2.110.0000.01022.20
8.2.100.0090.00317.73
8.2.90.0040.00420.61
8.2.80.0050.00318.03
8.2.70.0030.00718.05
8.2.60.0000.00918.09
8.2.50.0090.00018.10
8.2.40.0040.00421.08
8.2.30.0000.00719.32
8.2.20.0040.00418.07
8.2.10.0030.00620.70
8.2.00.0040.00419.35
8.1.330.0130.00622.25
8.1.320.0100.00915.93
8.1.310.0040.00716.31
8.1.300.0070.00317.86
8.1.290.0070.00430.84
8.1.280.0150.00325.92
8.1.270.0130.00320.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.54
8.1.230.0090.00320.86
8.1.220.0080.00017.74
8.1.210.0090.00018.90
8.1.200.0000.00917.36
8.1.190.0090.00019.01
8.1.180.0080.00018.10
8.1.170.0040.00418.70
8.1.160.0040.00418.91
8.1.150.0040.00418.91
8.1.140.0040.00423.82
8.1.130.0000.00720.16
8.1.120.0040.00417.38
8.1.110.0000.00817.49
8.1.100.0040.00717.53
8.1.90.0040.00417.48
8.1.80.0030.00617.54
8.1.70.0030.00317.48
8.1.60.0030.00617.60
8.1.50.0040.00417.58
8.1.40.0000.00817.57
8.1.30.0050.00317.58
8.1.20.0000.00917.63
8.1.10.0040.00417.38
8.1.00.0030.00517.49
8.0.300.0040.00420.04
8.0.290.0040.00716.75
8.0.280.0040.00418.41
8.0.270.0030.00317.27
8.0.260.0030.00520.32
8.0.250.0000.00716.95
8.0.240.0030.00516.86
8.0.230.0070.00016.77
8.0.220.0030.00316.73
8.0.210.0000.00716.85
8.0.200.0030.00316.79
8.0.190.0040.00416.79
8.0.180.0040.00416.84
8.0.170.0040.00416.96
8.0.160.0000.00816.84
8.0.150.0040.00416.92
8.0.140.0070.00016.89
8.0.130.0040.00413.34
8.0.120.0030.00616.83
8.0.110.0040.00416.86
8.0.100.0040.00416.68
8.0.90.0080.00017.02
8.0.80.0060.01216.89
8.0.70.0040.00416.80
8.0.60.0070.00016.76
8.0.50.0040.00416.90
8.0.30.0120.00917.20
8.0.20.0150.01017.40
8.0.10.0000.00816.91
8.0.00.0110.00816.96
7.4.330.0020.00216.67
7.4.320.0040.00416.54
7.4.300.0030.00516.52
7.4.290.0030.00316.51
7.4.280.0060.00316.65
7.4.270.0050.00216.48
7.4.260.0000.00716.43
7.4.250.0000.00816.49
7.4.240.0000.00716.47
7.4.230.0040.00416.42
7.4.220.0000.00816.71
7.4.210.0070.00816.56
7.4.200.0000.00816.62
7.4.160.0080.01116.57
7.4.140.0120.00917.86
7.4.130.0090.01716.38
7.4.120.0100.01216.69
7.4.110.0130.00716.58
7.4.100.0110.01116.53
7.4.90.0090.00916.51
7.4.80.0090.00919.39
7.4.70.0090.01216.57
7.4.60.0060.01216.36
7.4.50.0090.00616.48
7.4.40.0090.00916.41
7.4.00.0070.01014.90
7.3.330.0060.00012.94
7.3.320.0000.00513.11
7.3.310.0000.00716.30
7.3.300.0000.00716.04
7.3.290.0040.00416.24
7.3.280.0090.00816.19
7.3.260.0070.01216.36
7.3.240.0110.01016.27
7.3.230.0110.00816.42
7.3.210.0070.01016.21
7.3.200.0090.00916.22
7.3.190.0090.01316.41
7.3.180.0060.01016.14
7.3.170.0120.00616.32
7.3.160.0040.01216.41
7.3.00.0330.00614.26
7.2.330.0060.01216.44
7.2.320.0140.00616.50
7.2.310.0070.01716.53
7.2.300.0100.00716.78
7.2.290.0160.00316.41
7.2.130.0310.01614.88
7.2.120.0260.00914.59
7.2.110.0320.00914.82
7.2.100.0250.01314.81
7.2.90.0370.01214.96
7.2.80.0330.01014.69
7.2.70.0420.00315.20
7.2.60.0620.00315.08
7.2.50.1430.01015.11
7.2.40.0310.00715.04
7.2.30.0400.00314.79
7.2.20.0430.00915.11
7.2.10.0540.00315.06
7.2.00.0290.00615.10
7.1.250.0670.00713.82
7.0.330.0350.01413.50
5.6.380.0080.00814.05

preferences:
166.64 ms | 403 KiB | 5 Q