3v4l.org

run code in 300+ PHP versions simultaneously
<?php // \Drupal\Core\Entity\EntityInterface interface EntityInterface { // ... } // \Drupal\Core\Entity\OwnerInterface interface OwnerInterface extends EntityInterface { // Just a marker interface (for now?). } // \Drupal\user\UserInterface interface UserInterface extends OwnerInterface { // ... } // \Drupal\user\User class User implements UserInterface { } // \Drupal\Core\Entity\OwnedEntityInterface interface OwnedEntityInterface { // For callers this work fine when you pass an object whose class implements // UserInterface. Implementors may need to adapt but this is fine according to // our current policies (https://www.drupal.org/core/d8-bc-policy): // "Interfaces follow a similar pattern as above with respect to @api, // @internal, or neither. However, in case of neither tag, the interface is // treated as an API for callers but not for implementers." public function setOwner(OwnerInterface $owner); // ... } // Example class. class OwnedEntity implements OwnedEntityInterface { public function setOwner(OwnerInterface $owner) {} } /** * @deprecated */ // \Drupal\user\EntityOwnerInterface interface EntityOwnerInterface extends OwnedEntityInterface { // This now empty, all methods are in "OwnedEntityInterface". } $user = new User(); $entity = new OwnedEntity(); $entity->setOwner($user);

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.3.70.0090.00618.18
8.3.60.0100.00716.75
8.3.50.0070.01217.41
8.3.40.0040.01118.63
8.3.30.0140.00318.54
8.3.20.0030.00520.30
8.3.10.0080.00021.85
8.3.00.0080.00023.65
8.2.190.0120.00916.58
8.2.180.0120.00318.16
8.2.170.0070.00722.96
8.2.160.0000.01419.29
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00822.06
8.2.120.0070.00026.35
8.2.110.0070.00322.08
8.2.100.0030.00717.91
8.2.90.0050.00322.34
8.2.80.0000.00917.97
8.2.70.0050.00317.55
8.2.60.0000.00718.03
8.2.50.0080.00018.10
8.2.40.0060.00320.46
8.2.30.0040.00419.32
8.2.20.0040.00417.98
8.2.10.0000.00818.08
8.2.00.0000.00718.05
8.1.280.0070.00725.92
8.1.270.0050.00322.10
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00722.47
8.1.230.0080.00420.88
8.1.220.0000.00817.74
8.1.210.0030.00518.87
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0000.00918.58
8.1.160.0040.00418.91
8.1.150.0000.00820.20
8.1.140.0000.00719.08
8.1.130.0030.00319.03
8.1.120.0030.00617.45
8.1.110.0040.00417.50
8.1.100.0070.00017.51
8.1.90.0030.00317.43
8.1.80.0060.00317.52
8.1.70.0040.00417.44
8.1.60.0050.00317.62
8.1.50.0030.00617.50
8.1.40.0120.00017.42
8.1.30.0040.00417.69
8.1.20.0040.00417.60
8.1.10.0000.00817.50
8.1.00.0040.00417.46
8.0.300.0040.00420.03
8.0.290.0030.00516.88
8.0.280.0030.00318.38
8.0.270.0030.00317.16
8.0.260.0040.00418.43
8.0.250.0070.00017.04
8.0.240.0070.00017.04
8.0.230.0040.00417.01
8.0.220.0040.00416.91
8.0.210.0040.00417.03
8.0.200.0000.00716.92
8.0.190.0060.00316.97
8.0.180.0040.00416.99
8.0.170.0070.00017.03
8.0.160.0040.00416.96
8.0.150.0000.00716.87
8.0.140.0030.00616.93
8.0.130.0030.00313.34
8.0.120.0000.00716.94
8.0.110.0040.00416.95
8.0.100.0070.00016.86
8.0.90.0000.00717.01
8.0.80.0070.01416.93
8.0.70.0070.00017.03
8.0.60.0050.00316.82
8.0.50.0000.00716.80
8.0.30.0070.01117.12
8.0.20.0110.01017.40
8.0.10.0040.00416.94
8.0.00.0150.00316.75
7.4.330.0050.00015.55
7.4.320.0030.00316.58
7.4.300.0030.00316.53
7.4.290.0050.00316.46
7.4.280.0030.00516.51
7.4.270.0060.00016.63
7.4.260.0030.00816.61
7.4.250.0030.00316.44
7.4.240.0050.00316.61
7.4.230.0040.00416.40
7.4.220.0140.00416.61
7.4.210.0060.00916.72
7.4.200.0000.00816.62
7.4.160.0090.00716.61
7.4.150.0110.00817.40
7.4.140.0120.00917.86
7.4.130.0060.01216.50
7.4.120.0130.00516.49
7.4.110.0070.01016.43
7.4.100.0080.00816.54
7.4.90.0070.01016.52
7.4.80.0130.00419.39
7.4.70.0130.00716.45
7.4.60.0060.01816.48
7.4.50.0080.00416.50
7.4.40.0090.00916.73
7.4.30.0090.00616.60
7.4.00.0040.01114.80
7.3.330.0000.00513.16
7.3.320.0030.00313.29
7.3.310.0070.00016.27
7.3.300.0040.00416.15
7.3.290.0070.00816.24
7.3.280.0060.01216.22
7.3.270.0070.01017.40
7.3.260.0160.00616.36
7.3.250.0110.00616.44
7.3.240.0060.01016.39
7.3.230.0110.00616.17
7.3.210.0120.00316.46
7.3.200.0110.01216.49
7.3.190.0110.01116.22
7.3.180.0100.00616.25
7.3.170.0060.01016.54
7.3.160.0090.00616.18
7.2.330.0070.01016.43
7.2.320.0130.00716.69
7.2.310.0130.00516.73
7.2.300.0160.00316.84
7.2.290.0040.01316.73
7.2.60.0090.00616.77
7.1.200.0110.00015.84
7.1.120.1260.00716.98
7.1.110.0410.00616.08
7.1.100.0350.01016.19
7.1.90.0430.00616.39
7.1.80.0530.01116.43
7.1.70.0420.00715.20
7.1.60.0530.01033.19
7.1.50.0430.02033.05
7.1.40.0620.01332.59
7.1.30.0540.01332.53
7.1.20.0600.01132.55
7.1.10.0400.01014.64
7.1.00.0430.00914.98
7.0.250.0470.00915.96
7.0.240.0530.00716.09
7.0.230.0480.00715.62
7.0.220.0370.01015.58
7.0.210.0560.00314.78
7.0.200.1010.01314.81
7.0.190.0420.00614.96
7.0.180.0370.01014.51
7.0.170.1410.00314.36
7.0.160.0560.00714.45
7.0.150.0430.01314.35
7.0.140.0440.00614.47
7.0.130.0440.00714.85
7.0.120.0440.01314.45
7.0.110.0500.00614.39
7.0.100.0460.00714.49
7.0.90.0450.01014.52
7.0.80.0440.00714.76
7.0.70.0410.01014.52
7.0.60.0360.01114.22
7.0.50.0350.01614.39
7.0.40.0400.00714.85
7.0.30.0420.00914.84
7.0.20.0490.00714.52
7.0.10.0480.00614.32
7.0.00.0350.01014.47

preferences:
15.54 ms | 401 KiB | 5 Q