3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); trait UiHelperTrait { public function drupalGet(string $url): string { return '<html><body><h1>Something</h1></body></html>'; } } class BrowserTestBase { use UiHelperTrait; } class OverrideTraitMethodSignatureInChildClassTest extends BrowserTestBase { public function drupalGet(string $url): int { return 200; } } $test = new OverrideTraitMethodSignatureInChildClassTest(); var_dump($test->drupalGet('https://drupal.org'));

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.130.0150.00517.84
8.4.120.0050.00425.97
8.4.110.0040.00622.36
8.4.100.0120.00817.51
8.4.90.0100.01017.55
8.4.80.0450.00517.81
8.4.70.0400.00817.69
8.4.60.0380.00817.98
8.4.50.0320.01117.34
8.4.40.0400.01017.75
8.4.30.0400.01017.61
8.4.20.0430.00817.61
8.4.10.0450.00917.20
8.3.260.0110.00916.80
8.3.250.0120.00718.70
8.3.240.0110.00616.64
8.3.230.0080.00816.77
8.3.220.0390.00616.97
8.3.210.0130.00716.97
8.3.200.0150.00516.97
8.3.190.0370.00816.97
8.3.180.0230.00316.97
8.3.170.0360.00816.97
8.3.160.0260.01016.97
8.3.150.0160.00616.97
8.3.140.0200.00316.97
8.3.130.0170.00316.97
8.3.120.0220.00316.97
8.3.110.0170.00616.97
8.3.100.0180.00516.97
8.3.90.0200.00316.97
8.3.80.0320.00716.97
8.3.70.0350.00616.97
8.3.60.0190.00416.97
8.3.50.0190.00316.97
8.3.40.0460.00317.76
8.3.30.0260.01217.42
8.3.20.0300.00917.27
8.3.10.0320.00617.50
8.3.00.0240.00817.47
8.2.290.0120.00822.01
8.2.280.0280.01016.97
8.2.270.0300.01016.97
8.2.260.0350.00716.97
8.2.250.0360.00716.97
8.2.240.0340.00716.97
8.2.230.0280.01316.97
8.2.220.0310.00616.97
8.2.210.0180.00416.97
8.2.200.0130.00516.97
8.2.190.0180.00416.97
8.2.180.0280.00716.97
8.2.170.0320.00617.56
8.2.160.0340.00917.46
8.2.150.0350.00717.31
8.2.140.0340.00617.32
8.2.130.0360.00817.29
8.2.120.0340.01317.38
8.2.110.0320.01017.43
8.2.100.0320.01017.48
8.2.90.0230.00517.64
8.2.80.0150.00417.34
8.2.70.0210.00517.34
8.2.60.0250.00517.23
8.2.50.0350.00917.18
8.2.40.0280.01017.07
8.2.30.0390.00817.16
8.2.20.0320.00717.34
8.2.10.0310.00417.43
8.2.00.0290.00917.54

preferences:
27.12 ms | 403 KiB | 5 Q