3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ParentMapperInterface { } interface ChildMapperInterface extends ParentMapperInterface { } class ChildMapper implements ChildMapperInterface { } class ParentClass { protected ParentMapperInterface $mapper; public function __construct(ParentMapperInterface $mapper) { $this->mapper = $mapper; } } class ChildClass extends ParentClass { protected int $other; public function __construct(ChildMapperInterface $mapper, int $other) { parent::__construct($mapper); $this->other = $other; } } $obj = new ChildClass(new ChildMapper(), 0);

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.5.10.0090.01016.79
8.5.00.0100.01219.93
8.4.150.0030.00014.05
8.4.140.0140.00717.56
8.4.130.0090.01117.69
8.4.120.0090.00520.71
8.4.110.0090.00524.21
8.4.100.0080.01118.89
8.4.90.0080.00318.86
8.4.80.0110.00518.99
8.4.70.0060.00517.87
8.4.60.0110.00920.20
8.4.50.0140.00521.44
8.4.40.0100.01417.58
8.4.30.0150.00618.67
8.4.20.0130.00719.70
8.4.10.0060.00319.47
8.3.280.0140.00618.34
8.3.270.0100.01116.64
8.3.260.0090.01016.70
8.3.250.0120.00618.82
8.3.240.0090.00517.23
8.3.230.0120.00716.52
8.3.220.0040.00420.68
8.3.210.0090.01116.61
8.3.200.0050.00416.50
8.3.190.0110.00717.29
8.3.180.0040.00317.20
8.3.170.0070.01019.05
8.3.160.0150.00316.41
8.3.150.0030.00517.26
8.3.140.0000.00816.71
8.3.130.0120.00618.41
8.3.120.0030.00619.10
8.3.110.0000.00820.94
8.3.100.0150.00416.73
8.3.90.0090.00618.38
8.3.80.0400.00630.84
8.3.70.0350.01330.84
8.3.60.0390.00930.84
8.3.50.0190.00030.84
8.3.40.0280.01230.84
8.3.30.0370.00730.84
8.3.20.0360.00730.84
8.3.10.0290.01430.84
8.3.00.0360.00730.84
8.2.290.0120.00620.32
8.2.280.0060.00318.26
8.2.270.0040.00417.44
8.2.260.0040.00416.66
8.2.250.0090.00016.70
8.2.240.0070.00019.13
8.2.230.0080.00022.58
8.2.220.0110.00624.06
8.2.210.0060.01226.77
8.2.200.0340.00930.84
8.2.190.0290.00930.84
8.2.180.0340.00630.84
8.2.170.0310.00430.84
8.2.160.0330.00730.84
8.2.150.0390.00730.84
8.2.140.0280.01630.84
8.2.130.0360.00730.84
8.2.120.0400.01030.84
8.2.110.0330.01230.84
8.2.100.0380.00030.84
8.2.90.0220.01330.84
8.2.80.0230.01130.84
8.2.70.0270.01430.84
8.2.60.0330.01130.84
8.2.50.0440.00330.84
8.2.40.0330.00730.84
8.2.30.0250.01330.84
8.2.20.0270.00930.84
8.2.10.0200.01230.84
8.2.00.0210.00430.84
8.1.330.0110.00921.91
8.1.320.0120.00716.16
8.1.310.0110.00418.42
8.1.300.0070.00417.77
8.1.290.0250.01230.84
8.1.280.0410.00030.84
8.1.270.0390.01330.84
8.1.260.0390.00430.84
8.1.250.0370.00730.84
8.1.240.0310.00730.84
8.1.230.0300.00730.84
8.1.220.0310.00730.84
8.1.210.0320.00630.84
8.1.200.0280.01230.84
8.1.190.0370.00930.84
8.1.180.0410.00030.84
8.1.170.0330.00630.84
8.1.160.0270.01230.84
8.1.150.0310.00730.84
8.1.140.0290.00830.84
8.1.130.0330.00630.84
8.1.120.0280.01030.84
8.1.110.0320.00630.84
8.1.100.0300.00930.84
8.1.90.0350.00730.84
8.1.80.0330.00730.84
8.1.70.0310.00730.84
8.1.60.0370.00430.84
8.1.50.0230.01330.84
8.1.40.0280.00730.84
8.1.30.0160.00430.84
8.1.20.0350.00630.84
8.1.10.0420.00830.84
8.1.00.0440.00730.84

preferences:
31.6 ms | 403 KiB | 5 Q