3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PhpClassWithPropertyDefaults { public $propertyWithoutDefault; public $propertyWithNullDefault = null; public $propertyWithTrueDefault = true; } $class = new ReflectionClass('PhpClassWithPropertyDefaults'); var_dump($class->getProperty('propertyWithoutDefault')); var_dump($class->getProperty('propertyWithNullDefault')); var_dump($class->getProperty('propertyWithTrueDefault'));

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.40.0070.01418.72
8.3.30.0070.00718.62
8.3.20.0050.00318.60
8.3.10.0040.00420.25
8.3.00.0060.00319.25
8.2.170.0100.00322.96
8.2.160.0100.00720.92
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0100.00020.47
8.2.100.0040.00817.72
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00917.92
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0050.00317.93
8.2.20.0040.00417.57
8.2.10.0000.00817.71
8.2.00.0000.00817.66
8.1.270.0060.00322.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0060.00617.52
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.23
8.1.190.0080.00017.53
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0040.00418.73
8.1.150.0080.00018.49
8.1.140.0000.00817.43
8.1.130.0000.00717.84
8.1.120.0000.00817.45
8.1.110.0040.00417.44
8.1.100.0030.00317.43
8.1.90.0040.00417.41
8.1.80.0000.00717.39
8.1.70.0000.00717.30
8.1.60.0040.00417.37
8.1.50.0040.00417.38
8.1.40.0030.00617.45
8.1.30.0040.00417.62
8.1.20.0040.00417.45
8.1.10.0040.00417.41
8.1.00.0050.00217.42
8.0.300.0070.00018.77
8.0.290.0000.00816.58
8.0.280.0030.00318.38
8.0.270.0070.00017.11
8.0.260.0070.00016.69
8.0.250.0000.00716.93
8.0.240.0070.00016.82
8.0.230.0000.00716.80
8.0.220.0030.00316.76
8.0.210.0080.00016.86
8.0.200.0030.00316.85
8.0.190.0000.00716.84
8.0.180.0040.00416.70
8.0.170.0030.00616.88
8.0.160.0080.00016.85
8.0.150.0030.00616.77
8.0.140.0030.00616.75
8.0.130.0030.00313.18
8.0.120.0000.00716.88
8.0.110.0030.00316.82
8.0.100.0090.00016.86
8.0.90.0000.00816.61
8.0.80.0100.00716.84
8.0.70.0040.00416.68
8.0.60.0020.00516.77
8.0.50.0080.00016.62
8.0.30.0070.01216.93
8.0.20.0080.01117.05
8.0.10.0040.00416.84
8.0.00.0050.01416.60
7.4.330.0000.00512.83
7.4.320.0030.00316.50
7.4.300.0000.00716.43
7.4.290.0070.00016.54
7.4.280.0000.00816.43
7.4.270.0070.00016.55
7.4.260.0000.00613.19
7.4.250.0000.00916.42
7.4.240.0030.00316.50
7.4.230.0030.00316.54
7.4.220.0090.01216.63
7.4.210.0060.01016.47
7.4.200.0030.00616.27
7.4.190.0030.00316.68
7.4.160.0080.00816.32
7.4.150.0090.00916.21
7.4.140.0230.00616.38
7.4.130.0120.00616.37
7.4.120.0080.01016.45
7.4.110.0120.00616.48
7.4.100.0030.01716.45
7.4.90.0150.00316.40
7.4.80.0120.01216.39
7.4.70.0100.00716.52
7.4.60.0070.01016.38
7.4.50.0060.00316.51
7.4.40.0030.01516.40
7.4.30.0040.01216.39
7.4.00.0040.01414.99
7.3.330.0060.00013.25
7.3.320.0030.00313.11
7.3.310.0000.00716.15
7.3.300.0030.00516.03
7.3.290.0140.00716.23
7.3.280.0100.00916.16
7.3.270.0090.00916.17
7.3.260.0060.01316.38
7.3.250.0100.00816.16
7.3.240.0190.00016.43
7.3.230.0100.00716.12
7.3.210.0140.00616.32
7.3.200.0130.00319.39
7.3.190.0160.00316.36
7.3.180.0030.01316.33
7.3.170.0080.00816.43
7.3.160.0140.00316.11
7.3.120.0040.01114.89
7.3.110.0100.00614.41
7.3.100.0080.00314.94
7.3.90.0040.01114.34
7.3.80.0060.00914.62
7.3.70.0100.00614.56
7.3.60.0090.00614.87
7.3.50.0030.01114.61
7.3.40.0100.00714.57
7.3.30.0060.00914.41
7.3.20.0050.00516.44
7.3.10.0110.00716.77
7.3.00.0030.01316.73
7.2.330.0090.00916.42
7.2.320.0000.01816.61
7.2.310.0080.01016.42
7.2.300.0130.00316.53
7.2.290.0070.01016.29
7.2.240.0030.01414.40
7.2.230.0000.01514.59
7.2.220.0110.00014.76
7.2.210.0090.00315.09
7.2.200.0060.00914.89
7.2.190.0060.00614.98
7.2.180.0060.00614.60
7.2.170.0040.00814.96
7.2.160.0030.00814.88
7.2.150.0100.00716.94
7.2.140.0070.00716.70
7.2.130.0060.01016.96
7.2.120.0030.01316.71
7.2.110.0070.01016.68
7.2.100.0080.00416.89
7.2.90.0070.00716.91
7.2.80.0040.00816.68
7.2.70.0070.01016.74
7.2.60.0050.01116.83
7.2.50.0090.00916.65
7.2.40.0000.01216.70
7.2.30.0060.01016.93
7.2.20.0040.00816.91
7.2.10.0070.00716.75
7.2.00.0000.01616.59
7.1.330.0040.01015.59
7.1.320.0040.01115.71
7.1.310.0120.00315.35
7.1.300.0060.00615.82
7.1.290.0110.00415.62
7.1.280.0000.01415.77
7.1.270.0030.01315.57
7.1.260.0070.00415.57
7.1.250.0000.01515.86
7.1.200.0080.00415.58
7.1.100.0060.00617.62
7.1.70.0080.00017.02
7.1.60.0070.01719.40
7.1.50.0070.01516.86
7.1.00.0030.07722.57
7.0.200.0080.00414.69
7.0.140.0030.07322.10
7.0.120.0030.07322.15
7.0.60.0130.03719.86
7.0.50.0100.05017.95
7.0.40.0070.04320.04
7.0.30.0470.04320.24
7.0.20.0270.05320.16
7.0.10.0070.04320.16
7.0.00.0100.08320.18
5.6.210.0200.07320.54
5.6.200.0070.04018.22
5.6.190.0030.06720.68
5.6.180.0100.04720.61
5.6.170.0400.03720.71
5.6.160.0130.05320.47
5.6.150.0100.06318.16
5.6.140.0000.04318.29
5.6.130.0100.08018.17
5.6.120.0000.04720.96
5.6.110.0100.06021.12
5.6.100.0070.06021.13
5.6.90.0070.03720.96
5.6.80.0070.07020.50
5.5.350.0000.04720.41
5.5.340.0070.07017.99
5.5.330.0170.08020.21
5.5.320.0000.08720.19
5.5.310.0170.04320.35
5.5.300.0100.07718.05
5.5.290.0070.05717.93
5.5.280.0170.05320.68
5.5.270.0070.07320.76
5.5.260.0030.06320.64
5.5.250.0000.04320.55
5.5.240.0270.07020.03
5.4.450.0030.06019.18
5.4.440.0030.08719.48
5.4.430.0000.05019.21
5.4.420.0130.06719.50
5.4.410.0070.06019.12
5.4.400.0130.07319.21
5.4.390.0030.04019.11
5.4.380.0070.07019.24
5.4.370.0130.06019.15
5.4.360.0070.06318.94
5.4.350.0070.08318.86
5.4.340.0030.04019.14
5.4.320.0100.07019.24
5.4.310.0100.03319.12
5.4.300.0100.05719.11
5.4.290.0070.07719.09
5.4.280.0170.06719.15
5.4.270.0100.07719.14
5.4.260.0000.05019.16
5.4.250.0070.07719.00
5.4.240.0070.06019.14
5.4.230.0030.04318.99
5.4.220.0100.06718.91
5.4.210.0030.05318.86
5.4.200.0000.04319.11
5.4.190.0070.03719.14
5.4.180.0100.07319.23
5.4.170.0030.08018.98
5.4.160.0100.06319.13
5.4.150.0130.06719.12
5.4.140.0030.06016.31
5.4.130.0070.05716.26
5.4.120.0070.06716.48
5.4.110.0000.05716.65
5.4.100.0070.07316.39
5.4.90.0030.06716.47
5.4.80.0070.05016.39
5.4.70.0170.06316.41
5.4.60.0100.04016.28
5.4.50.0030.05016.39
5.4.40.0030.04716.27
5.4.30.0100.03016.44
5.4.20.0130.06716.50
5.4.10.0070.04316.38
5.4.00.0070.07315.82
5.3.290.0000.04314.67
5.3.280.0170.06314.66
5.3.270.0100.05014.63
5.3.260.0100.07314.62
5.3.250.0000.08714.74
5.3.240.0100.07714.49
5.3.230.0130.05714.59
5.3.220.0070.07314.62
5.3.210.0100.05314.59
5.3.200.0030.07714.46
5.3.190.0030.04714.45
5.3.180.0030.04014.58
5.3.170.0070.04714.63
5.3.160.0070.04014.70
5.3.150.0130.02714.59
5.3.140.0070.06314.69
5.3.130.0000.04314.53
5.3.120.0000.06714.56
5.3.110.0100.06714.59
5.3.100.0070.07714.05
5.3.90.0200.04014.01
5.3.80.0000.06014.01
5.3.70.0030.06314.06
5.3.60.0030.03714.07
5.3.50.0100.06313.89
5.3.40.0100.07013.95
5.3.30.0070.06713.85
5.3.20.0000.07313.73
5.3.10.0000.07013.57
5.3.00.0000.08013.58
5.2.170.0100.05311.14
5.2.160.0000.04011.14
5.2.150.0000.04011.20
5.2.140.0030.03711.21
5.2.130.0100.03711.18
5.2.120.0030.05711.10
5.2.110.0100.04311.19
5.2.100.0000.04311.10
5.2.90.0100.05310.99
5.2.80.0030.03011.06
5.2.70.0030.03711.06
5.2.60.0030.03711.21
5.2.50.0100.03311.08
5.2.40.0070.05310.91
5.2.30.0070.05711.03
5.2.20.0130.04310.95
5.2.10.0070.05711.00
5.2.00.0100.05010.76
5.1.60.0030.05310.14
5.1.50.0000.0409.98
5.1.40.0000.0279.94
5.1.30.0030.02710.37
5.1.20.0030.05010.31
5.1.10.0000.03710.03
5.1.00.0030.04310.06
5.0.50.0100.0408.57
5.0.40.0070.0338.57
5.0.30.0070.0338.57
5.0.20.0000.0508.57
5.0.10.0030.0238.57
5.0.00.0030.0338.57
4.4.90.0070.0238.57
4.4.80.0000.0378.57
4.4.70.0000.0238.57
4.4.60.0000.0208.57
4.4.50.0000.0238.57
4.4.40.0000.0508.57
4.4.30.0000.0338.57
4.4.20.0030.0338.57
4.4.10.0030.0338.57
4.4.00.0000.0578.57
4.3.110.0070.0238.57
4.3.100.0000.0378.57
4.3.90.0030.0308.57
4.3.80.0000.0278.57
4.3.70.0000.0408.57
4.3.60.0000.0338.57
4.3.50.0000.0278.57
4.3.40.0030.0408.57
4.3.30.0030.0238.57
4.3.20.0000.0408.57
4.3.10.0000.0238.57
4.3.00.0030.0178.57

preferences:
40.13 ms | 400 KiB | 5 Q