3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Builder { /** @Column(type="string") */ protected $id; /** @Column(type="string") */ protected $name; /** @ManyToOne(targetEntity="User") * @JoinColumn(name="created_by", referencedColumnName="id") */ protected $created_by; /** @ManyToOne(targetEntity="User") * @JoinColumn(name="updated_by", referencedColumnName="id") */ protected $updated_by; public function __construct(array $input) { $this->id = $input['id']; $this->name = $input['name']; $this->created_by = $input['created_by']; $this->updated_by = $input['updated_by']; } } class User { /** @Column(type="string") */ protected $id; /** @Column(type="string") */ protected $name; public function __construct(array $input) { $this->id = $input['id']; $this->name = $input['name']; } } $input = []; $input['id'] = 1; $input['name'] = 'TEST'; $input['created_by'] = new User(['id' => 1, 'name' => 'User']); $input['updated_by'] = new User(['id' => 1, 'name' => 'User']); $builder = new Builder($input); print_r($builder);

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.0150.00316.75
8.3.50.0130.01022.11
8.3.40.0100.01418.54
8.3.30.0110.00418.67
8.3.20.0050.00319.16
8.3.10.0030.00521.94
8.3.00.0090.00620.96
8.2.180.0190.00016.75
8.2.170.0040.01222.96
8.2.160.0110.00722.06
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00017.80
8.2.120.0040.00426.35
8.2.110.0040.00420.86
8.2.100.0090.00318.03
8.2.90.0050.00319.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0040.00418.09
8.2.40.0040.00420.52
8.2.30.0040.00719.45
8.2.20.0080.00017.76
8.2.10.0080.00017.95
8.2.00.0050.00217.96
8.1.280.0120.00625.92
8.1.270.0040.00423.91
8.1.260.0080.00028.09
8.1.250.0030.00628.09
8.1.240.0000.00822.47
8.1.230.0030.00717.89
8.1.220.0090.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.24
8.1.190.0030.00517.23
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0040.00420.71
8.1.150.0040.00418.71
8.1.140.0030.00619.46
8.1.130.0000.00817.65
8.1.120.0040.00317.46
8.1.110.0030.00617.41
8.1.100.0030.00517.32
8.1.90.0070.00017.38
8.1.80.0000.00717.32
8.1.70.0070.00017.48
8.1.60.0030.00617.64
8.1.50.0030.00717.41
8.1.40.0030.00617.58
8.1.30.0000.00917.72
8.1.20.0040.00417.50
8.1.10.0040.00417.53
8.1.00.0110.00017.48
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.41
8.0.270.0030.00517.12
8.0.260.0060.00317.24
8.0.250.0040.00416.94
8.0.240.0000.00716.86
8.0.230.0040.00316.91
8.0.220.0030.00316.78
8.0.210.0050.00216.74
8.0.200.0000.00816.87
8.0.190.0040.00416.91
8.0.180.0040.00416.88
8.0.170.0040.00416.94
8.0.160.0070.00016.92
8.0.150.0070.00016.70
8.0.140.0030.00416.82
8.0.130.0030.00313.31
8.0.120.0030.00516.84
8.0.110.0060.00316.75
8.0.100.0040.00416.85
8.0.90.0080.00016.70
8.0.80.0100.00716.90
8.0.70.0000.00816.87
8.0.60.0080.00016.96
8.0.50.0040.00416.66
8.0.30.0100.00817.19
8.0.20.0080.01117.40
8.0.10.0000.00716.89
8.0.00.0090.00916.74
7.4.330.0020.00215.08
7.4.320.0000.00616.56
7.4.300.0030.00316.52
7.4.290.0000.00716.42
7.4.280.0040.00416.42
7.4.270.0070.00016.63
7.4.260.0040.00416.40
7.4.250.0040.00416.48
7.4.240.0040.00416.50
7.4.230.0030.00316.50
7.4.220.0060.01516.68
7.4.210.0050.00816.49
7.4.200.0030.00316.54
7.4.160.0060.00916.36
7.4.150.0040.01417.40
7.4.140.0070.01117.86
7.4.130.0080.00916.34
7.4.120.0060.01116.48
7.4.110.0070.01016.63
7.4.100.0030.01316.34
7.4.90.0160.00616.53
7.4.80.0080.00919.39
7.4.70.0030.01316.38
7.4.60.0100.01016.36
7.4.50.0080.00316.52
7.4.40.0130.01216.58
7.4.30.0100.00616.46
7.4.00.0100.00714.80
7.3.330.0000.00513.36
7.3.320.0030.00313.38
7.3.310.0040.00416.27
7.3.300.0000.00716.34
7.3.290.0030.00316.29
7.3.280.0090.00816.39
7.3.270.0150.00317.40
7.3.260.0080.00816.46
7.3.250.0130.00516.36
7.3.240.0120.01016.37
7.3.230.0130.00316.39
7.3.210.0030.01416.20
7.3.200.0090.00616.31
7.3.190.0140.00316.61
7.3.180.0110.00616.70
7.3.170.0060.01516.26
7.3.160.0140.00316.32
7.2.330.0080.00916.29
7.2.320.0160.00316.56
7.2.310.0100.00716.76
7.2.300.0100.01016.65
7.2.290.0100.00716.46
7.2.00.0060.00619.30
7.1.200.0090.00615.56
7.1.100.0070.00717.97
7.1.70.0030.00317.26
7.1.60.0130.00317.23
7.1.00.0030.07722.51
7.0.200.0110.01416.64
7.0.60.0900.00019.86
7.0.50.1100.00020.47
7.0.40.1430.00020.32
7.0.30.1130.00020.27
7.0.20.1030.00020.32
7.0.10.1000.00020.22
7.0.00.0900.00020.23
5.6.280.0030.07320.90
5.6.210.1030.00020.61
5.6.200.1000.00021.21
5.6.190.1000.00021.04
5.6.180.1030.00021.07
5.6.170.0930.00021.16
5.6.160.1000.00021.05
5.6.150.1070.00021.07
5.6.140.1100.00020.92
5.6.130.1570.00021.21
5.6.120.1170.00021.13
5.6.110.1070.00021.06
5.6.100.0970.00021.01
5.6.90.0730.00021.03
5.6.80.0900.00020.42
5.6.70.0830.00020.41
5.6.60.0800.00020.52
5.6.50.0900.00020.51
5.6.40.0930.00020.41
5.6.30.0830.00020.48
5.6.20.1000.00020.43
5.6.10.0900.00020.42
5.6.00.0800.00020.40
5.5.350.0930.00020.48
5.5.340.0800.00020.75
5.5.330.0930.00020.73
5.5.320.0970.00020.84
5.5.310.0870.00020.71
5.5.300.1270.00020.74
5.5.290.1400.00021.01
5.5.280.0900.00020.84
5.5.270.1070.00020.86
5.5.260.1070.00020.80
5.5.250.0930.00020.68
5.5.240.1000.00020.41
5.5.230.1030.00020.10
5.5.220.0770.00020.09
5.5.210.0770.00020.31
5.5.200.0870.00020.21
5.5.190.0970.00020.23
5.5.180.0970.00020.27
5.5.160.0770.00020.15
5.5.150.0770.00020.18
5.5.140.0870.00020.16
5.5.130.0870.00020.39
5.5.120.0830.00020.10
5.5.110.0770.00020.19
5.5.100.1030.00020.12
5.5.90.0800.00020.29
5.5.80.1130.00020.07
5.5.70.1430.00020.16
5.5.60.1370.00020.13
5.5.50.1370.00020.05
5.5.40.1330.00020.09
5.5.30.1370.00020.05
5.5.20.1330.00020.06
5.5.10.1070.00020.05
5.5.00.1100.00020.05

preferences:
62.48 ms | 401 KiB | 5 Q