3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( "0" => array ( "q_status" => "Closed", "q_is_refunded" => "No", "qb_bid_status" => "2", "u_user_type" => "Tutor", "total_tutor" => "1", "target_date" => "0000-00-00 00:00:00", "bid_price" => "50.00", "users_id" => "3", "profile_image" => "http://localhost/studygate/WS/image_resize/?pic=aHR0cDovL2xvY2FsaG9zdC9zdHVkeWdhdGUvcHVibGljL2ltYWdlcy9ub2ltYWdlLmdpZg==&height=110&width=110&color=FFFFFF", "first_name" => "Carlene", "last_name" => "Poblete", "added_date" => "2016-10-25 11:20:00", "question_id" => "1" ), "1" => array ( "q_status" => "Closed", "q_is_refunded" => "No", "qb_bid_status" => "2", "u_user_type" => "Tutor", "total_tutor" => "1", "target_date" => "0000-00-00 00:00:00", "bid_price" => "80.00", "users_id" => "12", "profile_image" => "http://localhost/studygate/WS/age_resize/?pic=aHR0cDovL2xvY2FsaG9zdC9zdHVkeWdhdGUv", "first_name" => "George", "last_name" => "Henry", "added_date" => "2016-10-24 20:24:30", "question_id" => "2" ) ); //$arr = array_filter($array,function($v,$k){return $v['bid_price'] > 15;}); $arr = array_filter($array, function($v, $k) { return $v['bid_price'] < 60; },ARRAY_FILTER_USE_BOTH); sort($arr); print_r($arr);

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.60.0170.00318.20
8.3.50.0060.00816.11
8.3.40.0000.01518.79
8.3.30.0040.01418.56
8.3.20.0000.00820.43
8.3.10.0040.00421.73
8.3.00.0040.00421.72
8.2.180.0090.01216.75
8.2.170.0140.00722.96
8.2.160.0030.01022.27
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.83
8.2.120.0050.00326.35
8.2.110.0030.00622.20
8.2.100.0000.01217.82
8.2.90.0030.00619.14
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0040.00420.47
8.2.30.0040.00421.15
8.2.20.0070.00018.20
8.2.10.0050.00318.14
8.2.00.0070.00017.65
8.1.280.0070.00725.92
8.1.270.0040.00423.84
8.1.260.0080.00028.09
8.1.250.0030.00628.09
8.1.240.0090.00023.79
8.1.230.0040.00819.10
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.12
8.1.180.0000.00918.10
8.1.170.0050.00318.91
8.1.160.0040.00322.12
8.1.150.0030.00620.63
8.1.140.0030.00619.65
8.1.130.0050.00217.73
8.1.120.0040.00417.45
8.1.110.0030.00617.48
8.1.100.0000.00817.48
8.1.90.0000.00817.54
8.1.80.0040.00417.52
8.1.70.0000.00917.51
8.1.60.0000.00817.57
8.1.50.0040.00417.43
8.1.40.0030.00517.58
8.1.30.0040.00417.68
8.1.20.0040.00417.59
8.1.10.0040.00417.47
8.1.00.0050.00317.44
8.0.300.0040.00421.48
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0000.00717.18
8.0.260.0000.00617.20
8.0.250.0040.00416.98
8.0.240.0000.00717.00
8.0.230.0040.00416.96
8.0.220.0000.00716.94
8.0.210.0000.00716.89
8.0.200.0060.00016.97
8.0.190.0090.00016.98
8.0.180.0040.00416.97
8.0.170.0030.00516.93
8.0.160.0040.00416.82
8.0.150.0030.00416.88
8.0.140.0030.00316.90
8.0.130.0000.00513.40
8.0.120.0050.00216.74
8.0.110.0070.00016.97
8.0.100.0000.00816.80
8.0.90.0070.00016.78
8.0.80.0030.01916.96
8.0.70.0060.00316.77
8.0.60.0000.00716.86
8.0.50.0070.00016.94
8.0.30.0080.01317.04
8.0.20.0100.01017.40
8.0.10.0000.00716.97
8.0.00.0070.01116.86
7.4.330.0060.00015.55
7.4.320.0000.00616.46
7.4.300.0060.00016.48
7.4.290.0000.00716.63
7.4.280.0030.00616.52
7.4.270.0030.00316.59
7.4.260.0040.00416.52
7.4.250.0050.00316.45
7.4.240.0030.00316.61
7.4.230.0080.00016.50
7.4.220.0130.01316.57
7.4.210.0070.01116.55
7.4.200.0030.00316.43
7.4.160.0080.00816.41
7.4.150.0070.01417.40
7.4.140.0090.00917.86
7.4.130.0110.00716.56
7.4.120.0120.00516.53
7.4.110.0110.01116.52
7.4.100.0100.00816.54
7.4.90.0080.00816.51
7.4.80.0140.00519.39
7.4.70.0120.00416.44
7.4.60.0100.00716.41
7.4.50.0060.00916.52
7.4.40.0060.01016.63
7.4.30.0140.00316.36
7.4.00.0030.01215.13
7.3.330.0030.00313.30
7.3.320.0000.00513.25
7.3.310.0040.00416.29
7.3.300.0000.00716.30
7.3.290.0060.00716.25
7.3.280.0090.00916.20
7.3.270.0070.01117.40
7.3.260.0070.01016.36
7.3.250.0120.00516.46
7.3.240.0140.00516.26
7.3.230.0110.00716.39
7.3.210.0040.01516.49
7.3.200.0090.00616.59
7.3.190.0100.01016.46
7.3.180.0100.00716.22
7.3.170.0070.01016.49
7.3.160.0120.00916.32
7.2.330.0130.00716.50
7.2.320.0060.01616.32
7.2.310.0090.00916.76
7.2.300.0100.01316.73
7.2.290.0140.00216.68
7.2.60.0130.00317.13
7.2.50.0070.00716.84
7.2.00.0070.00719.44
7.1.200.0000.01215.84
7.1.70.0000.00717.24
7.1.60.0030.01017.29
7.1.00.0000.07022.35
7.0.200.0390.00714.47
7.0.120.0170.07722.17
7.0.110.0170.08322.14
7.0.100.0130.05022.20
7.0.90.0230.05722.14
7.0.80.0130.07022.13
7.0.70.0170.06322.09
7.0.60.0030.08021.72
7.0.50.0100.05721.97
7.0.40.0100.07721.98
7.0.30.0000.06722.14
7.0.20.0170.05022.05
7.0.10.0030.06022.19
7.0.00.0130.07022.14
5.6.270.0100.07020.84
5.6.260.0370.05320.88
5.6.250.0170.04720.91
5.6.240.0030.06320.75
5.6.230.0200.06720.88
5.6.220.0070.07320.85
5.6.210.0130.08020.85
5.6.200.0000.08320.87
5.6.190.0130.07020.75
5.6.180.0100.06020.87
5.6.170.0070.06020.83
5.6.160.0100.07721.00
5.6.150.0130.07021.02
5.6.140.0070.07020.87
5.6.130.0170.06721.03
5.6.120.0130.05321.02
5.6.110.0130.05320.83
5.6.100.0070.06021.00
5.6.90.0130.05020.85
5.6.80.0030.07020.23
5.6.70.0070.08020.23
5.6.60.0070.06020.41
5.6.50.0100.05320.39
5.6.40.0170.04320.19
5.6.30.0100.06020.37
5.6.20.0170.05020.11
5.6.10.0130.06720.18
5.6.00.0030.05720.13

preferences:
58.59 ms | 401 KiB | 5 Q