3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Selami\Foundation\App; use Psr\Logging\Logger; class MyClass { public function __construct(App $app, Logger $log) { } } $method = new ReflectionMethod(MyClass::class, '__construct'); $parameters = $method->getParameters(); var_dump($parameters); foreach($parameters as $param) { var_dump($param->getClass()->name); }

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.60.0090.00616.61
8.3.50.0040.01116.50
8.3.40.0070.00718.97
8.3.30.0120.00618.61
8.3.20.0040.00420.28
8.3.10.0060.00323.48
8.3.00.0040.00419.54
8.2.180.0150.00018.41
8.2.170.0120.00322.96
8.2.160.0080.00819.09
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00821.11
8.2.120.0050.00326.35
8.2.110.0000.00920.86
8.2.100.0130.00317.84
8.2.90.0050.00319.09
8.2.80.0060.00317.97
8.2.70.0030.00517.50
8.2.60.0040.00418.04
8.2.50.0090.00018.10
8.2.40.0040.00420.42
8.2.30.0000.00819.14
8.2.20.0000.00817.97
8.2.10.0000.00817.97
8.2.00.0080.00018.04
8.1.280.0110.00425.92
8.1.270.0000.00822.06
8.1.260.0080.00026.35
8.1.250.0020.00528.09
8.1.240.0040.00424.03
8.1.230.0030.00718.94
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.50
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.00718.95
8.1.160.0020.00518.94
8.1.150.0040.00420.57
8.1.140.0040.00719.57
8.1.130.0020.00518.75
8.1.120.0040.00417.35
8.1.110.0030.00517.46
8.1.100.0020.00517.53
8.1.90.0050.00217.43
8.1.80.0020.00517.50
8.1.70.0000.00717.44
8.1.60.0130.00017.62
8.1.50.0040.00417.43
8.1.40.0100.00617.39
8.1.30.0000.00717.61
8.1.20.0040.00417.66
8.1.10.0000.00717.57
8.1.00.0000.00717.38
8.0.300.0040.00420.07
8.0.290.0000.00716.75
8.0.280.0000.00818.45
8.0.270.0030.00317.31
8.0.260.0000.00716.93
8.0.250.0040.00417.07
8.0.240.0000.00717.03
8.0.230.0070.00017.04
8.0.220.0000.00816.84
8.0.210.0040.00416.85
8.0.200.0030.00317.07
8.0.190.0050.00317.03
8.0.180.0070.00016.88
8.0.170.0030.00317.00
8.0.160.0030.00616.95
8.0.150.0040.00416.78
8.0.140.0000.00716.91
8.0.130.0000.00513.38
8.0.120.0040.00416.84
8.0.110.0040.00416.91
8.0.100.0000.00816.90
8.0.90.0060.00316.76
8.0.80.0110.00716.98
8.0.70.0000.00716.85
8.0.60.0040.00416.75
8.0.50.0050.00216.90
8.0.30.0100.00917.02
8.0.20.0070.01217.40
8.0.10.0070.00017.03
8.0.00.0080.00916.72
7.4.330.0070.00015.55
7.4.320.0080.00016.49
7.4.300.0000.00616.66
7.4.290.0030.00316.60
7.4.280.0000.00816.47
7.4.270.0030.00316.44
7.4.260.0040.00416.49
7.4.250.0000.00716.37
7.4.240.0030.00516.65
7.4.230.0040.00416.41
7.4.220.0130.00616.71
7.4.210.0080.00616.55
7.4.200.0030.00516.68
7.4.160.0090.00916.51
7.4.150.0140.00417.40
7.4.140.0150.00617.86
7.4.130.0130.00516.45
7.4.120.0090.01016.54
7.3.330.0060.00013.33
7.3.320.0050.00013.32
7.3.310.0070.00016.35
7.3.300.0000.00716.32
7.3.290.0080.00816.38
7.3.280.0080.00916.33
7.3.270.0170.00017.40
7.3.260.0110.01016.41
7.3.250.0080.01216.50
7.3.240.0130.00516.60
7.1.70.0070.00717.29

preferences:
35.87 ms | 401 KiB | 5 Q