3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Address { public function __construct( public string $streetNumber, public string $streetName ) {} } $addresses = [ new Address('5', 'Main St'), new Address('10', 'Main St'), new Address('10', 'Main St'), new Address('3A', 'Main St'), new Address('5', 'Main St'), ]; var_dump(array_unique($addresses, SORT_REGULAR));

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.140.0270.01317.48
8.4.130.0460.01317.20
8.4.120.0180.00417.61
8.4.110.0350.01117.34
8.4.100.0420.01317.47
8.4.90.0430.00917.52
8.4.80.0380.01217.88
8.4.70.0380.01717.43
8.4.60.0410.01017.86
8.4.50.0390.01017.56
8.4.40.0370.01617.39
8.4.30.0450.00717.86
8.4.20.0380.00917.38
8.4.10.0350.01117.73
8.3.270.0100.01216.75
8.3.260.0370.01016.67
8.3.250.0340.01016.32
8.3.240.0450.00516.41
8.3.230.0340.01216.53
8.3.220.0410.00816.09
8.3.210.0390.00716.44
8.3.200.0360.01116.14
8.3.190.0430.00916.49
8.3.180.0420.00616.15
8.3.170.0450.01116.45
8.3.160.0400.01116.57
8.3.150.0400.01016.02
8.3.140.0360.01016.55
8.3.130.0360.00816.70
8.3.120.0360.00916.38
8.3.110.0300.01216.46
8.3.100.0440.01116.35
8.3.90.0420.01316.42
8.3.80.0500.01016.28
8.3.70.0400.00816.63
8.3.60.0440.00516.55
8.3.50.0430.00516.31
8.3.40.0410.00817.21
8.3.30.0320.00817.35
8.3.20.0350.00917.37
8.3.10.0320.01117.27
8.3.00.0410.00517.29
8.2.290.0310.01016.30
8.2.280.0290.01016.26
8.2.270.0330.01216.34
8.2.260.0310.01016.64
8.2.250.0310.00816.49
8.2.240.0320.00916.44
8.2.230.0360.00516.20
8.2.220.0340.00716.45
8.2.210.0360.00716.46
8.2.200.0280.00916.25
8.2.190.0340.00716.48
8.2.180.0340.01016.18
8.2.170.0320.01217.37
8.2.160.0360.01017.70
8.2.150.0330.00817.41
8.2.140.0400.00517.39
8.2.130.0360.00717.36
8.2.120.0340.01217.18
8.2.110.0390.00917.47
8.2.100.0340.01017.55
8.2.90.0390.00817.39
8.2.80.0350.01117.42
8.2.70.0340.00717.26
8.2.60.0320.00817.33
8.2.50.0360.01117.18
8.2.40.0350.00617.50
8.2.30.0320.00617.41
8.2.20.0320.01617.19
8.2.10.0320.00717.34
8.2.00.0270.01217.29

preferences:
65.1 ms | 403 KiB | 5 Q