3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TraitWithProperties { private $a = 'foo'; protected $b = 'bar'; public $c = 'baz'; private static $as = self::class; protected static $bs = __TRAIT__; public static $cs = __CLASS__; } class SimpleClassWithTrait { use TraitWithProperties; } $refClass = new ReflectionClass('TraitWithProperties'); var_dump($refClass->getStaticProperties());

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.0100.00716.50
8.3.50.0110.00318.05
8.3.40.0030.01218.63
8.3.30.0070.00718.58
8.3.20.0080.00020.34
8.3.10.0040.00423.74
8.3.00.0040.00419.13
8.2.180.0040.01525.92
8.2.170.0080.00818.66
8.2.160.0150.00622.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0030.00617.38
8.2.120.0040.00426.35
8.2.110.0090.00022.21
8.2.100.0080.00318.03
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0000.00817.79
8.2.50.0090.00018.07
8.2.40.0000.00819.34
8.2.30.0000.00820.60
8.2.20.0040.00417.60
8.2.10.0000.00717.98
8.2.00.0040.00418.01
8.1.280.0070.01425.92
8.1.270.0080.00024.66
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0000.01219.14
8.1.220.0030.00617.79
8.1.210.0000.00918.77
8.1.200.0090.00017.23
8.1.190.0060.00317.25
8.1.180.0030.00518.10
8.1.170.0070.00018.67
8.1.160.0070.00022.07
8.1.150.0030.00518.79
8.1.140.0040.00419.63
8.1.130.0040.00417.68
8.1.120.0080.00017.39
8.1.110.0050.00217.51
8.1.100.0070.00017.28
8.1.90.0000.00717.48
8.1.80.0040.00417.44
8.1.70.0040.00417.42
8.1.60.0000.00817.48
8.1.50.0040.00417.52
8.1.40.0030.00617.58
8.1.30.0050.00417.64
8.1.20.0000.00717.55
8.1.10.0050.00217.52
8.1.00.0050.00317.43
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0030.00318.45
8.0.270.0070.00017.24
8.0.260.0030.00317.17
8.0.250.0030.00316.86
8.0.240.0000.00816.95
8.0.230.0060.00016.96
8.0.220.0040.00416.80
8.0.210.0000.00716.82
8.0.200.0040.00416.84
8.0.190.0060.00616.93
8.0.180.0000.00716.80
8.0.170.0030.00716.80
8.0.160.0000.00716.80
8.0.150.0030.00316.77
8.0.140.0080.00016.91
8.0.130.0040.00413.24
8.0.120.0060.00316.88
8.0.110.0040.00416.79
8.0.100.0030.00516.80
8.0.90.0000.00716.76
8.0.80.0100.01016.91
8.0.70.0000.00716.92
8.0.60.0040.00416.92
8.0.50.0000.00716.95
8.0.30.0150.00317.01
8.0.20.0170.00517.40
8.0.10.0000.00716.82
8.0.00.0130.00516.75
7.4.330.0000.00516.83
7.4.320.0000.00616.37
7.4.300.0030.00316.40
7.4.290.0030.00316.64
7.4.280.0000.00816.49
7.4.270.0040.00416.64
7.4.260.0100.00016.49
7.4.250.0060.00316.55
7.4.240.0030.00416.60
7.4.230.0030.00316.41
7.4.220.0150.00616.63
7.4.210.0060.00916.54
7.4.200.0000.00816.49
7.4.160.0060.00916.44
7.4.150.0100.01317.40
7.4.140.0130.00817.86
7.4.130.0110.00616.42
7.4.120.0110.00716.52
7.4.110.0130.00416.36
7.4.100.0150.00816.46
7.4.90.0110.00816.40
7.4.80.0120.00319.39
7.4.70.0110.00616.29
7.4.60.0110.00516.32
7.4.50.0000.01216.42
7.4.40.0040.01416.41
7.4.30.0070.01316.43
7.4.00.0050.00914.99
7.3.330.0000.00712.99
7.3.320.0050.00012.91
7.3.310.0000.00716.07
7.3.300.0070.00016.17
7.3.290.0090.00816.13
7.3.280.0090.00816.19
7.3.270.0060.01117.40
7.3.260.0080.00816.11
7.3.250.0120.00716.33
7.3.240.0100.00816.47
7.3.230.0060.01016.39
7.3.210.0150.00616.35
7.3.200.0030.01316.39
7.3.190.0060.01216.19
7.3.180.0090.00616.18
7.3.170.0030.01316.43
7.3.160.0030.01916.23
7.3.120.0070.01114.80
7.3.110.0040.01214.66
7.3.100.0060.01014.81
7.3.90.0060.01214.55
7.3.80.0060.01014.68
7.3.70.0030.01014.93
7.3.60.0100.00714.63
7.3.50.0030.01014.84
7.3.40.0140.00014.75
7.3.30.0030.01114.84
7.3.20.0030.01016.55
7.3.10.0110.00416.62
7.3.00.0050.00516.42
7.2.330.0110.00716.51
7.2.320.0100.01016.62
7.2.310.0100.01316.58
7.2.300.0120.00416.69
7.2.290.0110.00616.46
7.2.250.0060.01514.92
7.2.240.0070.01415.16
7.2.230.0080.01214.78
7.2.220.0060.01515.08
7.2.210.0040.01115.14
7.2.200.0060.00314.93
7.2.190.0030.00615.00
7.2.180.0030.01414.76
7.2.170.0080.00615.10
7.2.130.0090.00316.59
7.2.120.0080.00416.54
7.2.110.0100.00616.73
7.2.100.0030.01216.71
7.2.90.0030.00916.61
7.2.80.0080.00416.48
7.2.70.0000.01316.94
7.2.60.0060.00316.66
7.2.50.0040.01216.90
7.2.40.0030.01016.81
7.2.30.0060.00616.99
7.2.20.0070.00716.54
7.2.10.0040.01117.02
7.2.00.0070.00918.11
7.1.330.0060.00615.41
7.1.320.0100.00015.63
7.1.310.0060.00615.75
7.1.300.0100.00315.66
7.1.290.0130.00015.70
7.1.280.0060.00615.74
7.1.270.0100.00615.62
7.1.260.0100.00715.59
7.1.250.0110.00615.72
7.1.240.0080.00415.89
7.1.230.0000.01215.61
7.1.220.0000.01015.52
7.1.210.0110.00015.66
7.1.200.0070.00515.55
7.1.190.0040.00415.70
7.1.180.0000.00815.87
7.1.170.0120.00015.70
7.1.160.0000.00815.79
7.1.150.0030.00615.47
7.1.140.0040.00815.73
7.1.130.0030.01015.79
7.1.120.0060.00315.84
7.1.110.0100.00615.73
7.1.100.0040.00816.73
7.1.90.0040.00815.61
7.1.80.0000.00715.77
7.1.70.0040.00716.28
7.1.60.0050.01417.37
7.1.50.0070.00316.26
7.1.40.0050.00515.39
7.1.30.0000.01015.73
7.1.20.0030.01015.73
7.1.10.0040.00715.57
7.1.00.0020.04219.07
7.0.330.0090.00615.22
7.0.320.0030.00915.18
7.0.310.0060.00815.35
7.0.300.0060.00315.30
7.0.290.0000.01115.23
7.0.280.0030.00715.14
7.0.270.0030.00515.13
7.0.260.0080.00615.14
7.0.250.0040.01115.30
7.0.240.0030.00615.26
7.0.230.0080.00415.21
7.0.220.0050.00515.32
7.0.210.0090.00315.54
7.0.200.0050.00415.95
7.0.190.0040.01115.04
7.0.180.0090.00015.00
7.0.170.0060.00315.10
7.0.160.0050.00515.43
7.0.150.0060.00315.04
7.0.140.0030.00615.36
7.0.130.0040.00415.16
7.0.120.0040.00815.50
7.0.110.0030.00915.39
7.0.100.0000.01015.13
7.0.90.0100.00615.25
7.0.80.0070.00715.32
7.0.70.0060.00615.52
7.0.60.0020.03917.59
7.0.50.0070.02716.49
7.0.40.0160.02616.78
7.0.30.0190.02916.76
7.0.20.0150.04416.76
7.0.10.0080.04516.81
7.0.00.0050.03516.70
5.6.380.0080.00414.27
5.6.370.0080.00414.31
5.6.360.0080.00414.26
5.6.350.0070.00314.31
5.6.340.0030.00914.52
5.6.330.0100.00314.39
5.6.320.0040.00414.32
5.6.310.0060.00314.50
5.6.300.0080.00614.54
5.6.290.0060.00314.52
5.6.280.0020.02217.68
5.6.270.0060.00314.18
5.6.260.0060.00614.25
5.6.250.0070.00414.64
5.6.240.0070.01014.25
5.6.230.0100.00314.36
5.6.220.0070.00414.28
5.6.210.0050.04417.29
5.6.200.0060.02416.18
5.6.190.0090.04417.27
5.6.180.0200.03817.35
5.6.170.0120.04117.28
5.6.160.0030.04517.41
5.6.150.0020.02715.95
5.6.140.0000.03216.16
5.6.130.0030.03416.21
5.6.120.0090.02417.53
5.6.110.0030.02717.46
5.6.100.0080.04317.44
5.6.90.0120.03517.64
5.6.80.0020.02417.32
5.6.70.0030.01013.97
5.6.60.0030.01013.73
5.6.50.0000.01313.93
5.6.40.0030.01014.21
5.6.30.0040.01113.93
5.6.20.0150.00014.06
5.6.10.0000.01314.12
5.6.00.0040.00713.93
5.5.380.0030.00311.18
5.5.370.0000.00611.18
5.5.360.0040.00711.18
5.5.350.1970.02015.81
5.5.340.0050.03514.55
5.5.330.0050.02315.72
5.5.320.0000.02815.65
5.5.310.0170.03515.66
5.5.300.0020.04414.59
5.5.290.0070.03514.54
5.5.280.0020.03715.97
5.5.270.0050.03015.93
5.5.260.0070.04615.91
5.5.250.0000.02515.89
5.5.240.0140.02515.72
5.5.230.0080.00311.18
5.5.220.0100.00011.18
5.5.210.0000.00811.18
5.5.200.0060.00611.18
5.5.190.0040.00711.18
5.5.180.0060.00611.18
5.5.170.0030.00311.18
5.5.160.0080.00311.18
5.5.150.0070.00311.18
5.5.140.0090.00311.18
5.5.130.0060.00311.18
5.5.120.0030.01011.18
5.5.110.0040.00411.18
5.5.100.0040.00711.18
5.5.90.0040.00811.27
5.5.80.0100.00311.19
5.5.70.0000.00911.18
5.5.60.0040.00711.26
5.5.50.0050.00211.18
5.5.40.0060.00311.18
5.5.30.0000.01111.22
5.5.20.0000.01011.18
5.5.10.0030.00311.18
5.5.00.0030.00911.18

preferences:
53.51 ms | 400 KiB | 5 Q