3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $staticProperty = 'foobar'; public $property = 'barfoo'; private $privateProperty = 'foofoo'; } $reflectionClass = new ReflectionClass('Foo'); var_dump($reflectionClass->getProperty('staticProperty')->getValue()); var_dump($reflectionClass->getProperty('property')->getValue(new Foo)); $reflectionProperty = $reflectionClass->getProperty('privateProperty'); $reflectionProperty->setAccessible(true); var_dump($reflectionProperty->getValue());

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.0070.01116.50
8.3.50.0110.00821.92
8.3.40.0140.00318.88
8.3.30.0040.01118.70
8.3.20.0040.00420.21
8.3.10.0040.00421.85
8.3.00.0050.00319.38
8.2.180.0180.00416.38
8.2.170.0040.01122.96
8.2.160.0130.00620.33
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00422.30
8.2.120.0040.00426.35
8.2.110.0080.00020.41
8.2.100.0060.00617.91
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0050.00317.46
8.2.60.0070.00717.79
8.2.50.0040.00418.07
8.2.40.0040.00421.31
8.2.30.0040.00420.63
8.2.20.0030.00817.58
8.2.10.0040.00418.09
8.2.00.0030.00518.02
8.1.280.0140.00725.92
8.1.270.0030.00523.97
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0100.00722.15
8.1.230.0120.00017.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.12
8.1.190.0090.00017.76
8.1.180.0080.00018.10
8.1.170.0050.00318.46
8.1.160.0050.00221.97
8.1.150.0000.00718.90
8.1.140.0060.00319.45
8.1.130.0050.00317.57
8.1.120.0000.00717.48
8.1.110.0070.00017.45
8.1.100.0040.00417.33
8.1.90.0040.00417.36
8.1.80.0040.00417.36
8.1.70.0050.00217.37
8.1.60.0000.00717.45
8.1.50.0040.00417.54
8.1.40.0050.00317.46
8.1.30.0060.00317.55
8.1.20.0000.00717.66
8.1.10.0040.00417.61
8.1.00.0030.00617.52
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.32
8.0.270.0030.00317.23
8.0.260.0030.00317.28
8.0.250.0070.00016.97
8.0.240.0030.00316.97
8.0.230.0080.00016.98
8.0.220.0070.00016.96
8.0.210.0030.00316.88
8.0.200.0030.00316.94
8.0.190.0050.00216.86
8.0.180.0130.00516.82
8.0.170.0050.00316.97
8.0.160.0000.00716.95
8.0.150.0000.00816.84
8.0.140.0030.00316.78
8.0.130.0040.00313.39
8.0.120.0070.00016.84
8.0.110.0080.00016.91
8.0.100.0050.00216.90
8.0.90.0070.00016.95
8.0.80.0110.00416.83
8.0.70.0000.00716.74
8.0.60.0030.00516.73
8.0.50.0030.00516.92
8.0.30.0090.01116.96
8.0.20.0110.00817.40
8.0.10.0000.00716.85
8.0.00.0070.01216.83
7.4.330.0060.00015.08
7.4.320.0030.00316.48
7.4.300.0030.00316.37
7.4.290.0030.00316.56
7.4.280.0000.00716.63
7.4.270.0000.01116.51
7.4.260.0030.00316.54
7.4.250.0040.00416.35
7.4.240.0040.00416.49
7.4.230.0030.00316.54
7.4.220.0120.01316.49
7.4.210.0040.01116.45
7.4.200.0030.00616.59
7.4.160.0110.01116.38
7.4.150.0130.01017.40
7.4.140.0140.00517.86
7.4.130.0100.00816.56
7.4.120.0090.00916.48
7.4.110.0060.01116.57
7.4.100.0120.00616.53
7.4.90.0070.01716.33
7.4.80.0070.01019.39
7.4.70.0120.00416.40
7.4.60.0150.00616.29
7.4.50.0080.00516.54
7.4.40.0060.01016.49
7.4.30.0140.00416.45
7.4.00.0000.01714.84
7.3.330.0000.00613.09
7.3.320.0030.00313.27
7.3.310.0040.00416.27
7.3.300.0000.00716.23
7.3.290.0050.01116.24
7.3.280.0040.01216.24
7.3.270.0120.00617.40
7.3.260.0030.01516.24
7.3.250.0060.01416.32
7.3.240.0090.01016.36
7.3.230.0060.01016.39
7.3.210.0070.01016.41
7.3.200.0120.00616.24
7.3.190.0090.00816.39
7.3.180.0070.01016.19
7.3.170.0120.00416.27
7.3.160.0030.01316.40
7.2.330.0030.01516.23
7.2.320.0120.00916.67
7.2.310.0070.01516.40
7.2.300.0070.01016.40
7.2.290.0080.00816.39
7.2.00.0070.00319.23
7.1.100.0220.00717.16
7.1.70.0000.01116.95
7.1.60.0180.00719.36
7.1.50.0070.00416.72
7.1.00.0030.07722.30
7.0.200.0030.01016.38
7.0.60.0030.04020.00
7.0.50.0030.04317.89
7.0.40.0030.05720.09
7.0.30.0300.04020.23
7.0.20.0270.07720.20
7.0.10.0000.08720.16
7.0.00.0030.08320.07
5.6.280.0000.07720.99
5.6.210.0130.04020.62
5.6.200.0170.06318.15
5.6.190.0100.08720.61
5.6.180.0430.06720.48
5.6.170.0200.04320.55
5.6.160.0200.06720.54
5.6.150.0170.07018.19
5.6.140.0030.04018.18
5.6.130.0070.08018.25
5.6.120.0030.06321.14
5.6.110.0070.04021.11
5.6.100.0100.06320.98
5.6.90.0030.09021.07
5.6.80.0070.07720.35
5.5.350.0230.07720.43
5.5.340.0100.07718.01
5.5.330.0070.07020.13
5.5.320.0100.08020.37
5.5.310.0300.05320.36
5.5.300.0030.08717.98
5.5.290.0130.08017.95
5.5.280.0070.08320.98
5.5.270.0000.06320.79
5.5.260.0100.03320.72
5.5.250.0130.07020.68
5.5.240.0300.07020.35

preferences:
39.96 ms | 401 KiB | 5 Q