3v4l.org

run code in 500+ PHP versions simultaneously
<?php $comps = [ [ 'c_id' => '123', 'status' => 'active' ], [ 'c_id' => '456', 'status' => 'destroyed' ], [ 'c_id' => '789', 'status' => 'active' ] ]; $rests = [ [ 'r_id' => 123, 'extra' => 'some extra info for r_id 123' ], [ 'r_id' => 456, 'extra' => 'some extra info for r_id 456' ] ]; var_export( array_uintersect( array_filter($comps, function($row) { return $row['status'] === 'active'; }), $rests, function($a, $b) { return ($a['c_id'] ?? $a['r_id']) <=> ($b['c_id'] ?? $b['r_id']); } ) );

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.70.0130.00716.69
8.5.60.0100.00816.98
8.5.50.0110.01116.61
8.5.30.0050.00519.44
8.5.20.0070.01019.69
8.5.10.0100.00720.05
8.5.00.0120.00920.19
8.4.210.0140.00819.67
8.4.180.0130.00823.70
8.4.170.0120.00923.83
8.4.160.0150.01023.98
8.4.150.0080.00416.85
8.4.140.0110.01217.51
8.4.130.0040.00618.39
8.4.120.0150.00524.23
8.4.110.0100.01020.53
8.4.100.0110.01017.80
8.4.90.0110.00917.64
8.4.80.0110.00917.81
8.4.70.0130.00718.09
8.4.60.0040.00518.65
8.4.50.0120.00920.59
8.4.40.0100.01319.48
8.4.30.0090.00019.00
8.4.20.0070.01417.68
8.4.10.0070.00422.14
8.3.300.0090.01120.77
8.3.290.0120.00918.66
8.3.280.0070.01518.28
8.3.270.0150.00516.50
8.3.260.0130.00716.57
8.3.250.0100.00818.67
8.3.240.0090.01017.26
8.3.230.0110.00816.51
8.3.220.0110.00816.50
8.3.210.0120.00816.53
8.3.200.0040.00416.54
8.3.190.0100.01017.18
8.3.180.0110.00718.92
8.3.170.0090.00017.02
8.3.160.0040.00516.80
8.3.150.0110.00717.24
8.3.140.0140.00416.48
8.3.130.0060.00318.23
8.3.120.0060.00318.85
8.3.110.0060.00320.94
8.3.100.0000.01124.06
8.3.90.0190.00626.77
8.3.80.0060.00316.75
8.3.70.0220.00016.58
8.3.60.0120.00416.61
8.3.50.0120.00320.36
8.3.40.0130.00721.95
8.3.30.0110.00418.68
8.3.20.0040.00424.18
8.3.10.0060.00924.66
8.3.00.0050.00326.16
8.2.300.0110.00818.21
8.2.290.0100.01120.33
8.2.280.0090.00819.79
8.2.270.0090.00416.61
8.2.260.0060.00320.54
8.2.250.0030.00718.05
8.2.240.0040.01119.17
8.2.230.0040.00422.58
8.2.220.0000.00837.54
8.2.210.0000.00726.77
8.2.200.0040.00416.75
8.2.190.0140.00716.58
8.2.180.0120.00325.92
8.2.170.0120.00618.94
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0000.01022.11
8.2.100.0090.00317.91
8.2.90.0030.00617.91
8.2.80.0040.00419.34
8.2.70.0050.00317.63
8.2.60.0050.00317.75
8.2.50.0060.00318.05
8.2.40.0000.00818.22
8.2.30.0000.00718.00
8.2.20.0000.00819.36
8.2.10.0000.00718.24
8.2.00.0070.00019.20
8.1.340.0140.00817.71
8.1.330.0090.00916.50
8.1.320.0090.01016.32
8.1.310.0040.00416.66
8.1.300.0000.00919.63
8.1.290.0100.00018.88
8.1.280.0150.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.02
8.1.230.0070.00422.82
8.1.220.0030.00517.76
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.09
8.1.180.0000.00819.54
8.1.170.0050.00318.59
8.1.160.0020.00518.96
8.1.150.0030.00618.70
8.1.140.0000.00717.38
8.1.130.0080.00018.77
8.1.120.0040.00417.44
8.1.110.0120.00317.33
8.1.100.0120.00317.27
8.1.90.0050.01017.43
8.1.80.0060.00917.30
8.1.70.0050.01017.40
8.1.60.0130.00417.48
8.1.50.0080.00717.45
8.1.40.0070.00717.34
8.1.30.0050.00917.44
8.1.20.0100.00417.53
8.1.10.0080.00417.54
8.1.00.0110.00317.45
8.0.300.0050.00320.11
8.0.290.0000.00716.63
8.0.280.0030.00318.42
8.0.270.0030.00317.17
8.0.260.0060.00018.32
8.0.250.0040.00416.86
8.0.240.0120.00016.80
8.0.230.0110.00416.91
8.0.220.0080.00416.53
8.0.210.0110.00016.77
8.0.200.0000.01016.77
8.0.190.0140.00016.80
8.0.180.0100.00516.91
8.0.170.0000.01416.82
8.0.160.0040.01116.76
8.0.150.0140.00016.84
8.0.140.0070.00716.75
8.0.130.0120.00416.75
8.0.120.0040.01116.91
8.0.110.0140.00016.85
8.0.100.0150.00016.88
8.0.90.0120.00316.84
8.0.80.0090.00616.87
8.0.70.0090.00616.80
8.0.60.0060.01116.81
8.0.50.0110.00416.79
8.0.30.0100.00516.87
8.0.20.0050.01016.89
8.0.10.0120.00416.89
7.4.330.0000.00415.55
7.4.320.0100.00716.55
7.4.300.0110.00616.58
7.4.290.0110.00716.57
7.4.280.0190.00016.46
7.4.270.0090.00316.58
7.4.260.0070.00316.21
7.4.250.0060.00316.43
7.4.240.0000.01116.45
7.4.230.0050.01116.58
7.4.220.0070.00716.58
7.4.210.0070.00716.62
7.4.200.0080.00416.48
7.4.190.0080.00316.46
7.4.180.0030.00716.05
7.4.160.0070.00416.38
7.4.150.0100.00316.49
7.4.140.0050.00916.41
7.4.130.0120.00216.35
7.4.120.0120.00216.45
7.4.110.0130.00016.41
7.4.100.0090.00516.43
7.4.90.0120.00316.46
7.4.80.0090.00516.43
7.4.70.0070.00416.31
7.4.60.0050.00216.50
7.4.50.0040.00416.26
7.4.40.0100.00016.14
7.4.30.0050.00516.12
7.4.20.0050.00516.43
7.4.10.0050.00816.43
7.4.00.0030.00716.39

preferences:
99.84 ms | 1262 KiB | 5 Q