3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DTO { public function __construct( public array $prop = [] ) {} } $default = (new ReflectionProperty(DTO::class, 'prop'))->getDefaultValue(); var_dump($default); // Здесь NULL

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.1.60.0030.00617.54
8.1.50.0080.00017.42
8.1.40.0030.00617.27
8.1.30.0050.00317.53
8.1.20.0050.00317.46
8.1.10.0040.00417.47
8.1.00.0080.00617.37
8.0.190.0040.00416.79
8.0.180.0040.00416.83
8.0.170.0080.00016.72
8.0.160.0000.00816.81
8.0.150.0030.00416.73
8.0.140.0070.00016.83
8.0.130.0100.00015.01
8.0.120.0070.00414.67
8.0.110.0060.00514.57
8.0.100.0050.00714.59
8.0.90.0080.00314.58
8.0.80.0090.00716.44
8.0.70.0080.00815.95
8.0.60.0080.00815.90
8.0.50.0090.00715.90
8.0.30.0080.00815.96
8.0.20.0070.00916.01
8.0.10.0090.00616.09
8.0.00.0060.00816.21
7.4.290.0050.00316.30
7.4.280.0040.00416.35
7.4.270.0030.00316.46
7.4.260.0100.00314.87
7.4.250.0070.00413.93
7.4.240.0080.00514.76
7.4.230.0110.00314.48
7.4.220.0070.00514.51
7.4.210.0080.00715.84
7.4.200.0090.00615.66
7.4.190.0090.00615.74
7.4.180.0100.00515.70
7.4.160.0090.00715.67
7.4.150.0080.00815.68
7.4.140.0090.00615.60
7.4.130.0060.00915.52
7.4.120.0090.00615.50
7.4.110.0090.00615.55
7.4.100.0070.00815.64
7.4.90.0080.00715.50
7.4.80.0080.00715.50
7.4.70.0100.00615.48
7.4.60.0090.00615.50
7.4.50.0070.00815.44
7.4.40.0080.00615.43
7.4.30.0090.00715.51
7.4.20.0090.00615.51
7.4.10.0080.00715.47
7.4.00.0090.00615.54
7.3.330.0060.00716.14
7.3.320.0090.00213.66
7.3.310.0080.00314.33
7.3.300.0080.00414.26
7.3.290.0090.00615.48
7.3.280.0090.00515.46
7.3.270.0090.00615.45
7.3.260.0080.00615.44
7.3.250.0070.00815.44
7.3.240.0090.00615.43
7.3.230.0070.00815.48
7.3.220.0080.00815.38
7.3.210.0100.00515.39
7.3.200.0090.00715.48
7.3.190.0090.00615.40
7.3.180.0070.00715.39
7.3.170.0070.00715.39
7.3.160.0080.00715.38
7.3.150.0090.00715.39
7.3.140.0070.00915.37
7.3.130.0100.00615.35
7.3.120.0080.00815.43
7.3.110.0090.00615.29
7.3.100.0090.00615.32
7.3.90.0080.00815.66
7.3.80.0090.00615.37
7.3.70.0090.00515.46
7.3.60.0080.00615.52
7.3.50.0080.00715.49
7.3.40.0090.00615.47
7.3.30.0070.00815.48
7.3.20.0100.00616.07
7.3.10.0070.00916.00
7.3.00.0090.00716.02

preferences:
21.54 ms | 411 KiB | 12 Q