3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Post { protected $fillable = [ 'title', // ... ]; // ... } class Comment { protected $fillable = [ 'title', 'post_id', 'some_other_column', // ... ]; protected $appends = [ 'title' ]; protected $with = [ 'post' ]; public function __construct() { echo 'I should not construct!'; } public function post() : void { // ... } public function getPostAttribute() : ?string { return $this->post->title ?? null; } } var_export((new ReflectionClass(Comment::class))->getDefaultProperties()['fillable']);

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.0090.01018.81
8.4.120.0040.00524.02
8.4.110.0100.01018.95
8.4.100.0150.00617.82
8.4.90.0130.00718.75
8.4.80.0130.00719.49
8.4.70.0090.01117.96
8.4.60.0150.00618.94
8.4.50.0120.00819.60
8.4.40.0030.00619.24
8.4.30.0160.00318.31
8.4.20.0120.00817.73
8.4.10.0070.01320.46
8.3.260.0130.00616.42
8.3.250.0080.00918.83
8.3.240.0160.00517.20
8.3.230.0110.00616.64
8.3.220.0040.00517.10
8.3.210.0100.00518.23
8.3.200.0070.00416.72
8.3.190.0050.00317.00
8.3.180.0110.00816.33
8.3.170.0150.00317.36
8.3.160.0110.00718.34
8.3.150.0090.00920.75
8.3.140.0050.00316.49
8.3.130.0030.00616.45
8.3.120.0050.00320.43
8.3.110.0040.01420.94
8.3.100.0040.00418.47
8.3.90.0080.00026.77
8.3.80.0080.00316.49
8.3.70.0070.01116.58
8.3.60.0090.00618.30
8.3.50.0060.01520.20
8.3.40.0100.00719.04
8.3.30.0110.00319.27
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0120.00720.48
8.2.280.0110.00818.39
8.2.270.0120.00817.03
8.2.260.0100.00018.36
8.2.250.0060.00316.44
8.2.240.0040.00417.20
8.2.230.0120.00422.58
8.2.220.0060.00324.06
8.2.210.0120.00326.77
8.2.200.0060.00316.63
8.2.190.0070.01316.75
8.2.180.0070.00725.92
8.2.170.0110.00718.79
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0090.00021.18
8.2.100.0000.01217.78
8.2.90.0040.00417.91
8.2.80.0030.00617.97
8.2.70.0080.00017.91
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00419.40
8.2.30.0040.00418.07
8.2.20.0000.00820.36
8.2.10.0040.00417.89
8.2.00.0000.00719.23
8.1.330.0130.00721.63
8.1.320.0080.01116.24
8.1.310.0150.00418.40
8.1.300.0040.00418.16
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0190.00024.02
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.11
8.1.230.0030.00822.81
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0090.00017.10
8.1.180.0030.00518.10
8.1.170.0090.00018.49
8.1.160.0040.00418.71
8.1.150.0050.00518.52
8.1.140.0000.00717.20
8.1.130.0080.00018.77
8.1.120.0030.00317.23
8.1.110.0050.00317.29
8.1.100.0000.00717.32
8.1.90.0070.00017.38
8.1.80.0020.00517.24
8.1.70.0000.00717.09
8.1.60.0040.00417.35
8.1.50.0070.00017.43
8.1.40.0050.00217.45
8.1.30.0070.00317.54
8.1.20.0040.00417.54
8.1.10.0170.00417.39
8.1.00.0150.00317.41
8.0.300.0040.00420.20
8.0.290.0080.00016.61
8.0.280.0000.00718.30
8.0.270.0000.00816.83
8.0.260.0000.00718.45
8.0.250.0050.00216.91
8.0.240.0070.00316.80
8.0.230.0050.00216.83
8.0.220.0040.00416.66
8.0.210.0030.00316.77
8.0.200.0040.00416.88
8.0.190.0080.00016.82
8.0.180.0070.00016.69
8.0.170.0060.00316.68
8.0.160.0160.00416.78
8.0.150.0160.00316.63
8.0.140.0160.00316.57
8.0.130.0140.00416.79
8.0.120.0060.00516.68
8.0.110.0000.00816.70
8.0.100.0080.00016.73
8.0.90.0000.00716.72
8.0.80.0030.00516.78
8.0.70.0090.00016.69
8.0.60.0000.01016.80
8.0.50.0080.00216.61
8.0.30.0090.00216.69
8.0.20.0050.00516.75
8.0.10.0050.00516.68
7.4.330.0000.00515.55
7.4.320.0030.00316.39
7.4.300.0060.00016.32
7.4.290.0000.00716.33
7.4.280.0040.00716.46
7.4.270.0040.00816.48
7.4.260.0070.00316.37
7.4.250.0050.00516.47
7.4.240.0060.00616.43
7.4.230.0070.00316.45
7.4.220.0050.00516.43
7.4.210.0070.00716.45
7.4.200.0090.00416.35
7.4.190.0060.00316.52
7.4.180.0050.00516.50
7.4.160.0110.00416.38
7.4.150.0000.01016.32
7.4.140.0090.00216.32
7.4.130.0000.01016.36
7.4.120.0070.00416.20
7.4.110.0030.00716.34
7.4.100.0090.00516.30
7.4.90.0110.00416.15
7.4.80.0180.00016.30
7.4.70.0110.00816.27
7.4.60.0090.00516.29
7.4.50.0060.00516.20
7.4.40.0180.00016.03
7.4.30.0140.00716.23
7.4.20.0120.00616.30
7.4.10.0210.00016.23
7.4.00.0000.01616.30

preferences:
27.13 ms | 403 KiB | 5 Q