3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); namespace TF\Core\Model; trait tObjectID { /** * @TF: {column => id, type => int} */ protected int $id; public function getId(): int { return $this->id; } public function setId(int $id): int { $this->id = $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.60.0070.01116.25
8.3.50.0080.00818.22
8.3.40.0070.00718.59
8.3.30.0070.01018.59
8.3.20.0040.00420.00
8.3.10.0050.00223.65
8.3.00.0040.00419.72
8.2.180.0090.01316.50
8.2.170.0070.00722.96
8.2.160.0100.00720.53
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00019.31
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0060.00617.55
8.2.90.0040.00419.05
8.2.80.0070.00017.97
8.2.70.0040.00417.37
8.2.60.0060.00317.68
8.2.50.0030.00618.07
8.2.40.0000.00722.36
8.2.30.0000.00820.68
8.2.20.0050.00217.60
8.2.10.0070.00017.92
8.2.00.0070.00017.85
8.1.280.0100.00325.92
8.1.270.0140.00320.39
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0000.00823.96
8.1.230.0150.00019.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.10
8.1.180.0050.00318.10
8.1.170.0000.00818.67
8.1.160.0000.00720.67
8.1.150.0050.00218.80
8.1.140.0080.00019.36
8.1.130.0070.00017.57
8.1.120.0070.00017.24
8.1.110.0070.00017.23
8.1.100.0000.00717.38
8.1.90.0060.00317.34
8.1.80.0000.00817.32
8.1.70.0000.00717.16
8.1.60.0080.00017.44
8.1.50.0000.00817.26
8.1.40.0040.00417.37
8.1.30.0000.00817.44
8.1.20.0080.00017.51
8.1.10.0030.00517.36
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.23
8.0.270.0000.00717.00
8.0.260.0040.00417.09
8.0.250.0030.00316.83
8.0.240.0030.00316.72
8.0.230.0070.00016.80
8.0.220.0080.00016.78
8.0.210.0000.00716.74
8.0.200.0000.00716.71
8.0.190.0040.00716.85
8.0.180.0070.00016.67
8.0.170.0080.00016.78
8.0.160.0000.00816.73
8.0.150.0000.00816.63
8.0.140.0040.00416.71
8.0.130.0030.00313.14
8.0.120.0000.00816.73
8.0.110.0000.00816.74
8.0.100.0040.00416.72
8.0.90.0040.00416.66
8.0.80.0070.00716.80
8.0.70.0050.00316.76
8.0.60.0040.00316.82
8.0.50.0000.00816.64
8.0.30.0110.00816.87
8.0.20.0080.00917.40
8.0.10.0070.00016.91
8.0.00.0080.01116.65
7.4.330.0000.00516.70
7.4.320.0070.00016.38
7.4.300.0060.00016.27
7.4.290.0030.00316.47
7.4.280.0040.00416.31
7.4.270.0030.00316.50
7.4.260.0000.00716.35
7.4.250.0000.00716.35
7.4.240.0000.00716.45
7.4.230.0070.00016.21
7.4.220.0110.00716.42
7.4.210.0160.00316.34
7.4.200.0050.00316.36
7.4.160.0100.00616.53
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0110.00616.52
7.4.120.0120.00516.29
7.4.110.0100.00616.54
7.4.100.0110.00816.20
7.4.90.0080.00816.59
7.4.80.0150.00619.39
7.4.70.0090.00616.30
7.4.60.0060.00916.42
7.4.50.0140.00316.31
7.4.40.0070.01016.14
7.4.30.0110.01216.45
7.3.330.0050.00012.98
7.3.320.0000.00513.21
7.3.310.0030.00316.14
7.3.300.0040.00416.08
7.3.290.0090.00616.17
7.3.280.0090.00816.15
7.3.270.0150.00817.40
7.3.260.0050.01116.16
7.3.250.0130.00616.34
7.3.240.0120.00916.30
7.3.230.0030.01716.39
7.3.210.0190.00316.19
7.3.200.0150.00616.41
7.3.190.0070.01016.35
7.3.180.0040.01216.21
7.3.170.0100.01016.40
7.3.160.0100.00616.14
7.2.330.0210.00016.21
7.2.320.0100.01016.45
7.2.310.0130.00716.47
7.2.300.0040.01316.07
7.2.290.0100.00716.23
7.0.00.0000.04320.07
5.6.160.0030.07320.55
5.6.150.0030.06018.20
5.6.140.0030.07718.23
5.6.130.0000.04318.28
5.6.120.0030.04020.96
5.6.110.0170.08020.99
5.6.100.0070.08020.97
5.6.90.0070.09020.97
5.6.80.0000.06720.40
5.5.300.0170.07717.98
5.5.290.0030.06317.97
5.5.280.0100.04720.84
5.5.270.0130.07720.89
5.5.260.0030.04320.86
5.5.250.0030.08320.59
5.5.240.0230.07320.27

preferences:
52.16 ms | 400 KiB | 5 Q