3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpNotFoundException extends RestResponseException { public function getHttpStatusCode() { // ... } } abstract class RestResponseException extends IdentifiableException { public abstract function getHttpStatusCode(); } class IdentifiableException extends Exception { // ... } // ----------------------- and here come the tests: class HttpNotFoundExceptionTests extends RestResponseExceptionTests { protected function getSystemUnderTest() { return new HttpNotFoundException(); } // ... tests logic specific to HttpNotFoundException } class RestResponseExceptionTests extends IdentifiableExceptionTests { /** * @return RestResponseException */ protected abstract function getSystemUnderTest(); } class IdentifiableExceptionTests extends PHPUnit_Framework_TestCase { /** * @return IdentifiableException */ protected function getSystemUnderTest() { return new IdentifiableException(); } //... tests IdentifiableException logic }

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)
5.4.300.0060.03912.53
5.4.290.0060.04312.52
5.4.280.0050.03812.41
5.4.270.0090.03812.41
5.4.260.0070.04212.41
5.4.250.0110.03412.41
5.4.240.0060.04012.41
5.4.230.0080.03612.41
5.4.220.0110.03812.41
5.4.210.0130.04412.41
5.4.200.0080.03812.41
5.4.190.0060.05112.41
5.4.180.0070.03912.41
5.4.170.0090.03812.41
5.4.160.0060.04012.41
5.4.150.0060.04712.40
5.4.140.0050.04412.09
5.4.130.0080.03812.08
5.4.120.0060.04112.03
5.4.110.0120.03212.03
5.4.100.0070.04012.03
5.4.90.0080.03612.03
5.4.80.0080.03612.03
5.4.70.0080.03612.03
5.4.60.0080.03912.02
5.4.50.0090.03412.02
5.4.40.0050.03712.01
5.4.30.0060.03812.01
5.4.20.0070.03512.01
5.4.10.0100.03212.01
5.4.00.0020.04211.50
5.3.280.0130.04612.71
5.3.270.0100.05212.72
5.3.260.0130.04712.72
5.3.250.0120.04912.72
5.3.240.0090.04712.72
5.3.230.0070.03912.71
5.3.220.0060.04012.68
5.3.210.0150.04712.68
5.3.200.0120.04912.68
5.3.190.0110.04612.68
5.3.180.0070.04812.68
5.3.170.0070.04012.67
5.3.160.0080.04012.68
5.3.150.0120.03612.67
5.3.140.0070.04812.66
5.3.130.0060.04212.66
5.3.120.0110.04712.66
5.3.110.0090.04912.66
5.3.100.0060.03912.14
5.3.90.0080.04612.12
5.3.80.0090.03912.11
5.3.70.0040.04112.11

preferences:
138.97 ms | 1394 KiB | 7 Q