3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SkipAssignInConstruct2 { /** * @var bool */ public $property; public function __construct(bool $property) { $this->property = $property; } } class Foo { use SkipAssignInConstruct2; public function __construct() { } } var_dump((new Foo())->property);

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.5.30.0090.00919.56
8.5.20.0080.00919.55
8.5.10.0090.00820.03
8.5.00.0130.00919.92
8.4.180.0140.00819.63
8.4.170.0160.00823.93
8.4.160.0130.00923.04
8.4.150.0020.00114.05
8.4.140.0110.01017.23
8.4.130.0050.00417.84
8.4.120.0110.00920.54
8.4.110.0090.01122.16
8.4.100.0110.01017.71
8.4.90.0130.00918.38
8.4.80.0110.00719.33
8.4.70.0110.01017.73
8.4.60.0150.00618.41
8.4.50.0070.01117.80
8.4.40.0100.01017.78
8.4.30.0090.00920.66
8.4.20.0040.01519.30
8.4.10.0030.00623.81
8.3.300.0090.01218.26
8.3.290.0090.00720.72
8.3.280.0120.00919.98
8.3.270.0140.00616.58
8.3.260.0130.00516.48
8.3.250.0040.00319.11
8.3.240.0050.00316.67
8.3.230.0110.00816.66
8.3.220.0040.00318.95
8.3.210.0100.00616.57
8.3.200.0050.00416.51
8.3.190.0080.01216.77
8.3.180.0100.00820.75
8.3.170.0070.01118.97
8.3.160.0060.00716.51
8.3.150.0090.00918.97
8.3.140.0110.00416.45
8.3.130.0000.00916.39
8.3.120.0070.01120.80
8.3.110.0080.00016.48
8.3.100.0100.01016.41
8.3.90.0060.01226.77
8.3.80.0090.00016.50
8.3.70.0120.00616.75
8.3.60.0070.01416.75
8.3.50.0060.00919.97
8.3.40.0000.01420.23
8.3.30.0140.00018.69
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.300.0140.00920.27
8.2.290.0110.00820.34
8.2.280.0120.00718.23
8.2.270.0060.00318.35
8.2.260.0000.00716.48
8.2.250.0080.00018.57
8.2.240.0040.00416.91
8.2.230.0080.00020.94
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0080.00018.17
8.2.190.0110.00418.41
8.2.180.0150.00625.92
8.2.170.0060.01018.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0100.00726.16
8.2.120.0000.00820.82
8.2.110.0060.00320.27
8.2.100.0000.00820.52
8.1.340.0080.01117.60
8.1.330.0060.00622.00
8.1.320.0110.00816.25
8.1.310.0030.01316.71
8.1.300.0120.00618.50
8.1.290.0060.00330.84
8.1.280.0150.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00718.47
8.1.230.0080.00318.57
7.0.280.0020.00616.95

preferences:
34.12 ms | 475 KiB | 5 Q