3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'tableData' => [ [ 'booking_name' => 'abc/xyz/123', 'pdg' => 'assure', 'user_area' => 'es st', 'release' => 'oss72', 'start_date' => '2017-06-20 00:00:00', 'end_date' => '2017-06-23 00:00:00', 'asset_info' => [ [ 'status' => 10, 'manufacturer' => 'HP', 'model' => 'HP BL460C GEN8', 'hardware_color' => ''#0066b3' ] ], 'full_name' => 'Valay Desai', 'email_address' => 'valay@xyz.com' ], [ 'booking_name' => 'abc/xyz/123', 'pdg' => 'assure', 'user_area' => 'ls reca', 'release' => 'oss72', 'start_date' => '2017-06-20 00:00:00', 'end_date' => '2017-06-23 00:00:00', 'asset_info' => [ [ 'status' => 10, 'manufacturer' => 'SUN', 'model' => 'SUN GEN8', 'hardware_color' => '#0066b3' ] ], 'full_name' => 'Chako Desai', 'email_address' => 'chako@xyz.com' ] ] ]; $filterBy = [ 'booking_name' => 'abc', 'pdg' => [ ['name' => 'Invalid', 'value' => 'Invalid'], ['name' => 'assure', 'value' => 'assure'] ], 'user_area' => [ ['name' => 'es st', 'value' => 'es st'], ['name' => 'Invalid', 'value' => 'Invalid'], ['name' => 'a&o', 'value' => 'a&o'] ] ]; // simplify structure $filterBy['pdg'] = array_column($filterBy['pdg'], 'value'); $filterBy['user_area'] = array_column($filterBy['user_area'], 'value'); var_export( [ 'tableData' => array_filter( $array['tableData'], function($row) use($filterBy) { return str_contains($row['booking_name'], $filterBy['booking_name']) && in_array($row['pdg'], $filterBy['pdg']) && in_array($row['user_area'], $filterBy['user_area']); } ) ] );

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.0080.00816.75
8.3.50.0070.00718.52
8.3.40.0110.00420.38
8.3.30.0040.01818.67
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.180.0100.00725.92
8.2.170.0070.00722.96
8.2.160.0120.00322.96
8.2.150.0000.00725.66
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0030.00622.25
8.2.100.0120.00019.45
8.2.90.0030.00618.03
8.2.80.0040.00418.82
8.2.70.0040.00817.60
8.2.60.0080.00018.16
8.2.50.0060.00318.07
8.2.40.0080.00018.03
8.2.30.0070.00018.11
8.2.20.0040.00419.30
8.2.10.0030.00618.02
8.2.00.0000.00719.42
8.1.280.0100.01325.92
8.1.270.0110.00324.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.81
8.1.230.0080.00419.14
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0030.00618.50
8.1.160.0070.00018.86
8.1.150.0040.00418.65
8.1.140.0000.00717.38
8.1.130.0000.00718.91
8.1.120.0000.00717.41
8.1.110.0040.00417.46
8.1.100.0080.00017.31
8.1.90.0130.00317.29
8.1.80.0080.00417.45
8.1.70.0100.00717.24
8.1.60.0130.00617.47
8.1.50.0100.01017.33
8.1.40.0090.00917.37
8.1.30.0160.00417.55
8.1.20.0140.00617.64
8.1.10.0060.01317.37
8.1.00.0160.00317.31
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0030.00318.32
8.0.270.0030.00318.02
8.0.260.0000.00618.46
8.0.250.0040.00416.90
8.0.240.0040.00416.92
8.0.230.0040.00416.96
8.0.220.0080.00816.82
8.0.210.0090.00616.81
8.0.200.0110.00416.86
8.0.190.0080.00816.79
8.0.180.0220.00016.84
8.0.170.0160.00516.93
8.0.160.0080.00816.82
8.0.150.0110.00416.86
8.0.140.0090.00716.75
8.0.130.0160.00316.87
8.0.120.0110.00416.92
8.0.110.0110.00416.82
8.0.100.0100.00316.93
8.0.90.0130.00316.84
8.0.80.0090.00616.90
8.0.70.0080.00816.70
8.0.60.0100.00516.79
8.0.50.0120.00416.90
8.0.30.0080.00816.77
8.0.20.0100.00616.86
8.0.10.0070.01016.84
7.4.330.0030.00315.55
7.4.320.0000.00716.64
7.4.300.0170.00016.45
7.4.290.0180.00016.57
7.4.280.0100.00716.53
7.4.270.0080.00916.38
7.4.260.0160.00016.57
7.4.250.0060.01216.46
7.4.240.0110.00516.46
7.4.230.0070.01016.54
7.4.220.0050.01016.47
7.4.210.0120.00216.59
7.4.200.0090.00616.52
7.4.190.0090.00616.62
7.4.180.0120.00316.43
7.4.160.0080.00816.52
7.4.150.0120.00316.46
7.4.140.0050.00516.37
7.4.130.0110.00016.27
7.4.120.0050.00516.42
7.4.110.0060.00316.33
7.4.100.0000.00716.19
7.4.90.0070.00016.21
7.4.80.0000.00716.43
7.4.70.0080.00016.31
7.4.60.0000.00716.33
7.4.50.0080.00016.36
7.4.40.0070.00016.35
7.4.30.0040.00416.44
7.4.20.0070.00016.34
7.4.10.0030.00616.33
7.4.00.0000.00716.35

preferences:
73.74 ms | 400 KiB | 5 Q