3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UserModel { protected const DEFAULT_ALLOWED_FIELDS = [ 'username', 'status', 'status_message', 'active', 'last_active', 'deleted_at', ]; // ... other properties protected $allowedFields = self::DEFAULT_ALLOWED_FIELDS; // ... other properties } class MyModel extends UserModel { protected $allowedFields = [ ...self::DEFAULT_ALLOWED_FIELDS, 'phone_number', 'tax_id', ]; } $model = new MyModel(); $property = new ReflectionProperty($model, 'allowedFields'); $property->setAccessible(true); var_dump($property->getValue($model));

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.4.130.0120.00917.80
8.4.120.0080.00220.57
8.4.110.0060.00522.63
8.4.100.0110.01020.48
8.4.90.0050.00418.65
8.4.80.0140.00617.87
8.4.70.0090.00817.89
8.4.60.0100.01118.11
8.4.50.0090.01022.51
8.4.40.0160.00319.75
8.4.30.0040.00419.04
8.4.20.0070.01317.71
8.4.10.0100.01023.77
8.3.260.0070.00416.51
8.3.250.0150.00418.73
8.3.240.0110.00816.34
8.3.230.0100.01016.69
8.3.220.0050.00319.01
8.3.210.0080.00318.39
8.3.200.0010.00816.50
8.3.190.0040.00417.23
8.3.180.0090.00916.49
8.3.170.0110.00818.54
8.3.160.0130.00617.06
8.3.150.0110.00717.02
8.3.140.0070.00016.45
8.3.130.0040.00416.55
8.3.120.0040.00420.78
8.3.110.0140.00316.50
8.3.100.0030.00618.17
8.3.90.0080.00026.77
8.3.80.0030.00716.63
8.3.70.0180.00316.58
8.3.60.0060.01216.50
8.3.50.0110.01120.21
8.3.40.0110.00422.27
8.3.30.0090.00618.59
8.3.20.0030.00624.18
8.3.10.0040.00424.66
8.3.00.0120.00626.16
8.2.290.0140.00220.46
8.2.280.0100.00918.50
8.2.270.0120.00619.10
8.2.260.0120.00618.38
8.2.250.0000.00816.77
8.2.240.0030.00617.00
8.2.230.0060.00320.94
8.2.220.0050.00324.06
8.2.210.0120.00626.77
8.2.200.0000.00816.38
8.2.190.0120.00616.58
8.2.180.0150.00325.92
8.2.170.0120.00918.69
8.2.160.0110.00422.96
8.2.150.0090.00025.66
8.2.140.0070.00724.66
8.2.130.0070.00726.16
8.2.120.0000.00726.16
8.2.110.0040.00421.11
8.2.100.0060.00617.78
8.2.90.0000.00817.72
8.2.80.0000.00819.83
8.2.70.0080.00017.50
8.2.60.0040.00417.50
8.2.50.0040.00418.05
8.2.40.0000.00818.22
8.2.30.0070.00017.95
8.2.20.0040.00419.19
8.2.10.0000.00718.04
8.2.00.0080.00019.05
8.1.330.0140.00421.98
8.1.320.0110.00816.03
8.1.310.0060.00918.38
8.1.300.0100.00018.71
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00721.94
8.1.230.0110.00020.69
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0070.00317.22
8.1.190.0040.00418.98
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0050.00218.89
8.1.150.0040.00418.57
8.1.140.0040.00417.49
8.1.130.0000.00717.39
8.1.120.0020.00517.30
8.1.110.0070.00217.40
8.1.100.0000.01517.29
8.1.90.0120.00417.23
8.1.80.0050.01117.30
8.1.70.0160.00017.36
8.1.60.0150.00317.40
8.1.50.0170.00017.45
8.1.40.0140.00317.29
8.1.30.0140.00417.43
8.1.20.0130.00517.60
8.1.10.0130.00817.47
8.1.00.0130.00717.37
8.0.300.0000.00919.90
8.0.290.0030.00616.63
8.0.280.0000.00718.57
8.0.270.0000.00717.15
8.0.260.0060.00016.77
8.0.250.0030.00316.79
8.0.240.0090.00616.74
8.0.230.0070.00716.79
8.0.220.0150.00016.75
8.0.210.0120.00416.65
8.0.200.0120.00316.71
8.0.190.0120.00416.84
8.0.180.0100.00616.76
8.0.170.0120.00316.69
8.0.160.0110.00716.71
8.0.150.0160.00016.66
8.0.140.0000.01416.77
8.0.130.0100.00516.52
8.0.120.0120.00216.80
8.0.110.0060.00916.70
8.0.100.0100.00516.77
8.0.90.0100.00516.79
8.0.80.0110.00416.79
8.0.70.0150.00016.73
8.0.60.0050.00916.70
8.0.50.0120.00016.75
8.0.30.0070.00716.80
8.0.20.0150.00016.79
8.0.10.0110.00416.90
7.4.330.0050.00015.55
7.4.320.0030.00316.39
7.4.300.0140.00316.49
7.4.290.0080.00816.32
7.4.280.0140.00316.39
7.4.270.0170.00016.42
7.4.260.0170.00016.37
7.4.250.0110.00716.46
7.4.240.0180.00016.48
7.4.230.0140.00316.39
7.4.220.0110.00016.40
7.4.210.0110.00016.27
7.4.200.0100.00516.49
7.4.190.0030.00616.54
7.4.180.0040.00416.52
7.4.160.0050.00516.48
7.4.150.0060.00316.40
7.4.140.0070.00516.21
7.4.130.0090.00616.21
7.4.120.0050.00516.15
7.4.110.0030.00716.26
7.4.100.0000.01016.23
7.4.90.0070.00216.25
7.4.80.0120.00016.23
7.4.70.0110.00416.17
7.4.60.0040.00816.18
7.4.50.0000.00716.18
7.4.40.0030.00616.16
7.4.30.0020.00716.20
7.4.20.0050.00516.17
7.4.10.0000.01016.16
7.4.00.0030.00616.28

preferences:
27.32 ms | 403 KiB | 5 Q