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); $reflectClass = new ReflectionClass();

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.00016.88
8.3.50.0090.00618.05
8.3.40.0220.00018.63
8.3.30.0100.00318.80
8.3.20.0040.00419.34
8.3.10.0040.00421.90
8.3.00.0000.00720.94
8.2.180.0190.00016.63
8.2.170.0060.00922.96
8.2.160.0030.01019.22
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00617.80
8.2.120.0030.00526.35
8.2.110.0090.00019.21
8.2.100.0070.00417.72
8.2.90.0040.00417.91
8.2.80.0030.00618.09
8.2.70.0060.00317.61
8.2.60.0050.00317.93
8.2.50.0060.00318.09
8.2.40.0040.00420.32
8.2.30.0090.00019.54
8.2.20.0050.00217.77
8.2.10.0040.00417.95
8.2.00.0070.00018.13
8.1.280.0150.00325.92
8.1.270.0040.00423.71
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0080.00321.96
8.1.230.0070.00320.85
8.1.220.0050.00317.79
8.1.210.0000.00818.84
8.1.200.0030.00617.35
8.1.190.0030.00517.25
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00420.64
8.1.150.0040.00418.89
8.1.140.0050.00219.43
8.1.130.0030.00317.66
8.1.120.0040.00417.33
8.1.110.0030.00617.39
8.1.100.0040.00417.40
8.1.90.0070.00017.49
8.1.80.0040.00417.46
8.1.70.0000.00817.45
8.1.60.0040.00417.46
8.1.50.0060.00317.45
8.1.40.0040.00417.49
8.1.30.0060.00317.56
8.1.20.0040.00417.71
8.1.10.0000.00817.48
8.1.00.0030.00617.59
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0040.00417.13
8.0.260.0060.00317.24
8.0.250.0030.00616.99
8.0.240.0040.00416.99
8.0.230.0000.00716.92
8.0.220.0000.00716.91
8.0.210.0070.00016.92
8.0.200.0060.00317.00
8.0.190.0080.00016.92
8.0.180.0080.00016.96
8.0.170.0040.00416.94
8.0.160.0040.00316.90
8.0.150.0030.00316.87
8.0.140.0040.00416.79
8.0.130.0050.00313.34
8.0.120.0040.00416.89
8.0.110.0040.00416.85
8.0.100.0040.00416.88
8.0.90.0000.00716.79
8.0.80.0100.01016.89
8.0.70.0040.00416.87
8.0.60.0070.00016.88
8.0.50.0090.00016.79
8.0.30.0070.01416.97
8.0.20.0120.00817.40
8.0.10.0040.00417.07
8.0.00.0060.01116.91
7.4.330.0060.00015.08
7.4.320.0060.00016.55
7.4.300.0040.00416.62
7.4.290.0070.00016.44
7.4.280.0000.00716.48
7.4.270.0000.00716.43
7.4.260.0030.00316.41
7.4.250.0020.00516.51
7.4.240.0000.00716.43
7.4.230.0040.00416.60
7.4.220.0100.00716.67
7.4.210.0070.00816.60
7.4.200.0020.00516.70
7.4.160.0100.00616.55
7.4.150.0140.00317.40
7.4.140.0100.00717.86
7.4.130.0160.00216.37
7.4.120.0120.00716.58
7.4.110.0070.01516.56
7.4.100.0060.00916.57
7.4.90.0100.00616.35
7.4.80.0140.00719.39
7.4.70.0120.00316.45
7.4.60.0130.00516.61
7.4.50.0060.00616.37
7.4.40.0080.01116.18
7.4.30.0120.00316.46
7.4.10.0140.00314.88
7.4.00.0120.00414.77
7.3.330.0050.00013.41
7.3.320.0000.00613.45
7.3.310.0080.00016.54
7.3.300.0030.00316.41
7.3.290.0040.00416.32
7.3.280.0070.00816.38
7.3.270.0000.02417.40
7.3.260.0120.00816.51
7.3.250.0100.00916.34
7.3.240.0070.01016.41
7.3.230.0060.00916.45
7.3.210.0130.00316.35
7.3.200.0030.01316.23
7.3.190.0120.00616.50
7.3.180.0090.00616.65
7.3.170.0030.01716.43
7.3.160.0000.01816.51
7.3.130.0040.01415.04
7.3.120.0060.01314.94
7.3.110.0160.00314.81
7.3.100.0040.01115.09
7.3.90.0090.00614.76
7.3.80.0060.00314.58
7.3.70.0060.00914.79
7.3.60.0110.00414.81
7.3.50.0040.00414.50
7.3.40.0040.00815.05
7.3.30.0000.01614.97
7.3.20.0080.00316.60
7.3.10.0100.00316.71
7.3.00.0050.00516.55
7.2.330.0040.01316.55
7.2.320.0090.00916.46
7.2.310.0100.01316.46
7.2.300.0130.01316.32
7.2.290.0140.00916.39
7.2.260.0070.01115.34
7.2.250.0090.00915.09
7.2.240.0070.00714.78
7.2.230.0060.00915.18
7.2.220.0100.00714.82
7.2.210.0060.01015.20
7.2.200.0040.01115.25
7.2.190.0060.00914.59
7.2.180.0080.00815.05
7.2.170.0030.01314.69
7.2.160.0030.01314.89
7.2.150.0000.01416.69
7.2.140.0030.00616.75
7.2.130.0070.00916.97
7.2.120.0090.00516.77
7.2.110.0100.00316.89
7.2.100.0040.00716.99
7.2.90.0070.01017.06
7.2.80.0070.00816.60
7.2.70.0080.00716.77
7.2.60.0090.00516.84
7.2.50.0120.00116.83
7.2.40.0110.00616.95
7.2.30.0070.00816.85
7.2.20.0100.00516.88
7.2.10.0070.00616.99
7.2.00.0020.01317.72
7.1.330.0030.00915.91
7.1.320.0040.00415.84
7.1.310.0000.01415.95
7.1.300.0110.00415.73
7.1.290.0100.00315.58
7.1.280.0040.01415.84
7.1.270.0110.00415.65
7.1.260.0030.01015.85
7.1.250.0080.00415.76
7.1.240.0100.00415.78
7.1.230.0050.00615.77
7.1.220.0030.00815.79
7.1.210.0030.01115.75
7.1.200.0100.00415.86
7.1.190.0070.00515.71
7.1.180.0050.01015.71
7.1.170.0060.00815.69
7.1.160.0090.00415.82
7.1.150.0050.00715.87
7.1.140.0030.01115.79
7.1.130.0050.01115.66
7.1.120.0060.00515.77
7.1.110.0050.00715.85
7.1.100.0080.00516.65
7.1.90.0050.00515.90
7.1.80.0020.00915.90
7.1.70.0080.00316.10
7.1.60.0050.01017.17
7.1.50.0120.00816.08
7.1.40.0100.00215.64
7.1.30.0060.00615.75
7.1.20.0050.00515.71
7.1.10.0060.00615.83
7.1.00.0040.03117.80
7.0.330.0010.00815.16
7.0.320.0050.00715.29
7.0.310.0090.00515.38
7.0.300.0050.00815.26
7.0.290.0070.00715.42
7.0.280.0050.00815.31
7.0.270.0110.00715.39
7.0.260.0050.00615.27
7.0.250.0100.00315.35
7.0.240.0080.00515.13
7.0.230.0050.00515.27
7.0.220.0050.00615.46
7.0.210.0100.00215.31
7.0.200.0120.00315.20
7.0.190.0070.00715.36
7.0.180.0070.00715.39
7.0.170.0030.01015.40
7.0.160.0030.00815.41
7.0.150.0030.01015.33
7.0.140.0050.00515.31
7.0.130.0080.00615.40
7.0.120.0040.00815.42
7.0.110.0030.01115.30
7.0.100.0070.00615.35
7.0.90.0030.00715.36
7.0.80.0080.00515.28
7.0.70.0080.00515.31
7.0.60.0330.00216.97
7.0.50.0480.00317.10
7.0.40.0450.00515.75
7.0.30.0410.00415.78
7.0.20.0290.00115.69
7.0.10.0310.00315.65
7.0.00.0510.00415.72
5.6.400.0090.00314.61
5.6.390.0000.01114.17
5.6.380.0030.00814.51
5.6.370.0100.00314.55
5.6.360.0070.00614.59
5.6.350.0070.00914.54
5.6.340.0050.00714.24
5.6.330.0060.00714.53
5.6.320.0030.00914.15
5.6.310.0070.00714.48
5.6.300.0080.00414.42
5.6.290.0050.01014.40
5.6.280.0020.03016.58
5.6.270.0030.00814.33
5.6.260.0090.00414.38
5.6.250.0060.00614.29
5.6.240.0030.01014.32
5.6.230.0050.00914.36
5.6.220.0050.01014.49
5.6.210.0290.00416.33
5.6.200.0450.00216.57
5.6.190.0440.00216.67
5.6.180.0470.00516.73
5.6.170.0380.00316.53
5.6.160.0420.00816.58
5.6.150.0400.00516.58
5.6.140.0440.00516.57
5.6.130.0450.00716.63
5.6.120.0340.00316.70
5.6.110.0300.00516.68
5.6.100.0300.00616.74
5.6.90.0300.00516.63
5.6.80.0340.00216.24
5.6.70.0450.00216.28
5.6.60.0490.00416.28
5.6.50.0460.00416.45
5.6.40.0350.00516.36
5.6.30.0370.00516.31
5.6.20.0260.00516.36
5.6.10.0250.00516.38
5.6.00.0480.00416.37
5.5.380.0060.00712.89
5.5.370.0080.00312.79
5.5.360.0040.00612.74
5.5.350.0370.00615.33
5.5.340.0440.00415.45
5.5.330.0450.00315.35
5.5.320.0440.00415.46
5.5.310.0280.00615.52
5.5.300.0470.00515.56
5.5.290.0490.00115.59
5.5.280.0320.00515.57
5.5.270.0300.00415.47
5.5.260.0270.00415.52
5.5.250.0310.00315.37
5.5.240.0520.00015.31
5.5.230.0410.00715.26
5.5.220.0430.00615.21
5.5.210.0420.00515.21
5.5.200.0380.00615.24
5.5.190.0340.00315.13
5.5.180.0370.00515.18
5.5.170.0040.00912.59
5.5.160.0350.00515.26
5.5.150.0350.00315.18
5.5.140.0250.00215.32
5.5.130.0280.00515.36
5.5.120.0310.00415.31
5.5.110.0250.00715.24
5.5.100.0320.00415.21
5.5.90.0300.00315.23
5.5.80.0260.00215.18
5.5.70.0240.00615.29
5.5.60.0270.00615.23
5.5.50.0300.00415.22
5.5.40.0250.00615.21
5.5.30.0280.00515.16
5.5.20.0290.00215.20
5.5.10.0290.00415.21
5.5.00.0260.00715.16

preferences:
63.03 ms | 401 KiB | 5 Q