3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ObjectRepository { /** * Finds an object by its primary key / identifier. * * @param mixed $id The identifier. * * @return object The object. */ public function find($id); /** * Finds all objects in the repository. * * @return array The objects. */ public function findAll(); /** * Finds objects by a set of criteria. * * Optionally sorting and limiting details can be passed. An implementation may throw * an UnexpectedValueException if certain values of the sorting or limiting details are * not supported. * * @param array $criteria * @param array|null $orderBy * @param int|null $limit * @param int|null $offset * * @return array The objects. * * @throws \UnexpectedValueException */ public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null); /** * Finds a single object by a set of criteria. * * @param array $criteria The criteria. * * @return object The object. */ public function findOneBy(array $criteria); /** * Returns the class name of the object managed by the repository. * * @return string */ public function getClassName(); } interface ModelRepositoryInterface extends ObjectRepository { public function createNew(); /** * Have to use different method because ObjectRepository defines findOneBy(array $criteria); * * @param array $criteria * @param array $orderBy * @return mixed */ public function findOne(array $criteria, array $orderBy = null); }

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.40.0150.00018.54
8.3.30.0090.00618.73
8.3.20.0040.00420.34
8.3.10.0050.00223.65
8.3.00.0000.00819.41
8.2.170.0070.00718.79
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.97
8.2.110.0100.00722.24
8.2.100.0070.00320.54
8.2.90.0060.00319.05
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00617.90
8.2.50.0030.00618.07
8.2.40.0030.00619.75
8.2.30.0000.00718.26
8.2.20.0040.00417.52
8.2.10.0000.00818.07
8.2.00.0040.00419.46
8.1.270.0040.00423.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00022.02
8.1.230.0080.00319.16
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0030.00517.13
8.1.180.0080.00018.10
8.1.170.0060.00318.58
8.1.160.0100.00022.04
8.1.150.0040.00418.63
8.1.140.0000.00717.29
8.1.130.0040.00417.85
8.1.120.0030.00417.36
8.1.110.0000.00817.29
8.1.100.0050.00317.32
8.1.90.0000.00817.32
8.1.80.0040.00417.41
8.1.70.0000.00717.42
8.1.60.0030.00617.56
8.1.50.0000.00817.49
8.1.40.0000.00717.52
8.1.30.0080.00017.59
8.1.20.0000.00717.57
8.1.10.0040.00417.27
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00818.46
8.0.270.0070.00017.08
8.0.260.0030.00317.29
8.0.250.0000.00716.93
8.0.240.0040.00417.00
8.0.230.0000.00616.88
8.0.220.0030.00616.84
8.0.210.0040.00416.73
8.0.200.0030.00316.89
8.0.190.0060.00316.91
8.0.180.0040.00416.86
8.0.170.0000.00716.83
8.0.160.0040.00416.68
8.0.150.0000.00716.78
8.0.140.0020.00516.70
8.0.130.0030.00313.16
8.0.120.0050.00316.74
8.0.110.0040.00416.71
8.0.100.0000.00716.72
8.0.90.0000.00716.66
8.0.80.0060.00916.80
8.0.70.0070.00016.84
8.0.60.0000.00816.74
8.0.50.0000.00716.65
8.0.30.0120.00616.87
8.0.20.0130.00917.40
8.0.10.0040.00416.89
8.0.00.0080.00816.64
7.4.330.0020.00215.01
7.4.320.0000.00616.33
7.4.300.0030.00316.46
7.4.290.0070.00016.64
7.4.280.0050.00316.59
7.4.270.0070.00016.46
7.4.260.0100.00016.44
7.4.250.0080.00016.50
7.4.240.0040.00316.50
7.4.230.0030.00316.37
7.4.220.0090.00916.50
7.4.210.0060.01116.61
7.4.200.0000.00816.57
7.4.160.0120.00916.17
7.4.150.0140.00717.40
7.4.140.0090.00717.86
7.4.130.0120.00516.43
7.4.120.0120.00716.47
7.4.110.0160.00316.45
7.4.100.0090.00916.49
7.4.90.0170.00616.27
7.4.80.0140.00319.39
7.4.70.0100.00616.59
7.4.60.0060.01216.51
7.4.50.0080.00016.18
7.4.40.0030.01316.49
7.4.30.0120.00316.44
7.4.00.0030.01315.12
7.3.330.0050.00013.10
7.3.320.0000.00513.16
7.3.310.0030.00316.15
7.3.300.0000.00716.18
7.3.290.0030.01216.14
7.3.280.0080.01116.14
7.3.270.0070.01417.40
7.3.260.0070.01116.18
7.3.250.0090.01016.29
7.3.240.0030.01416.45
7.3.230.0130.00316.46
7.3.210.0030.01316.40
7.3.200.0030.01419.39
7.3.190.0070.01016.23
7.3.180.0060.00916.36
7.3.170.0060.01416.27
7.3.160.0080.00816.37
7.3.120.0080.01114.78
7.3.110.0060.00914.64
7.3.100.0110.00314.74
7.3.90.0120.00014.98
7.3.80.0000.01214.95
7.3.70.0070.00314.66
7.3.60.0030.01314.64
7.3.50.0030.00714.81
7.3.40.0060.00914.77
7.3.30.0040.00814.70
7.3.20.0030.01216.52
7.3.10.0070.00616.28
7.3.00.0100.00516.19
7.2.330.0070.01016.64
7.2.320.0130.00316.31
7.2.310.0030.01316.55
7.2.300.0100.01116.37
7.2.290.0060.00916.62
7.2.250.0060.00914.98
7.2.240.0040.01514.93
7.2.230.0090.00414.84
7.2.220.0040.01114.91
7.2.210.0110.00314.89
7.2.200.0030.01015.05
7.2.190.0070.00714.74
7.2.180.0110.00314.75
7.2.170.0000.01314.87
7.2.130.0130.00916.07
7.2.120.0090.00616.18
7.2.110.0160.00616.02
7.2.100.0100.01016.37
7.2.90.0100.01016.32
7.2.80.0070.01116.48
7.2.70.0200.00816.27
7.2.60.0080.01716.20
7.2.50.0190.01116.43
7.2.40.0130.01316.21
7.2.30.0120.01216.05
7.2.20.0160.00816.12
7.2.10.0160.00716.00
7.2.00.0160.00516.70
7.1.330.0080.00815.59
7.1.320.0000.01615.74
7.1.310.0070.00715.58
7.1.300.0060.00615.71
7.1.290.0070.00715.80
7.1.280.0040.00715.45
7.1.270.0070.00715.67
7.1.260.0060.00615.63
7.1.250.0110.00415.11
7.1.70.0060.00316.85
7.1.60.0080.01519.70
7.1.50.0070.01616.77
7.1.00.0030.07322.51
7.0.200.0000.00716.77
7.0.140.0070.07021.93
7.0.110.0230.07020.08
7.0.100.0370.08020.07
7.0.90.0130.07319.95
7.0.80.0530.06719.96
7.0.70.0070.08019.92
7.0.60.0200.03319.62
7.0.50.0570.09320.03
7.0.40.0000.06319.65
7.0.30.0100.08019.80
7.0.20.0070.08319.78
7.0.10.0070.06319.73
7.0.00.0000.06719.78
5.6.280.0030.07320.93
5.6.260.0100.05720.67
5.6.250.0000.07320.57
5.6.240.0070.08320.69
5.6.230.0000.08320.55
5.6.220.0100.08020.80
5.6.210.0070.08020.64
5.6.200.0130.07320.70
5.6.190.0100.08020.71
5.6.180.0000.04320.67
5.6.170.0100.06320.62
5.6.160.0100.07020.56
5.6.150.0000.05320.53
5.6.140.0070.08720.63
5.6.130.0130.04320.62
5.6.120.0070.07320.57
5.6.110.0100.05720.46
5.6.100.0030.08320.45
5.6.90.0200.06320.84
5.6.80.0100.07020.10
5.6.70.0100.03020.00
5.6.60.0100.06719.93
5.6.50.0030.08019.98
5.6.40.0000.05020.00
5.6.30.0070.04020.05
5.6.20.0030.08320.02
5.6.10.0070.03719.86
5.6.00.0030.06019.86
5.5.380.0070.07717.56
5.5.370.0030.07017.59
5.5.360.0130.07717.63
5.5.350.0100.03717.26
5.5.340.0070.04318.10
5.5.330.0000.06717.85
5.5.320.0030.04318.07
5.5.310.0200.06718.13
5.5.300.0030.08018.07
5.5.290.0100.08018.23
5.5.280.0070.07318.13
5.5.270.0030.08718.09
5.5.260.0030.05718.22
5.5.250.0030.05317.93
5.5.240.0000.07317.43
5.5.230.0070.08317.43
5.5.220.0000.07717.34
5.5.210.0000.04717.46
5.5.200.0070.06017.18
5.5.190.0070.03717.45
5.5.180.0070.03317.47
5.5.160.0000.03717.45
5.5.150.0070.03317.44
5.5.140.0070.04017.30
5.5.130.0070.03317.30
5.5.120.0070.02717.27
5.5.110.0030.04017.39
5.5.100.0030.04017.48
5.5.90.0000.04017.32
5.5.80.0030.03317.16
5.5.70.0030.04017.46
5.5.60.0030.03717.15
5.5.50.0030.03717.16
5.5.40.0000.03717.49
5.5.30.0070.03317.46
5.5.20.0070.03017.33
5.5.10.0000.03317.36
5.5.00.0000.04317.10
5.4.450.0030.08319.41
5.4.440.0000.09019.33
5.4.430.0070.04719.63
5.4.420.0130.06319.34
5.4.410.0100.03719.20
5.4.400.0100.08019.01
5.4.390.0030.03719.03
5.4.380.0000.06019.00
5.4.370.0100.07719.03
5.4.360.0070.07719.09
5.4.350.0000.08319.18
5.4.340.0070.03719.16
5.4.320.0030.05019.34
5.4.310.0030.03319.07
5.4.300.0070.03019.02
5.4.290.0000.03318.95
5.4.280.0030.04019.18
5.4.270.0000.03319.01
5.4.260.0030.04719.31
5.4.250.0000.03319.01
5.4.240.0100.03018.98
5.4.230.0070.04019.23
5.4.220.0070.03319.00
5.4.210.0030.03019.18
5.4.200.0070.03719.00
5.4.190.0030.03018.94
5.4.180.0070.02718.98
5.4.170.0070.03019.17
5.4.160.0070.02718.96
5.4.150.0000.03719.14
5.4.140.0030.04016.48
5.4.130.0070.03016.32
5.4.120.0000.03316.46
5.4.110.0070.02716.59
5.4.100.0030.03016.27
5.4.90.0070.02316.43
5.4.80.0000.03316.55
5.4.70.0030.03316.46
5.4.60.0070.03016.48
5.4.50.0000.03316.48
5.4.40.0070.02716.55
5.4.30.0070.02716.52
5.4.20.0030.03316.48
5.4.10.0030.03016.43
5.4.00.0070.02715.97
5.3.290.0030.04314.69
5.3.280.0100.03314.75
5.3.270.0030.03014.61
5.3.260.0030.03014.74
5.3.250.0100.02314.74
5.3.240.0000.03314.62
5.3.230.0000.03714.69
5.3.220.0100.02714.66
5.3.210.0000.03314.57
5.3.200.0000.03314.53
5.3.190.0070.03314.60
5.3.180.0030.03014.71
5.3.170.0030.03014.56
5.3.160.0030.03014.56
5.3.150.0070.02714.58
5.3.140.0000.03314.79
5.3.130.0070.02714.52
5.3.120.0030.03014.56
5.3.110.0030.03014.52
5.3.100.0030.03014.13
5.3.90.0030.03014.04
5.3.80.0030.03014.02
5.3.70.0030.03014.11
5.3.60.0030.03014.03
5.3.50.0030.03313.99
5.3.40.0030.03013.93
5.3.30.0030.03713.91
5.3.20.0030.03013.78
5.3.10.0030.03013.66
5.3.00.0000.03313.66
5.2.170.0000.03011.91
5.2.160.0030.02311.91
5.2.150.0000.03011.91
5.2.140.0100.01711.91
5.2.130.0000.02711.91
5.2.120.0030.02311.91
5.2.110.0070.02011.91
5.2.100.0070.02011.91
5.2.90.0070.02011.91
5.2.80.0030.02711.91
5.2.70.0000.03011.91
5.2.60.0030.02311.91
5.2.50.0000.03011.91
5.2.40.0000.02311.91
5.2.30.0100.01711.91
5.2.20.0100.01711.91
5.2.10.0000.02311.91
5.2.00.0000.02311.91
5.1.60.0000.02311.91
5.1.50.0100.05311.91
5.1.40.0030.04011.91
5.1.30.0000.04711.91
5.1.20.0030.05011.91
5.1.10.0030.05311.91
5.1.00.0000.05311.91
5.0.50.0000.04311.91
5.0.40.0000.04311.91
5.0.30.0000.06311.91
5.0.20.0070.01311.91
5.0.10.0000.04711.91
5.0.00.0000.05011.91
4.4.90.0000.01311.91
4.4.80.0000.01311.91
4.4.70.0000.01311.91
4.4.60.0000.01311.91
4.4.50.0000.01311.91
4.4.40.0030.02011.91
4.4.30.0030.02711.91
4.4.20.0000.03711.91
4.4.10.0000.03311.91
4.4.00.0000.02311.91
4.3.110.0030.02311.91
4.3.100.0030.01711.91
4.3.90.0030.03311.91
4.3.80.0070.05011.91
4.3.70.0000.01711.91
4.3.60.0000.01711.91
4.3.50.0000.01711.91
4.3.40.0030.05011.91
4.3.30.0000.01711.91
4.3.20.0030.03011.91
4.3.10.0000.02011.91
4.3.00.0000.01311.91

preferences:
48.21 ms | 400 KiB | 5 Q