3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[AsCommand(description: 'description of the command', name: 'app:'.self::COMMAND.':process')] final class MyCommand { private const COMMAND = 'command'; } $r = new ReflectionClass('MyCommand'); foreach($r->getAttributes() as $attribute) { foreach($attribute->getArguments() as $arg) { var_dump($arg); } }

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.3.110.0080.00016.50
8.3.100.0060.00320.20
8.3.90.0360.01026.77
8.3.80.0430.00726.77
8.3.70.0450.00326.77
8.3.60.0310.00626.77
8.3.50.0250.00426.77
8.3.40.0250.00326.77
8.3.30.0430.00026.77
8.3.20.0400.01126.77
8.3.10.0350.00426.77
8.3.00.0360.00726.77
8.2.230.0040.00420.94
8.2.220.0060.00324.06
8.2.210.0200.01226.77
8.2.200.0170.01726.77
8.2.190.0210.00726.77
8.2.180.0140.00726.77
8.2.170.0250.01226.77
8.2.160.0270.01126.77
8.2.150.0280.00726.77
8.2.140.0270.00826.77
8.2.130.0240.01026.77
8.2.120.0300.00726.77
8.2.110.0360.00726.77
8.2.100.0330.00726.77
8.2.90.0290.00926.77
8.2.80.0190.00026.77
8.2.70.0270.01226.77
8.2.60.0300.00726.77
8.2.50.0140.01026.77
8.2.40.0150.00326.77
8.2.30.0270.00926.77
8.2.20.0290.01026.77
8.2.10.0280.01326.77
8.2.00.0290.01026.77
8.1.290.0290.01126.77
8.1.280.0250.01426.77
8.1.270.0440.00326.77
8.1.260.0390.02026.77
8.1.250.0340.01426.77
8.1.240.0360.00326.77
8.1.230.0310.00626.77
8.1.220.0210.01726.77
8.1.210.0280.01026.77
8.1.200.0250.01226.77
8.1.190.0320.00526.77
8.1.180.0310.00626.77
8.1.170.0340.00426.77
8.1.160.0340.00326.77
8.1.150.0290.00926.77
8.1.140.0310.00826.77
8.1.130.0240.01426.77
8.1.120.0370.00626.77
8.1.110.0330.00726.77
8.1.100.0340.00426.77
8.1.90.0340.00426.77
8.1.80.0270.01126.77
8.1.70.0300.00826.77
8.1.60.0310.01026.77
8.1.50.0340.00526.77
8.1.40.0340.00726.77
8.1.30.0410.00026.77
8.1.20.0280.01726.77
8.1.10.0340.00726.77
8.1.00.0350.00726.77

preferences:
29.73 ms | 403 KiB | 5 Q