3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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('SimpleClassWithTrait'); var_dump($refClass->getStaticProperties());
based on aDdQ6

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0070.00716.35
7.2.00.0070.01019.38
7.1.200.0090.00015.43
7.1.100.0040.01117.97
7.1.70.0070.01117.09
7.1.60.0170.00719.36
7.1.50.0100.01016.60
7.1.00.0030.07322.50
7.0.200.0030.00316.71
7.0.60.0170.06020.00
7.0.50.0070.07717.95
7.0.40.0000.04720.11
7.0.30.0470.06320.23
7.0.20.0370.07320.16
7.0.10.0130.08020.23
7.0.00.0130.06720.06
5.6.280.0030.05020.86
5.6.210.0030.06320.56
5.6.200.0070.07718.18
5.6.190.0000.05320.50
5.6.180.0370.04720.50
5.6.170.0070.05020.57
5.6.160.0000.09320.39
5.6.150.0170.07318.16
5.6.140.0030.05718.09
5.6.130.0030.08018.11
5.6.120.0070.04321.04
5.6.110.0100.08020.98
5.6.100.0070.07321.09
5.6.90.0130.08021.12
5.6.80.0000.04020.38
5.5.350.3900.03720.48
5.5.340.0170.06717.96
5.5.330.0100.08020.23
5.5.320.0100.08020.02
5.5.310.0330.07020.19
5.5.300.0070.03717.94
5.5.290.0100.08017.96
5.5.280.0030.04320.89
5.5.270.0070.04320.94
5.5.260.0070.08720.97
5.5.250.0000.04320.61
5.5.240.0200.06020.27
5.4.450.0370.05719.48
5.4.440.0270.06719.19
5.4.430.0200.08319.70
5.4.420.0230.05319.44
5.4.410.0270.05319.21
5.4.400.0170.05319.23
5.4.390.0130.06318.88
5.4.380.0200.05319.26
5.4.370.0200.04718.85
5.4.360.0430.07319.01
5.4.350.0200.05719.26
5.4.340.0200.04719.23
5.4.320.0130.05319.37
5.4.310.0200.06318.85
5.4.300.0270.04719.28
5.4.290.0130.05019.25
5.4.280.0200.05718.97
5.4.270.0270.04319.25
5.4.260.0370.05019.37
5.4.250.0600.04319.14
5.4.240.0300.04319.30
5.4.230.0530.05719.37
5.4.220.0430.06019.25
5.4.210.0500.05018.85
5.4.200.0600.05019.05
5.4.190.0570.05019.30
5.4.180.0670.04719.36
5.4.170.0500.06019.13
5.4.160.0470.05019.35
5.4.150.0470.07319.27
5.4.140.0500.04716.40
5.4.130.0800.06016.42
5.4.120.0500.04316.27
5.4.110.0470.05716.61
5.4.100.0600.05316.45
5.4.90.0600.05716.26
5.3.290.0070.06314.60
5.3.280.0670.04014.39
5.3.270.0700.04314.54
5.3.260.0500.05014.55
5.3.250.0070.07014.48
5.3.240.0500.05714.59
5.3.230.0500.06714.59
5.3.220.0470.06314.50
5.3.210.0700.05014.36
5.3.200.0430.06314.45
5.3.190.0530.05714.50