3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)] final class Route { public function __construct(public ?string $serializationGroups = null) {} } #[Route( name: 'show_book_with_serialization_groups', path: '/book/{id}', controller: 'app.controller.book:showAction', serializationGroups: ['sylius'] )] final class TestRoute {} $testRoute = new TestRoute; $reflection = new ReflectionObject($testRoute); $routeAttributes = $reflection->getAttributes(Route::class); var_dump($routeAttributes[0]->getArguments());

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.0010.00616.76
8.5.60.0100.00716.73
8.5.50.0100.00416.75
8.5.30.0090.00820.17
8.5.20.0090.00919.38
8.5.10.0100.00718.82
8.5.00.0120.01219.68
8.4.220.0080.00122.04
8.4.210.0110.01419.61
8.4.180.0150.00925.73
8.4.170.0160.00723.95
8.4.160.0060.00525.64
8.4.150.0070.00616.86
8.4.140.0130.00817.26
8.4.130.0120.00817.76
8.4.120.0110.00520.61
8.4.110.0120.00822.64
8.4.100.0040.00417.71
8.4.90.0060.00320.64
8.4.80.0140.00617.84
8.4.70.0100.01217.76
8.4.60.0130.00920.45
8.4.50.0120.00817.70
8.4.40.0070.01417.52
8.4.30.0160.00320.28
8.4.20.0070.01417.72
8.4.10.0060.00319.38
8.3.310.0070.00318.37
8.3.300.0110.00922.65
8.3.290.0120.00720.71
8.3.280.0090.01118.26
8.3.270.0120.00716.21
8.3.260.0130.00616.61
8.3.250.0090.00918.74
8.3.240.0120.00716.48
8.3.230.0040.00416.79
8.3.220.0130.00617.00
8.3.210.0090.00516.45
8.3.200.0050.00416.67
8.3.190.0100.00817.27
8.3.180.0110.00816.85
8.3.170.0100.00916.55
8.3.160.0150.00016.41
8.3.150.0140.00017.16
8.3.140.0080.00016.59
8.3.130.0080.00816.41
8.3.120.0080.00018.71
8.3.110.0030.00620.94
8.3.100.0070.01424.06
8.3.90.0110.00026.77
8.3.80.0120.00316.38
8.3.70.0130.00916.58
8.3.60.0090.01218.43
8.3.50.0180.00420.05
8.3.40.0110.00319.94
8.3.30.0040.01218.77
8.3.20.0030.00624.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.310.0110.00918.01
8.2.300.0140.00718.74
8.2.290.0130.00520.44
8.2.280.0090.01018.66
8.2.270.0140.00316.43
8.2.260.0090.00917.20
8.2.250.0030.00518.36
8.2.240.0050.00317.42
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0050.00226.77
8.2.200.0080.00016.88
8.2.190.0060.00916.75
8.2.180.0140.00725.92
8.2.170.0120.00918.96
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0060.00320.39
8.2.100.0000.00919.11
8.1.340.0130.01321.77
8.1.330.0120.00716.72
8.1.320.0130.00915.98
8.1.310.0090.00616.74
8.1.300.0060.01315.95
8.1.290.0030.00618.88
8.1.280.0110.00725.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0070.00318.71
8.1.230.0030.00618.99
8.0.150.0050.00716.74

preferences:
90.65 ms | 899 KiB | 5 Q