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.3.60.0090.00916.32
8.3.50.0000.01418.18
8.3.40.0140.00318.38
8.3.30.0040.01118.40
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.180.0110.01125.92
8.2.170.0070.00718.70
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0100.00721.12
8.2.100.0060.00619.76
8.2.90.0050.00319.13
8.2.80.0060.00317.97
8.2.70.0050.00317.38
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0050.00318.16
8.2.30.0100.00018.05
8.2.20.0040.00417.87
8.2.10.0030.00520.87
8.2.00.0040.00419.15
8.1.280.0160.00325.92
8.1.270.0030.00623.99
8.1.260.0100.01026.35
8.1.250.0060.00328.09
8.1.240.0070.00322.13
8.1.230.0040.00822.63
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0000.00718.85
8.1.150.0000.00818.78
8.1.140.0040.00418.92
8.1.130.0000.00620.18
8.1.120.0030.00717.30
8.1.110.0040.00417.41
8.1.100.0040.00417.27
8.1.90.0000.00817.41
8.1.80.0070.00017.41
8.1.70.0000.00817.42
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.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0030.00318.34
8.0.270.0070.00017.81
8.0.260.0060.00018.41
8.0.250.0070.00016.73
8.0.240.0000.00616.95
8.0.230.0000.00716.77
8.0.220.0000.00916.69
8.0.210.0000.00716.69
8.0.200.0070.00016.79
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.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0030.00316.45
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:
75.51 ms | 401 KiB | 5 Q