3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; trait Baz { } final class Xyz { private function __construct() { } public static function getNamespace() { return 'Bar'; } } namespace Drupal\Tests; // In order to manage different method signatures between PHPUnit versions, we // dynamically load a compatibility trait dependent on the PHPUnit runner // version. if (!trait_exists(PhpunitVersionDependentTestCompatibilityTrait::class, FALSE)) { class_alias("Foo\\" . \Foo\Bar\Xyz::getNamespace() . "\Baz", PhpunitVersionDependentTestCompatibilityTrait::class); } /** * Makes Drupal's test API forward compatible with multiple versions of PHPUnit. */ trait PhpunitCompatibilityTrait { use PhpunitVersionDependentTestCompatibilityTrait; } $ref = new \ReflectionClass(PhpunitCompatibilityTrait::class); var_dump($ref->getStartLine());

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.10.0050.00521.22
8.3.140.0050.00516.78
8.3.130.0070.01118.37
8.3.120.0040.00420.89
8.3.110.0060.00320.94
8.3.100.0060.00318.30
8.3.90.0060.00926.77
8.3.80.0090.00016.75
8.3.70.0130.00616.58
8.3.60.0100.01016.50
8.3.50.0100.00823.67
8.3.40.0000.01521.71
8.3.30.0110.00718.65
8.3.20.0080.00024.18
8.3.10.0000.00724.66
8.3.00.0090.00026.16
8.2.250.0050.00318.65
8.2.240.0060.00317.30
8.2.230.0000.00822.58
8.2.220.0060.00924.06
8.2.210.0080.00026.77
8.2.200.0080.00418.54
8.2.190.0040.01516.59
8.2.180.0160.00325.92
8.2.170.0090.00618.82
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.82
8.2.110.0100.00021.00
8.2.100.0070.00417.84
8.2.90.0090.00019.70
8.2.80.0040.00420.53
8.2.70.0060.00318.04
8.2.60.0050.00318.22
8.2.50.0050.00318.10
8.2.40.0000.00819.21
8.2.30.0040.00419.25
8.2.20.0000.00718.06
8.2.10.0000.00919.25
8.2.00.0040.00419.25
8.1.300.0040.01215.87
8.1.290.0040.00430.84
8.1.280.0120.00325.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.02
8.1.230.0000.01222.63
8.1.220.0040.00417.79
8.1.210.0080.00018.86
8.1.200.0000.00917.36
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0050.00318.44
8.1.160.0050.00219.02
8.1.150.0000.00718.95
8.1.140.0000.00718.89
8.1.130.0030.00320.05
8.1.120.0100.00017.46
8.1.110.0000.00717.44
8.1.100.0000.00717.41
8.1.90.0000.00717.34
8.1.80.0050.00317.46
8.1.70.0050.00317.34
8.1.60.0030.00617.55
8.1.50.0080.00017.41
8.1.40.0080.00017.53
8.1.30.0020.00517.64
8.1.20.0000.00717.67
8.1.10.0030.00617.54
8.1.00.0030.00617.40
8.0.300.0030.00320.17
8.0.290.0070.00016.63
8.0.280.0070.00018.32
8.0.270.0000.00716.82
8.0.260.0000.00618.57
8.0.250.0030.00317.02
8.0.240.0000.00616.87
8.0.230.0070.00016.97
8.0.220.0030.00316.83
8.0.210.0000.00716.79
8.0.200.0030.00316.82
8.0.190.0030.00516.87
8.0.180.0000.00716.85
8.0.170.0030.00616.90
8.0.160.0040.00416.94
8.0.150.0000.00816.84
8.0.140.0000.00716.91
8.0.130.0030.00313.32
8.0.120.0070.00016.90
8.0.110.0040.00416.91
8.0.100.0000.00816.86
8.0.90.0020.00516.73
8.0.80.0050.01316.92
8.0.70.0040.00416.85
8.0.60.0040.00416.77
8.0.50.0030.00316.76
8.0.30.0030.01417.04
8.0.20.0100.00917.05
8.0.10.0050.00317.08
8.0.00.0150.00416.55
7.4.330.0000.00515.55
7.4.320.0000.00616.57
7.4.300.0060.00016.55
7.4.290.0000.00816.55
7.4.280.0080.00016.41
7.4.270.0000.00716.41
7.4.260.0050.00013.34
7.4.250.0000.00816.39
7.4.240.0030.00316.56
7.4.230.0000.00716.43
7.4.220.0020.00516.54
7.4.210.0100.00516.61
7.4.200.0040.00416.71
7.4.130.0190.00616.66
7.4.120.0140.00416.26
7.4.110.0070.01416.29
7.4.100.0110.00816.46
7.4.90.0070.01016.32
7.4.80.0100.01016.31
7.4.70.0060.01316.57
7.4.60.0090.00916.20
7.4.50.0180.00316.14
7.4.40.0120.00616.00
7.4.30.0150.00616.35
7.4.20.0120.00716.20
7.4.10.0090.00916.31
7.4.00.0100.01316.23
7.3.330.0070.00016.32
7.3.320.0050.00013.34
7.3.310.0000.00716.36
7.3.300.0040.00416.19
7.3.290.0060.01016.29
7.3.260.0070.01116.29
7.3.250.0090.00916.43
7.3.240.0110.00716.31
7.3.230.0100.00716.07
7.3.220.0060.01216.21
7.3.210.0150.00316.38
7.3.200.0050.01416.32
7.3.190.0090.01216.39
7.3.180.0090.00916.23
7.3.170.0060.01316.31
7.3.160.0090.00916.14
7.3.150.0140.00316.55
7.3.140.0100.00916.28
7.3.130.0070.01416.30
7.3.120.0130.01016.29
7.3.110.0150.00916.06
7.3.100.0100.01316.07
7.3.90.0100.01316.35
7.3.80.0100.01316.29
7.3.70.0100.01016.44
7.3.60.0070.01316.36
7.3.50.0070.01016.33
7.3.40.0070.01016.16
7.3.30.0120.00616.09
7.3.20.0130.00616.30
7.3.10.0110.00716.24
7.3.00.0130.00916.44

preferences:
59.06 ms | 403 KiB | 5 Q