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( $comps, $rests, fn($a, $b) => [$a['c_id'] ?? $a['r_id'], ($a['status'] ?? 'active') === 'active'] <=> [$b['c_id'] ?? $b['r_id'], ($b['status'] ?? 'active') === 'active'] ) );

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.0110.00616.88
8.5.60.0010.00616.78
8.5.50.0030.00516.58
8.5.30.0120.00521.19
8.5.20.0050.01419.65
8.5.10.0100.00820.20
8.5.00.0150.00820.06
8.4.210.0110.01019.39
8.4.180.0140.00722.00
8.4.170.0120.01023.88
8.4.160.0140.00823.06
8.4.150.0070.00616.75
8.4.140.0160.00517.73
8.4.130.0040.00617.82
8.4.120.0040.00420.31
8.4.110.0140.00619.07
8.4.100.0040.00417.86
8.4.90.0070.01320.71
8.4.80.0130.00719.06
8.4.70.0050.00317.88
8.4.60.0040.00518.83
8.4.50.0100.00920.55
8.4.40.0140.00719.76
8.4.30.0140.00718.84
8.4.20.0150.00717.84
8.4.10.0150.00423.84
8.3.300.0160.01320.60
8.3.290.0130.00820.84
8.3.280.0120.01218.48
8.3.270.0110.00816.48
8.3.260.0040.00616.74
8.3.250.0140.00518.71
8.3.240.0110.00916.50
8.3.230.0120.00716.53
8.3.220.0080.01118.98
8.3.210.0110.00416.49
8.3.200.0080.00116.56
8.3.190.0120.00717.04
8.3.180.0110.00919.07
8.3.170.0130.00618.88
8.3.160.0070.01116.73
8.3.150.0120.00616.54
8.3.140.0030.01216.39
8.3.130.0070.00718.40
8.3.120.0030.00620.66
8.3.110.0030.00616.47
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0050.00516.63
8.3.70.0040.01116.58
8.3.60.0110.00418.16
8.3.50.0140.00720.18
8.3.40.0070.00722.22
8.3.30.0110.00418.79
8.3.20.0050.00524.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.300.0120.00818.24
8.2.290.0070.00216.47
8.2.280.0090.00818.52
8.2.270.0090.00916.82
8.2.260.0060.01217.03
8.2.250.0070.01318.16
8.2.240.0070.00319.04
8.2.230.0030.00620.94
8.2.220.0060.00337.54
8.2.210.0140.00426.77
8.2.200.0090.00016.88
8.2.190.0060.00916.58
8.2.180.0090.00625.92
8.2.170.0140.00719.00
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0120.00620.75
8.2.110.0000.00920.92
8.2.100.0110.00017.91
8.2.90.0060.00317.91
8.2.80.0080.00019.32
8.2.70.0060.00317.50
8.2.60.0060.00317.50
8.2.50.0050.00318.05
8.2.40.0040.00418.28
8.2.30.0000.00818.15
8.2.20.0000.00719.44
8.2.10.0040.00418.21
8.2.00.0000.00719.31
8.1.340.0130.00717.49
8.1.330.0120.00816.32
8.1.320.0100.01116.43
8.1.310.0130.00316.71
8.1.300.0140.00018.39
8.1.290.0090.00030.84
8.1.280.0130.00725.92
8.1.270.0050.00324.66
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00322.60
8.1.230.0050.00520.88
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0000.00817.35
8.1.180.0050.00518.10
8.1.170.0060.00318.55
8.1.160.0000.00818.91
8.1.150.0100.00018.58
8.1.140.0040.00417.53
8.1.130.0000.00818.95
8.1.120.0000.00717.54
8.1.110.0100.00017.39
8.1.100.0160.00017.45
8.1.90.0050.01017.43
8.1.80.0120.00417.30
8.1.70.0050.01117.37
8.1.60.0150.00417.46
8.1.50.0150.00417.53
8.1.40.0130.00417.42
8.1.30.0130.00617.57
8.1.20.0130.00517.70
8.1.10.0120.00617.61
8.1.00.0100.01017.55
8.0.300.0000.00719.98
8.0.290.0000.00716.75
8.0.280.0070.00018.56
8.0.270.0030.00317.26
8.0.260.0030.00318.50
8.0.250.0000.00916.85
8.0.240.0120.00316.86
8.0.230.0100.00616.95
8.0.220.0140.00016.79
8.0.210.0160.00016.85
8.0.200.0050.01016.85
8.0.190.0120.00216.96
8.0.180.0110.00516.95
8.0.170.0110.00416.96
8.0.160.0110.00416.88
8.0.150.0050.01016.85
8.0.140.0070.00716.75
8.0.130.0120.00416.80
8.0.120.0120.00416.78
8.0.110.0070.00716.90
8.0.100.0110.00416.83
8.0.90.0120.00316.89
8.0.80.0060.00616.76
8.0.70.0110.00616.86
8.0.60.0090.00616.88
8.0.50.0090.00416.75
8.0.30.0120.00016.92
8.0.20.0060.00616.98
8.0.10.0080.00316.94
7.4.330.0050.00015.55
7.4.320.0120.00616.61
7.4.300.0100.00716.50
7.4.290.0140.00316.64
7.4.280.0170.00016.51
7.4.270.0170.00016.52
7.4.260.0130.00416.44
7.4.250.0040.01116.57
7.4.240.0130.00316.50
7.4.230.0070.00716.57
7.4.220.0120.00316.48
7.4.210.0140.00016.61
7.4.200.0070.00716.58
7.4.190.0120.00016.56
7.4.180.0080.00516.68
7.4.160.0050.01016.67
7.4.150.0120.00216.38
7.4.140.0130.00016.41
7.4.130.0110.00416.44
7.4.120.0120.00016.42
7.4.110.0020.01116.38
7.4.100.0060.00616.62
7.4.90.0000.01416.46
7.4.80.0060.00716.38
7.4.70.0150.00016.31
7.4.60.0090.00516.44
7.4.50.0130.00316.44
7.4.40.0100.00316.18
7.4.30.0150.00016.44
7.4.20.0050.01016.45
7.4.10.0130.00016.50
7.4.00.0120.00016.49

preferences:
38.51 ms | 1262 KiB | 5 Q