3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Document; use RepositoryAbstract; use Database; use ORM\DocumentCategory as Model; use ProxyHelper; class TagRepository extends RepositoryAbstract { use ProxyHelper; public function __construct(Database $db, Model $model) { $this->model = $model; parent::__construct($db); } public function newInstance(array $data = array()) { $tag = new Tag; $tag = $this->automap($data, $tag); $client = $this->repositoryProxy($data, 'client', 'Client\ClientRepository', 'clients_id'); $tag->setClient($client); return $tag; } public function read($id) { $tag = $this->model ->with('client') ->find($id); return $this->newInstance($tag->toArray()); } public function readAll($where = false) { $query = $this->model ->with('client') ->orderBy('name'); if ($where) { $query->whereRaw($where); } $tags = $query->get(); return $this->newCollection($tags); } }

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.60.0040.01118.43
8.3.50.0150.00621.24
8.3.40.0110.00418.72
8.3.30.0110.00618.69
8.3.20.0080.00020.18
8.3.10.0080.00023.66
8.3.00.0080.00023.52
8.2.180.0210.00016.50
8.2.170.0110.00422.96
8.2.160.0100.00722.09
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0030.00720.52
8.2.100.0040.00817.75
8.2.90.0040.00419.22
8.2.80.0050.00517.97
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0050.00321.19
8.2.30.0040.00419.86
8.2.20.0040.00417.75
8.2.10.0050.00217.96
8.2.00.0050.00217.98
8.1.280.0100.00325.92
8.1.270.0080.00020.25
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.94
8.1.230.0070.00417.53
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0070.00417.35
8.1.190.0040.00417.25
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0000.00922.04
8.1.150.0000.00718.71
8.1.140.0000.00817.42
8.1.130.0030.00317.71
8.1.120.0030.00317.36
8.1.110.0000.00717.42
8.1.100.0000.00717.30
8.1.90.0040.00417.32
8.1.80.0030.00517.29
8.1.70.0000.00717.46
8.1.60.0040.00417.61
8.1.50.0060.00317.52
8.1.40.0040.00417.30
8.1.30.0040.00417.52
8.1.20.0000.00717.64
8.1.10.0040.00417.59
8.1.00.0000.00717.45
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.48
8.0.270.0050.00317.28
8.0.260.0000.00717.15
8.0.250.0040.00416.96
8.0.240.0030.00316.97
8.0.230.0040.00416.97
8.0.220.0030.00317.01
8.0.210.0050.00317.00
8.0.200.0070.00017.04
8.0.190.0000.00716.95
8.0.180.0080.00017.05
8.0.170.0040.00417.05
8.0.160.0050.00217.03
8.0.150.0000.00716.98
8.0.140.0000.00816.84
8.0.130.0030.00513.34
8.0.120.0000.00716.95
8.0.110.0030.00516.95
8.0.100.0030.00516.80
8.0.90.0040.00416.86
8.0.80.0030.01717.02
8.0.70.0040.00416.98
8.0.60.0060.00317.00
8.0.50.0070.00017.02
8.0.30.0090.01117.18
8.0.20.0130.00917.40
8.0.10.0040.00416.99
8.0.00.0070.01016.81
7.4.330.0000.00615.15
7.4.320.0000.00716.57
7.4.300.0030.00316.46
7.4.290.0070.00016.38
7.4.280.0040.00416.53
7.4.270.0030.00316.45
7.4.260.0030.00316.45
7.4.250.0080.00016.36
7.4.240.0020.00516.52
7.4.230.0070.00016.46
7.4.220.0070.01016.50
7.4.210.0070.00916.54
7.4.200.0040.00416.21
7.4.160.0130.00316.47
7.4.150.0120.00817.40
7.4.140.0090.01117.86
7.4.130.0080.01116.65
7.4.120.0100.00816.55
7.4.110.0090.00916.41
7.4.100.0060.01816.58
7.4.90.0170.00016.57
7.4.80.0060.01219.39
7.4.70.0110.00716.50
7.4.60.0040.01216.68
7.4.50.0060.00316.54
7.4.40.0000.01616.68
7.4.30.0130.01016.36
7.4.00.0070.01115.03
7.3.330.0030.00313.30
7.3.320.0000.00513.16
7.3.310.0070.00016.25
7.3.300.0060.00016.29
7.3.290.0000.00816.29
7.3.280.0070.00916.29
7.3.270.0120.00617.40
7.3.260.0230.00016.55
7.3.250.0100.00616.41
7.3.240.0100.01016.54
7.3.230.0150.00916.42
7.3.210.0100.00616.36
7.3.200.0080.00816.33
7.3.190.0070.01016.39
7.3.180.0100.01016.54
7.3.170.0060.01216.43
7.3.160.0140.00716.48
7.3.120.0030.01414.91
7.3.110.0140.00314.76
7.3.100.0000.01414.83
7.3.90.0060.00615.09
7.3.80.0030.00614.47
7.3.70.0060.00614.70
7.3.60.0060.00614.73
7.3.50.0060.00314.94
7.3.40.0060.00614.95
7.3.30.0040.00714.85
7.3.20.0100.00316.73
7.3.10.0040.00716.68
7.3.00.0000.01116.66
7.2.330.0090.01216.56
7.2.320.0120.00616.41
7.2.310.0120.00616.68
7.2.300.0060.01616.40
7.2.290.0070.01116.48
7.2.250.0090.00914.89
7.2.240.0100.01014.99
7.2.230.0100.00314.62
7.2.220.0120.00315.00
7.2.210.0080.00314.95
7.2.200.0060.00614.72
7.2.190.0080.00414.90
7.2.180.0060.01014.71
7.2.170.0000.01214.97
7.2.60.0100.00316.91
7.2.00.0000.01219.27
7.1.330.0070.01015.75
7.1.320.0030.01015.57
7.1.310.0060.00615.38
7.1.300.0000.01215.83
7.1.290.0000.01115.26
7.1.280.0120.00315.56
7.1.270.0040.00415.34
7.1.260.0040.00815.56
7.1.200.0000.01415.61
7.1.100.0030.00617.67
7.1.70.0000.00716.94
7.1.60.0060.01819.42
7.1.50.0070.01616.82
7.1.00.0030.07722.44
7.0.200.0190.00416.40
7.0.60.0030.08019.96
7.0.50.0000.04317.97
7.0.40.0070.07720.40
7.0.30.0270.05020.10
7.0.20.0300.06020.24
7.0.10.0130.04720.06
7.0.00.0130.03320.23
5.6.280.0030.05320.92
5.6.210.0100.07020.48
5.6.200.0070.05718.20
5.6.190.0070.05720.51
5.6.180.4370.03720.48
5.6.170.0130.04720.55
5.6.160.0070.08020.54
5.6.150.0070.03718.15
5.6.140.0030.08718.18
5.6.130.0130.04718.12
5.6.120.0070.08020.95
5.6.110.0070.04021.14
5.6.100.0100.08020.96
5.6.90.0030.04320.89
5.6.80.0100.08020.38
5.6.70.4330.03720.41
5.5.350.0300.08320.41
5.5.340.0100.04717.97
5.5.330.0030.04720.41
5.5.320.0270.06320.43
5.5.310.0300.07020.32
5.5.300.0030.04318.01
5.5.290.0030.04017.95
5.5.280.0000.04320.86
5.5.270.0030.05720.80
5.5.260.0030.09720.85
5.5.250.0100.07320.69
5.5.240.0330.06720.13
5.4.450.0670.06019.63
5.4.440.0500.05719.30
5.4.430.0300.04719.60
5.4.420.0100.06319.48
5.4.410.0030.06019.04
5.4.400.0530.04319.06
5.4.390.0730.05719.29
5.4.380.0730.04719.13
5.4.370.0470.06319.22
5.4.360.0630.06718.98
5.4.350.0670.07319.01
5.4.340.0730.04719.38
5.4.320.0670.05319.22
5.4.310.0630.06318.97
5.4.300.0700.05019.30
5.4.290.0770.04718.86
5.4.280.0530.05719.14
5.4.270.0700.05719.05
5.4.260.0870.04018.87
5.4.250.0700.05018.87
5.4.240.0600.05019.00
5.4.230.0500.05319.28
5.4.220.0630.06319.14
5.4.210.0770.04018.92
5.4.200.0600.04716.70
5.4.190.0500.05719.13
5.4.180.0470.06019.17
5.4.170.0470.06319.28
5.4.160.0630.04318.96
5.4.150.0470.05719.27
5.4.140.0530.05316.38
5.4.130.0730.04316.52
5.4.120.0630.05016.32
5.4.110.0630.05316.43
5.4.100.0730.04016.55
5.4.90.0630.05716.72
5.4.80.0600.05316.70
5.4.70.0630.05316.70
5.4.60.0600.05316.29
5.4.50.0800.05316.70
5.4.40.0870.07016.43
5.4.30.0500.05316.28
5.4.20.0200.06016.53
5.4.10.0870.05016.38
5.4.00.0100.05316.02
5.3.290.0130.06014.67
5.3.280.0300.04014.60
5.3.270.0070.06014.48
5.3.260.0170.05014.65
5.3.250.0130.05314.65
5.3.240.0030.06014.59
5.3.230.0130.04714.50
5.3.220.0100.05014.55
5.3.210.0070.05714.48
5.3.200.0100.05014.58
5.3.190.0030.05714.48
5.3.180.0100.05314.57
5.3.170.0200.04014.56
5.3.160.0130.06014.47
5.3.150.0100.05314.61
5.3.140.0130.05014.56
5.3.130.0170.04714.60
5.3.120.0100.06014.63
5.3.110.0100.06014.55
5.3.100.0230.04714.04
5.3.90.0130.05013.92
5.3.80.0100.05013.92
5.3.70.0300.03314.16
5.3.60.0200.04014.01
5.3.50.0230.05013.87
5.3.40.0000.06013.85
5.3.30.0100.05013.78
5.3.20.0230.03713.74
5.3.10.0070.05313.61
5.3.00.0130.04713.54
5.2.170.0030.04711.13
5.2.160.0070.04711.01
5.2.150.0130.04011.19
5.2.140.0100.04710.98
5.2.130.0170.03311.26
5.2.120.0030.04310.93
5.2.110.0170.03311.08
5.2.100.0100.04311.12
5.2.90.0170.03011.13
5.2.80.0070.04311.05
5.2.70.0170.03311.18
5.2.60.0070.04310.99
5.2.50.0130.05010.99
5.2.40.0030.05010.98
5.2.30.0100.03711.13
5.2.20.0170.03010.75
5.2.10.0200.03010.75
5.2.00.0130.03310.67
5.1.60.0100.03010.05
5.1.50.0030.05310.08
5.1.40.0200.0309.96
5.1.30.0100.04710.20
5.1.20.0100.03310.35
5.1.10.0100.03310.09
5.1.00.0100.03310.08
5.0.50.0100.0238.60
5.0.40.0030.0308.43
5.0.30.0000.0478.15
5.0.20.0000.0308.21
5.0.10.0070.0278.18
5.0.00.0070.0478.10
4.4.90.0100.0275.81
4.4.80.0030.0235.81
4.4.70.0030.0235.74
4.4.60.0070.0205.75
4.4.50.0070.0205.77
4.4.40.0070.0375.75
4.4.30.0070.0205.81
4.4.20.0070.0205.88
4.4.10.0030.0235.83
4.4.00.0100.0275.86
4.3.110.0000.0235.77
4.3.100.0000.0235.75
4.3.90.0030.0205.83
4.3.80.0030.0335.73
4.3.70.0000.0235.70
4.3.60.0000.0235.66
4.3.50.0030.0205.67
4.3.40.0030.0335.63
4.3.30.0030.0204.42
4.3.20.0000.0234.41
4.3.10.0100.0134.48
4.3.00.0030.0208.42

preferences:
56.1 ms | 401 KiB | 5 Q