3v4l.org

run code in 300+ PHP versions simultaneously
<?php // \Drupal\Core\Entity\EntityInterface interface EntityInterface { public function id(); // ... } // \Drupal\user\UserInterface interface UserInterface extends EntityInterface { // ... } // \Drupal\user\User class User implements UserInterface { public function id() {} } // \Drupal\Core\Entity\OwnedEntityInterface interface OwnedEntityInterface { public function setOwnerId($id); public function getOwnerId(); } // \Drupal\user\EntityOwnerInterface interface EntityOwnerInterface extends OwnedEntityInterface { public function setOwner(UserInterface $owner); public function getOwner(); } // Example class. class OwnedEntity implements EntityOwnerInterface { public function setOwnerId($id) {} public function getOwnerId() {} public function setOwner(UserInterface $owner) {} public function getOwner() {} } $user = new User(); $entity = new OwnedEntity(); $entity->setOwnerId($user->id());

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.0100.01018.43
8.3.60.0070.00716.75
8.3.50.0080.00517.40
8.3.40.0070.00718.56
8.3.30.0070.00718.59
8.3.20.0040.00420.38
8.3.10.0040.00421.89
8.3.00.0000.00723.66
8.2.190.0120.00916.58
8.2.180.0090.00618.16
8.2.170.0000.01522.96
8.2.160.0030.01219.21
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00720.52
8.2.120.0070.00026.35
8.2.110.0070.00320.35
8.2.100.0110.00017.78
8.2.90.0000.00818.03
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0060.00318.16
8.2.30.0080.00218.08
8.2.20.0040.00418.05
8.2.10.0050.00218.07
8.2.00.0040.00417.99
8.1.280.0120.00325.92
8.1.270.0080.00021.94
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0080.00422.57
8.1.220.0000.00817.74
8.1.210.0000.00918.82
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0040.00418.48
8.1.160.0050.00318.82
8.1.150.0040.00420.15
8.1.140.0040.00419.00
8.1.130.0030.00518.97
8.1.120.0120.00017.39
8.1.110.0040.00417.43
8.1.100.0040.00417.36
8.1.90.0040.00417.46
8.1.80.0000.00817.43
8.1.70.0050.00217.38
8.1.60.0060.00317.60
8.1.50.0040.00417.58
8.1.40.0110.00017.42
8.1.30.0030.00517.68
8.1.20.0030.00617.64
8.1.10.0000.00817.39
8.1.00.0030.00517.47
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0050.00318.38
8.0.270.0040.00416.89
8.0.260.0030.00318.37
8.0.250.0030.00317.02
8.0.240.0000.00717.01
8.0.230.0000.00716.87
8.0.220.0000.00716.95
8.0.210.0040.00416.87
8.0.200.0000.00716.94
8.0.190.0030.00616.93
8.0.180.0040.00316.84
8.0.170.0000.00716.89
8.0.160.0040.00416.92
8.0.150.0040.00416.91
8.0.140.0040.00416.83
8.0.130.0050.00013.29
8.0.120.0070.00016.86
8.0.110.0070.00016.77
8.0.100.0040.00416.88
8.0.90.0000.00816.89
8.0.80.0120.00316.83
8.0.70.0030.00516.82
8.0.60.0070.00016.79
8.0.50.0040.00416.75
8.0.30.0090.01116.97
8.0.20.0070.01217.40
8.0.10.0070.00016.94
8.0.00.0160.00316.55
7.4.330.0050.00015.55
7.4.320.0000.00616.59
7.4.300.0030.00316.43
7.4.290.0030.00316.51
7.4.280.0070.00016.61
7.4.270.0000.00716.56
7.4.260.0070.00316.63
7.4.250.0050.00216.44
7.4.240.0000.00716.43
7.4.230.0030.00316.62
7.4.220.0120.00616.64
7.4.210.0040.01116.55
7.4.200.0000.00716.66
7.4.160.0040.01316.43
7.4.150.0090.00917.40
7.4.140.0120.01117.86
7.4.130.0150.00916.47
7.4.120.0110.00816.41
7.4.110.0100.00716.42
7.4.100.0130.00316.61
7.4.90.0140.00316.55
7.4.80.0030.01319.39
7.4.70.0130.00716.66
7.4.60.0120.00916.68
7.4.50.0000.01216.42
7.4.40.0120.00916.53
7.4.30.0060.01116.48
7.4.00.0120.00515.09
7.3.330.0050.00013.20
7.3.320.0030.00313.07
7.3.310.0000.00616.09
7.3.300.0030.00316.15
7.3.290.0070.00816.20
7.3.280.0050.01116.20
7.3.270.0030.01317.40
7.3.260.0080.00916.32
7.3.250.0090.00916.40
7.3.240.0090.01116.36
7.3.230.0030.01616.40
7.3.210.0140.00416.47
7.3.200.0130.00316.38
7.3.190.0060.00916.19
7.3.180.0150.00316.20
7.3.170.0060.01016.45
7.3.160.0060.01016.29
7.3.120.0060.00914.82
7.3.110.0030.00714.75
7.3.100.0100.00714.50
7.3.90.0060.00914.49
7.3.80.0030.00614.86
7.3.70.0060.01014.70
7.3.60.0030.00714.85
7.3.50.0000.01014.50
7.3.40.0060.00614.30
7.3.30.0060.00914.58
7.3.20.0090.00316.46
7.3.10.0040.00816.56
7.3.00.0060.00616.44
7.2.330.0090.00916.34
7.2.320.0060.01216.47
7.2.310.0090.00916.73
7.2.300.0040.01216.39
7.2.290.0070.01116.84
7.2.250.0040.01514.93
7.2.240.0130.00715.07
7.2.230.0060.00915.17
7.2.220.0060.00314.83
7.2.210.0060.00615.09
7.2.200.0030.01014.87
7.2.190.0070.00715.08
7.2.180.0000.01414.89
7.2.170.0070.00714.88
7.2.80.0060.01016.64
7.2.60.0100.00316.65
7.1.330.0000.01315.61
7.1.320.0030.00715.79
7.1.310.0040.01115.51
7.1.300.0000.01215.51
7.1.290.0030.00915.43
7.1.280.0060.00915.58
7.1.270.0000.01415.56
7.1.260.0060.00915.75
7.1.200.0070.00715.39
7.1.120.1190.01516.76
7.1.110.0530.01415.61
7.1.100.0520.01715.82
7.1.90.1040.01115.36
7.1.80.0570.01615.70
7.1.70.1230.00315.09
7.1.60.0900.00333.31
7.1.50.0820.01332.57
7.1.40.0520.01332.54
7.1.30.1300.01332.59
7.1.20.1520.01332.54
7.1.10.0760.01014.62
7.1.00.0540.01014.79
7.0.250.0480.00715.76
7.0.240.0860.01315.84
7.0.230.0890.01215.29
7.0.220.1110.01615.20
7.0.210.0630.01014.71
7.0.200.0720.01514.78
7.0.190.1430.00914.68
7.0.180.0840.00614.42
7.0.170.1230.00914.21
7.0.160.0780.00014.43
7.0.150.0710.00714.50
7.0.140.0550.00614.48
7.0.130.0580.00614.58
7.0.120.0690.01014.72
7.0.110.0470.01314.32
7.0.100.0710.01314.53
7.0.90.0610.01314.58
7.0.80.0460.00814.36
7.0.70.0660.00714.40
7.0.60.0490.01314.39
7.0.50.0520.01014.32
7.0.40.0850.01314.53
7.0.30.1050.00714.57
7.0.20.1140.01014.46
7.0.10.1050.01014.44
7.0.00.0960.01314.72

preferences:
20 ms | 401 KiB | 5 Q