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')->isDefault()); var_dump($class->getProperty('propertyWithNullDefault')->isDefault()); var_dump($class->getProperty('propertyWithTrueDefault')->isDefault());

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.70.0120.00316.58
8.3.60.0040.01118.18
8.3.50.0110.01021.94
8.3.40.0120.00418.54
8.3.30.0100.00318.97
8.3.20.0040.00420.16
8.3.10.0090.00021.97
8.3.00.0040.00422.58
8.2.180.0140.00718.54
8.2.170.0120.00622.96
8.2.160.0120.00320.94
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00326.16
8.2.120.0050.00319.36
8.2.110.0100.00022.29
8.2.100.0030.00917.66
8.2.90.0000.00819.14
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0050.00317.90
8.2.50.0000.00818.07
8.2.40.0030.00618.03
8.2.30.0040.00418.02
8.2.20.0000.00717.64
8.2.10.0050.00319.47
8.2.00.0040.00417.61
8.1.280.0100.01025.92
8.1.270.0050.00323.96
8.1.260.0070.00726.35
8.1.250.0000.00728.09
8.1.240.0000.00923.68
8.1.230.0080.00319.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0040.00417.15
8.1.180.0060.00318.10
8.1.170.0040.00418.57
8.1.160.0070.00021.90
8.1.150.0030.00618.56
8.1.140.0040.00417.33
8.1.130.0030.00317.80
8.1.120.0000.00817.35
8.1.110.0030.00917.38
8.1.100.0030.00517.28
8.1.90.0030.00317.38
8.1.80.0030.00317.41
8.1.70.0070.00017.31
8.1.60.0030.00617.43
8.1.50.0040.00417.35
8.1.40.0030.00617.49
8.1.30.0040.00417.46
8.1.20.0000.00817.64
8.1.10.0040.00417.52
8.1.00.0070.00017.45
8.0.300.0000.00718.77
8.0.290.0040.00417.15
8.0.280.0070.00018.28
8.0.270.0030.00517.11
8.0.260.0060.00016.80
8.0.250.0000.00716.91
8.0.240.0070.00016.79
8.0.230.0070.00016.82
8.0.220.0070.00016.84
8.0.210.0080.00016.73
8.0.200.0030.00316.95
8.0.190.0040.00416.77
8.0.180.0080.00016.82
8.0.170.0040.00416.86
8.0.160.0000.00816.84
8.0.150.0040.00416.64
8.0.140.0000.00716.73
8.0.130.0030.00313.21
8.0.120.0030.00516.76
8.0.110.0040.00416.65
8.0.100.0050.00216.71
8.0.90.0050.00216.91
8.0.80.0100.00616.74
8.0.70.0000.00816.70
8.0.60.0040.00416.78
8.0.50.0000.00716.81
8.0.30.0090.01116.97
8.0.20.0120.00617.40
8.0.10.0030.00416.77
8.0.00.0070.01116.62
7.4.330.0030.00315.00
7.4.320.0060.00016.48
7.4.300.0030.00316.36
7.4.290.0030.00516.41
7.4.280.0000.00716.44
7.4.270.0070.00016.56
7.4.260.0040.00416.41
7.4.250.0080.00016.48
7.4.240.0030.00416.44
7.4.230.0030.00316.51
7.4.220.0110.00716.54
7.4.210.0060.00916.52
7.4.200.0030.00316.47
7.4.190.0030.00316.64
7.4.160.0140.00716.46
7.4.150.0090.01517.40
7.4.140.0190.00217.86
7.4.130.0090.01216.46
7.4.120.0090.00916.36
7.4.110.0030.01416.37
7.4.100.0070.01016.25
7.4.90.0060.01616.46
7.4.80.0110.00816.39
7.4.70.0040.01216.35
7.4.60.0030.01316.29
7.4.50.0000.00716.30
7.4.40.0040.01522.77
7.4.30.0060.01016.24
7.4.00.0100.00314.86
7.3.330.0000.00613.19
7.3.320.0040.00413.05
7.3.310.0000.00716.24
7.3.300.0000.00716.07
7.3.290.0110.00316.18
7.3.280.0090.00916.18
7.3.270.0090.00917.40
7.3.260.0190.00616.35
7.3.250.0100.00616.39
7.3.240.0100.00716.20
7.3.230.0070.01316.39
7.3.210.0120.00916.54
7.3.200.0030.02019.39
7.3.190.0100.00716.44
7.3.180.0100.00616.30
7.3.170.0080.00816.35
7.3.160.0100.00716.27
7.3.120.0060.00614.83
7.3.10.0090.00616.62
7.3.00.0000.01416.48
7.2.330.0120.00916.28
7.2.320.0190.00416.35
7.2.310.0140.00316.48
7.2.300.0080.00816.59
7.2.290.0100.00716.39
7.2.130.0000.01416.55
7.2.120.0030.01016.86
7.2.110.0110.00416.87
7.2.100.0060.00616.80
7.2.90.0040.01116.94
7.2.80.0000.01316.76
7.2.70.0000.01116.66
7.2.60.0040.01116.75
7.2.50.0040.00816.61
7.2.40.0110.00017.02
7.2.30.0000.01316.74
7.2.20.0070.01016.72
7.2.10.0030.01016.72
7.2.00.0080.00416.71
7.1.250.0030.00715.53
7.1.200.0000.01015.55
7.1.70.0030.00616.84
7.1.60.0030.02119.82
7.1.50.0090.00316.77
7.1.00.0030.07722.45
7.0.200.0030.00616.73
7.0.140.0100.06721.97
7.0.60.0130.07720.04
7.0.50.0130.07017.86
7.0.40.0070.04720.10
7.0.30.0270.04720.20
7.0.20.0370.06320.10
7.0.10.0070.08720.05
7.0.00.0100.08020.30
5.6.280.0000.07721.07
5.6.210.0200.07320.56
5.6.200.0000.09318.24
5.6.190.0000.06720.49
5.6.180.0270.05720.34
5.6.170.0330.06720.56
5.6.160.0030.07320.55
5.6.150.0030.04018.19
5.6.140.0100.06718.28
5.6.130.0130.06318.17
5.6.120.0070.08320.68
5.6.110.0100.08321.14
5.6.100.0070.04021.01
5.6.90.0100.06020.98
5.6.80.0130.06720.50
5.5.350.0300.07020.46
5.5.340.0070.08017.98
5.5.330.0100.05320.43
5.5.320.0070.07320.21
5.5.310.0300.07320.19
5.5.300.0030.05018.08
5.5.290.0030.08317.96
5.5.280.0100.03320.88
5.5.270.0070.05320.74
5.5.260.0030.04020.84
5.5.250.0070.03720.66
5.5.240.0130.03020.35
5.4.450.2630.04019.57
5.4.440.2770.03019.55
5.4.430.2830.04319.15
5.4.420.2830.04719.32
5.4.410.2870.03719.33
5.4.400.2800.04019.20
5.4.390.3000.03719.23
5.4.380.3270.04318.98
5.4.370.2600.03719.25
5.4.360.2830.04019.13
5.4.350.2470.04019.15
5.4.340.3200.04019.06
5.4.320.3030.03319.07
5.4.310.2800.03019.24
5.4.300.2830.04019.08
5.4.290.2900.03319.31
5.4.280.3230.04319.15
5.4.270.2900.03719.26
5.4.260.2700.03319.22
5.4.250.2700.03319.18
5.4.240.2700.04019.02
5.4.230.2770.04019.32
5.4.220.3070.04319.19
5.4.210.2700.02719.17
5.4.200.2830.03719.15
5.4.190.2630.04319.18
5.4.180.2800.04319.13
5.4.170.2500.04019.21
5.4.160.2600.03318.90
5.4.150.2500.03719.15
5.4.140.2830.03716.36
5.4.130.2800.03716.47
5.4.120.0970.04316.45
5.4.110.0270.05016.45
5.4.100.0200.03316.36
5.4.90.0230.03016.45
5.4.80.0230.05316.26
5.4.70.0270.06016.29
5.4.60.0230.03016.35
5.4.50.0170.03316.51
5.4.40.0200.07016.43
5.4.30.0130.03716.55
5.4.20.0270.04016.43
5.4.10.0100.04016.53
5.4.00.0100.04015.78
5.3.290.0130.04014.77
5.3.280.0230.07014.49
5.3.270.0170.03714.57
5.3.260.0170.04014.68
5.3.250.0200.03314.61
5.3.240.0230.05714.82
5.3.230.0270.06714.66
5.3.220.0200.07014.47
5.3.210.0270.06014.69
5.3.200.0200.04014.64
5.3.190.0100.06714.61
5.3.180.0130.04014.56
5.3.170.0170.03714.78
5.3.160.0200.03314.67
5.3.150.0170.07014.63
5.3.140.0170.07014.52
5.3.130.0200.04714.55
5.3.120.0130.04014.55
5.3.110.0230.04314.55
5.3.100.0230.06714.00
5.3.90.0130.04314.24
5.3.80.0200.07714.10
5.3.70.0200.05013.91
5.3.60.0170.07314.00
5.3.50.0170.03713.86
5.3.40.0170.06014.06
5.3.30.0170.03714.05
5.3.20.0130.06013.75
5.3.10.0200.07013.59
5.3.00.0200.04313.66
5.2.170.0230.04311.10
5.2.160.0130.03711.07
5.2.150.0170.06311.23
5.2.140.0130.03011.04
5.2.130.0230.05311.02
5.2.120.0130.04011.13
5.2.110.0130.03011.00
5.2.100.0270.05011.03
5.2.90.0100.03311.05
5.2.80.0130.04011.15
5.2.70.0130.04711.19
5.2.60.0130.06311.10
5.2.50.0200.05010.92
5.2.40.0130.04010.99
5.2.30.0170.05711.04
5.2.20.0200.03311.17
5.2.10.0170.05710.77
5.2.00.0170.02310.71
5.1.60.0130.02310.04
5.1.50.0170.0479.89
5.1.40.0100.0339.91
5.1.30.0170.03710.46
5.1.20.0200.04010.32
5.1.10.0130.0279.95
5.1.00.0100.02710.05
5.0.50.0070.0208.47
5.0.40.0100.0338.54
5.0.30.0030.0378.27
5.0.20.0100.0178.09
5.0.10.0100.0208.25
5.0.00.0030.0478.23
4.4.90.0130.0136.77
4.4.80.0100.0276.77
4.4.70.0070.0136.77
4.4.60.0100.0136.77
4.4.50.0030.0176.77
4.4.40.0070.0436.77
4.4.30.0130.0276.77
4.4.20.0100.0406.77
4.4.10.0100.0206.77
4.4.00.0100.0406.77
4.3.110.0100.0336.77
4.3.100.0070.0276.77
4.3.90.0030.0206.77
4.3.80.0070.0476.77
4.3.70.0070.0236.77
4.3.60.0100.0336.77
4.3.50.0070.0336.77
4.3.40.0070.0506.77
4.3.30.0030.0176.77
4.3.20.0100.0276.77
4.3.10.0000.0176.77
4.3.00.0030.0176.77

preferences:
66.28 ms | 401 KiB | 5 Q