3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { function myMethod() {} } class Foo extends ReflectionMethod { // Note: PHP never requires a child's constructor signature to match the parent's, so we don't need to sniff for that public function __construct() { parent::__construct('MyClass::myMethod'); } } $method = new Foo(); echo 'Signature 1 called in a child class, deprecated since 8.4: ' . $method->isPublic() . "\n"; class Bar extends Foo // 2 levels of inheritance { public function __construct() { parent::__construct(); } } $method = new Bar(); echo 'ReflectionMethod not called directly, triggers deprecation on Foo indirectly, checking Bar is out of scope for sniff: ' . $method->isPublic() . "\n";

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.0370.00817.50
8.4.130.0360.00817.68
8.4.120.0510.00517.44
8.4.110.0320.01517.63
8.4.100.0330.01417.59
8.4.90.0400.01117.74
8.4.80.0390.01017.69
8.4.70.0410.00917.55
8.4.60.0410.00917.81
8.4.50.0400.00717.89
8.4.40.0440.01617.62
8.4.30.0370.01317.41
8.4.20.0480.00717.37
8.4.10.0490.00917.14
8.3.270.0370.00816.53
8.3.260.0410.00516.51
8.3.250.0360.01116.47
8.3.240.0360.00816.40
8.3.230.0360.00916.38
8.3.220.0420.00716.59
8.3.210.0360.00816.68
8.3.200.0360.00716.54
8.3.190.0390.00716.30
8.3.180.0410.00516.25
8.3.170.0390.00816.32
8.3.160.0380.00916.25
8.3.150.0410.00716.53
8.3.140.0350.01316.73
8.3.130.0320.01016.50
8.3.120.0330.01016.46
8.3.110.0340.00916.70
8.3.100.0470.00816.47
8.3.90.0380.01016.62
8.3.80.0360.01016.67
8.3.70.0360.01116.18
8.3.60.0360.01316.60
8.3.50.0390.00916.51
8.3.40.0430.00717.44
8.3.30.0380.00817.41
8.3.20.0350.01217.16
8.3.10.0290.00917.15
8.3.00.0380.01017.37
8.2.290.0320.01116.66
8.2.280.0260.01316.36
8.2.270.0310.00916.71
8.2.260.0310.00916.37
8.2.250.0350.00816.78
8.2.240.0360.00416.57
8.2.230.0300.01016.13
8.2.220.0300.01116.35
8.2.210.0300.01316.36
8.2.200.0380.00616.54
8.2.190.0310.00816.32
8.2.180.0310.00816.45
8.2.170.0380.00517.59
8.2.160.0360.01017.71
8.2.150.0340.01117.57
8.2.140.0330.00817.30
8.2.130.0310.01317.32
8.2.120.0400.00217.63
8.2.110.0380.00717.69
8.2.100.0300.00617.61
8.2.90.0310.01017.64
8.2.80.0310.01017.57
8.2.70.0350.00817.32
8.2.60.0350.00717.38
8.2.50.0430.00917.38
8.2.40.0370.00817.53
8.2.30.0290.01017.25
8.2.20.0370.00717.53
8.2.10.0310.00817.36
8.2.00.0320.00917.48

preferences:
29.02 ms | 403 KiB | 5 Q