3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $test = 'sd'; private $test2 = [ 'test' => true, 'foo' => ['test'=>'asdasdads' ] ]; } function dismount($object) { $reflectionClass = new ReflectionClass(get_class($object)); $array = array(); foreach ($reflectionClass->getProperties() as $property) { $property->setAccessible(true); $array[$property->getName()] = $property->getValue($object); $property->setAccessible(false); } return $array; } $foo = new Foo; print_r( dismount($foo));

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.0130.00716.63
8.3.50.0100.00716.50
8.3.40.0090.00918.45
8.3.30.0000.01418.80
8.3.20.0040.00420.33
8.3.10.0080.00021.63
8.3.00.0040.00420.64
8.2.180.0090.00618.05
8.2.170.0150.00022.96
8.2.160.0070.00722.13
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00022.27
8.2.120.0040.00426.35
8.2.110.0060.00320.21
8.2.100.0000.01117.84
8.2.90.0000.00919.36
8.2.80.0040.00418.05
8.2.70.0030.00617.50
8.2.60.0080.00018.05
8.2.50.0060.00318.10
8.2.40.0040.00422.15
8.2.30.0000.00719.24
8.2.20.0050.00318.06
8.2.10.0040.00418.07
8.2.00.0040.00418.09
8.1.280.0070.00725.92
8.1.270.0110.00623.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.67
8.1.230.0070.00419.09
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0060.00318.43
8.1.160.0050.00319.00
8.1.150.0030.00520.68
8.1.140.0000.00719.57
8.1.130.0040.00418.89
8.1.120.0000.00717.39
8.1.110.0040.00417.42
8.1.100.0030.00517.47
8.1.90.0050.00217.34
8.1.80.0040.00417.42
8.1.70.0000.00717.48
8.1.60.0040.00417.45
8.1.50.0050.00217.46
8.1.40.0040.00417.55
8.1.30.0050.00317.63
8.1.20.0060.00317.51
8.1.10.0040.00417.44
8.1.00.0030.00617.36
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0050.00218.47
8.0.270.0000.00717.27
8.0.260.0030.00316.69
8.0.250.0000.00716.80
8.0.240.0000.00816.96
8.0.230.0050.00316.92
8.0.220.0030.00316.93
8.0.210.0030.00516.90
8.0.200.0030.00316.96
8.0.190.0000.01216.85
8.0.180.0000.00716.93
8.0.170.0070.00016.80
8.0.160.0000.00716.97
8.0.150.0070.00016.92
8.0.140.0060.00316.87
8.0.130.0030.00313.27
8.0.120.0040.00416.79
8.0.110.0040.00416.91
8.0.100.0040.00416.71
8.0.90.0040.00416.89
8.0.80.0080.01516.89
8.0.70.0000.00816.79
8.0.60.0070.00316.78
8.0.50.0070.00016.77
8.0.30.0100.00616.97
8.0.20.0080.01117.40
8.0.10.0050.00217.01
8.0.00.0060.01216.83
7.4.330.0050.00015.55
7.4.320.0070.00016.52
7.4.300.0000.00616.51
7.4.290.0080.00016.55
7.4.280.0000.00916.54
7.4.270.0070.00016.51
7.4.260.0060.00013.33
7.4.250.0030.00316.57
7.4.240.0030.00316.51
7.4.230.0000.00716.68
7.4.220.0070.01316.62
7.4.210.0050.01016.57
7.4.200.0070.00016.60
7.4.160.0120.00816.51
7.4.150.0110.00817.40
7.4.140.0070.01317.86
7.4.130.0140.00916.46
7.4.120.0110.00716.48
7.4.110.0130.00516.53
7.4.100.0150.00716.54
7.4.90.0070.01016.55
7.4.80.0070.01019.39
7.4.70.0070.01016.67
7.4.60.0000.01716.42
7.4.50.0100.00616.52
7.4.40.0080.01216.48
7.4.30.0030.01316.44
7.4.00.0160.00014.68
7.3.330.0060.00013.14
7.3.320.0060.00013.30
7.3.310.0000.00716.36
7.3.300.0030.00316.30
7.3.290.0000.00716.17
7.3.280.0080.00816.29
7.3.270.0090.00617.40
7.3.260.0120.00816.37
7.3.250.0070.01016.44
7.3.240.0100.00916.61
7.3.230.0130.00316.70
7.3.210.0130.00616.25
7.3.200.0080.00816.61
7.3.190.0160.00016.49
7.3.180.0120.00416.64
7.3.170.0070.01016.42
7.3.160.0090.00916.55
7.2.330.0100.00616.80
7.2.320.0260.02016.82
7.2.310.0060.01116.58
7.2.300.0080.00816.64
7.2.290.0150.00816.57
7.2.60.0060.00916.68
7.2.00.0040.00719.41
7.1.200.0070.00715.96
7.1.100.0000.01218.18
7.1.70.0000.00917.19
7.1.60.0570.01033.46
7.1.50.0570.01732.94
7.1.40.0600.00732.71
7.1.30.1100.01332.70
7.1.20.0570.01332.67
7.1.10.0470.00714.50
7.1.00.0470.01314.94
7.0.200.0500.00714.91
7.0.190.0500.00315.04
7.0.180.0470.00714.40
7.0.170.0530.01014.26
7.0.160.0570.00714.54
7.0.150.0500.01314.39
7.0.140.0500.00314.64
7.0.130.0430.01314.82
7.0.120.0030.01314.96
7.0.110.0470.00714.32
7.0.100.0430.01014.68
7.0.90.0530.00714.44
7.0.80.0030.01014.51
7.0.70.0000.01714.71
7.0.60.0430.01014.16
7.0.50.0400.01314.50
7.0.40.0430.01314.59
7.0.30.0500.01014.91
7.0.20.0530.00714.62
7.0.10.0500.00714.59
7.0.00.0270.00714.39

preferences:
37.33 ms | 401 KiB | 5 Q