3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [[ 'site_id' => 'S6407', 'tssr_id' => 'TSSRBOQ-200204-0145-59', 'site_name' => 'Site S6407', 'id_site_doc'=> '127361', 'implementation_id' => 'imp4121', 'status' => 'implementation_created', 'endstate' => false ], [ 'site_id' => 'S5910', 'tssr_id' => 'TSSRBOQ-200204-0145-8', 'site_name' => 'Site S5910', 'id_site_doc'=> '127362', 'implementation_id' => 'imp4122', 'status' => 'implementation_created', 'endstate' => true ]]; $array_validate = [[ 'site_id' => 'S5910', 'tssr_id' => 'TSSRBOQ-200204-0145-8' ], [ 'site_id' => 'S6407', 'tssr_id' => 'TSSRBOQ-200204-0145-59' ]]; $validEntries = array_filter($myArray, static function (array $entry) use ($array_validate): bool { return in_array([ 'site_id' => $entry['site_id'], 'tssr_id' => $entry['tssr_id'] ], $array_validate, true); }); print_r($validEntries);

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.120.0040.00520.65
8.4.110.0110.01020.35
8.4.100.0040.01617.67
8.4.90.0050.00617.70
8.4.80.0120.00620.73
8.4.70.0070.01217.81
8.4.60.0080.01117.78
8.4.50.0090.01119.59
8.4.40.0090.00617.76
8.4.30.0160.00318.46
8.4.20.0000.00817.98
8.4.10.0080.00019.59
8.3.250.0080.00819.16
8.3.240.0140.00416.55
8.3.230.0140.00416.57
8.3.220.0110.00817.43
8.3.210.0090.01016.63
8.3.200.0160.00418.82
8.3.190.0130.00618.43
8.3.180.0100.00916.50
8.3.170.0120.00619.00
8.3.160.0080.00518.27
8.3.150.0160.00320.83
8.3.140.0100.00016.59
8.3.130.0060.00316.48
8.3.120.0080.00820.61
8.3.110.0060.00320.94
8.3.100.0040.01218.41
8.3.90.0110.00418.46
8.3.80.0090.00018.31
8.3.70.0040.01116.63
8.3.60.0120.00918.30
8.3.50.0050.01224.58
8.3.40.0120.00318.66
8.3.30.0130.00718.67
8.3.20.0040.00421.90
8.3.10.0040.00422.10
8.3.00.0080.00023.54
8.2.290.0080.01120.35
8.2.280.0100.00116.86
8.2.270.0090.00918.75
8.2.260.0070.01319.95
8.2.250.0130.00316.61
8.2.240.0160.00018.70
8.2.230.0160.00322.58
8.2.220.0060.00324.06
8.2.210.0030.01326.77
8.2.200.0050.00516.71
8.2.190.0120.00916.58
8.2.180.0170.00318.08
8.2.170.0000.01422.96
8.2.160.0070.00722.22
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0000.00919.27
8.2.100.0040.00817.66
8.2.90.0040.00417.75
8.2.80.0080.00018.89
8.2.70.0040.00418.05
8.2.60.0000.00718.22
8.2.50.0040.00419.35
8.2.40.0040.00419.40
8.2.30.0040.00419.18
8.2.20.0000.00718.11
8.2.10.0070.00019.34
8.2.00.0030.00519.37
8.1.330.0130.00516.97
8.1.320.0110.00816.27
8.1.310.0040.00416.73
8.1.300.0080.00020.31
8.1.290.0000.01018.88
8.1.280.0110.00425.92
8.1.270.0040.00420.49
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00621.96
8.1.230.0080.00420.88
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0030.00617.23
8.1.180.0030.00519.06
8.1.170.0030.00618.64
8.1.160.0000.00818.96
8.1.150.0060.00318.89
8.1.140.0020.00518.93
8.1.130.0100.00020.19
8.1.120.0000.00717.54
8.1.110.0070.00017.47
8.1.100.0040.00417.36
8.1.90.0000.01017.37
8.1.80.0030.00317.49
8.1.70.0050.00217.47
8.1.60.0080.00017.60
8.1.50.0000.00817.50
8.1.40.0000.00817.50
8.1.30.0050.00417.64
8.1.20.0000.00817.61
8.1.10.0040.00417.58
8.1.00.0060.00317.45
8.0.300.0020.00518.93
8.0.290.0050.00316.58
8.0.280.0030.00318.43
8.0.270.0030.00316.73
8.0.260.0030.00318.32
8.0.250.0080.00016.86
8.0.240.0020.00516.98
8.0.230.0030.00316.99
8.0.220.0030.00316.78
8.0.210.0070.00016.76
8.0.200.0000.00716.78
8.0.190.0050.00316.97
8.0.180.0000.00816.80
8.0.170.0030.00516.90
8.0.160.0000.00816.90
8.0.150.0070.00416.88
8.0.140.0000.00716.90
8.0.130.0030.00313.23
8.0.120.0030.00416.79
8.0.110.0000.00717.00
8.0.100.0030.00516.88
8.0.90.0050.00516.89
8.0.80.0050.01316.86
8.0.70.0000.00816.83
8.0.60.0040.00416.76
8.0.50.0000.00716.87
8.0.30.0120.00416.99
8.0.20.0130.00717.00
8.0.10.0050.00217.08
8.0.00.0150.00316.91
7.4.330.0040.00015.55
7.4.320.0030.00316.61
7.4.300.0060.00016.52
7.4.290.0000.00716.50
7.4.280.0000.00816.62
7.4.270.0050.00216.52
7.4.260.0030.00313.27
7.4.250.0030.00316.60
7.4.240.0030.00416.51
7.4.230.0070.00016.44
7.4.220.0050.00216.46
7.4.210.0090.00716.59
7.4.200.0000.00716.67
7.4.130.0120.00816.55
7.4.120.0120.00616.59
7.4.110.0060.01116.46
7.4.100.0120.00616.42
7.4.90.0070.01116.34
7.4.80.0140.00719.39
7.4.70.0060.01016.52
7.4.60.0000.01716.64
7.4.50.0100.00716.46
7.4.40.0090.00616.29
7.4.30.0070.00916.37
7.4.20.0050.01116.50
7.4.10.0150.00316.35
7.4.00.0100.00816.47
7.3.330.0000.00816.44
7.3.320.0030.00313.22
7.3.310.0040.00416.34
7.3.300.0030.00316.22
7.3.290.0080.00916.30
7.3.260.0070.01516.38
7.3.240.0110.00716.36
7.3.230.0110.00616.45
7.3.210.0100.00716.43
7.3.200.0030.01316.28
7.3.190.0140.00716.30
7.3.180.0080.00816.49
7.3.170.0060.00916.34
7.3.160.0060.01116.34
7.3.150.0060.00916.35
7.3.140.0080.00816.34
7.3.130.0100.00716.39
7.3.120.0050.01216.43
7.3.110.0080.00816.35
7.3.100.0080.01016.38
7.3.90.0120.00316.34
7.3.80.0100.00916.26
7.3.70.0080.01116.32
7.3.60.0060.01216.38
7.3.50.0020.01716.17
7.3.40.0100.00816.28
7.3.30.0030.01316.32
7.3.20.0160.00816.27
7.3.10.0080.01016.24
7.3.00.0110.00616.29
7.2.330.0120.00616.42
7.2.320.0100.00716.55
7.2.310.0030.01416.45
7.2.300.0100.00716.55
7.2.290.0100.00716.57
7.2.280.0080.00816.53
7.2.270.0090.00816.54
7.2.260.0090.00816.57
7.2.250.0120.00516.59
7.2.240.0080.01016.61
7.2.230.0080.00916.55
7.2.220.0130.00816.57
7.2.210.0050.01316.53
7.2.200.0090.01016.47
7.2.190.0070.01116.57
7.2.180.0070.01216.54
7.2.170.0070.01216.68
7.2.160.0100.00716.53
7.2.150.0110.00716.63
7.2.140.0120.00716.69
7.2.130.0080.01216.57
7.2.120.0090.00816.61
7.2.110.0060.01116.68
7.2.100.0080.01416.72
7.2.90.0080.01116.58
7.2.80.0080.00916.52
7.2.70.0070.01116.53
7.2.60.0120.00516.68
7.2.50.0090.00916.60
7.2.40.0070.01416.71
7.2.30.0070.01116.65
7.2.20.0110.01016.51
7.2.10.0080.01016.59
7.2.00.0190.00616.50

preferences:
33.68 ms | 403 KiB | 5 Q