3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA {} class ClassB extends ClassA { public function methodA(self $self, parent $parent) {} } $c = new ReflectionClass('ClassB'); $m = $c->getMethod('methodA'); $t1 = $m->getParameters()[0]->getType()->getName(); $t2 = $m->getParameters()[1]->getType()->getName(); var_dump($t1, $t2, (string) $m);

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.130.0060.00316.79
8.3.120.0030.00620.55
8.3.110.0090.00020.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0000.00919.36
8.3.70.0190.00316.58
8.3.60.0150.00418.06
8.3.50.0130.00724.43
8.3.40.0070.00721.87
8.3.30.0060.01318.52
8.3.20.0040.00424.18
8.3.10.0070.00724.66
8.3.00.0040.00426.16
8.2.250.0110.00418.34
8.2.240.0110.00418.70
8.2.230.0040.00422.58
8.2.220.0100.00037.54
8.2.210.0090.00626.77
8.2.200.0040.00418.88
8.2.190.0100.01016.58
8.2.180.0030.01725.92
8.2.170.0090.00619.01
8.2.160.0090.00622.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0170.00020.56
8.2.100.0080.00317.91
8.2.90.0050.00317.63
8.2.80.0060.00318.78
8.2.70.0030.00917.93
8.2.60.0000.00817.90
8.2.50.0060.00318.10
8.2.40.0040.00819.22
8.2.30.0020.00519.20
8.2.20.0000.00718.00
8.2.10.0070.00019.14
8.2.00.0040.00419.21
8.1.300.0000.00920.37
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0060.00320.36
8.1.260.0100.00028.09
8.1.250.0050.00328.09
8.1.240.0060.00319.42
8.1.230.0040.00817.83
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0030.00618.36
8.1.160.0050.00319.00
8.1.150.0000.00718.78
8.1.140.0050.00318.84
8.1.130.0070.00020.09
8.1.120.0050.00317.40
8.1.110.0000.00717.43
8.1.100.0070.00017.30
8.1.90.0030.00517.34
8.1.80.0000.00817.33
8.1.70.0000.00717.43
8.1.60.0070.00317.61
8.1.50.0040.00417.56
8.1.40.0000.00817.43
8.1.30.0070.00017.70
8.1.20.0050.00317.69
8.1.10.0060.00617.54
8.1.00.0070.00017.50
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0040.00418.51
8.0.270.0050.00216.68
8.0.260.0060.00018.46
8.0.250.0030.00316.80
8.0.240.0000.00616.93
8.0.230.0000.00716.79
8.0.220.0030.00316.83
8.0.210.0000.00816.78
8.0.200.0000.00716.95
8.0.190.0040.00416.80
8.0.180.0000.00716.86
8.0.170.0050.00316.71
8.0.160.0050.00316.84
8.0.150.0030.00316.81
8.0.140.0050.00216.77
8.0.130.0000.00513.24
8.0.120.0080.00016.92
8.0.110.0070.00016.88
8.0.100.0040.00416.85
8.0.90.0040.00416.89
8.0.80.0090.00916.84
8.0.70.0000.00816.91
8.0.60.0040.00416.92
8.0.50.0040.00416.85
8.0.30.0130.00617.21
8.0.20.0090.01316.92
8.0.10.0050.00217.09
8.0.00.0140.00516.74
7.4.330.0050.00015.55
7.4.320.0030.00316.39
7.4.300.0030.00316.61
7.4.290.0000.00816.59
7.4.280.0040.00416.41
7.4.270.0030.00316.54
7.4.260.0000.00513.32
7.4.250.0000.00716.59
7.4.240.0070.00016.66
7.4.230.0070.00016.69
7.4.220.0050.00216.49
7.4.210.0090.00816.58
7.4.200.0070.00016.61
7.4.130.0060.01316.38
7.4.120.0100.01416.42
7.4.110.0150.00416.36
7.4.100.0160.01016.45
7.4.90.0150.01316.44
7.4.80.0060.01216.45
7.4.70.0140.01016.41
7.4.60.0120.00616.29
7.4.50.0090.01216.75
7.4.40.0180.00316.30
7.4.30.0090.00916.52
7.4.20.0150.00616.36
7.4.10.0100.01016.39
7.4.00.0140.01016.04
7.3.330.0030.00516.40
7.3.320.0000.00513.38
7.3.310.0070.00016.35
7.3.300.0060.00016.23
7.3.290.0040.01016.29
7.3.260.0070.01116.50
7.3.250.0130.01416.45
7.3.240.0130.00716.42
7.3.230.0120.00616.19
7.3.220.0130.01016.59
7.3.210.0100.01416.47
7.3.200.0170.01316.21
7.3.190.0120.01116.38
7.3.180.0150.00316.61
7.3.170.0090.01216.36
7.3.160.0090.00916.41
7.3.150.0100.01416.23
7.3.140.0040.01316.56
7.3.130.0100.01016.38
7.3.120.0120.00916.29
7.3.110.0110.00816.35
7.3.100.0180.00016.41
7.3.90.0090.00916.20
7.3.80.0110.00816.25
7.3.70.0120.00616.32
7.3.60.0060.01316.37
7.3.50.0100.01316.27
7.3.40.0110.01116.43
7.3.30.0110.00616.31
7.3.20.0200.00416.35
7.3.10.0100.00716.35
7.3.00.0070.01116.33

preferences:
27.79 ms | 403 KiB | 5 Q