3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $test = 'sd'; private $test2 = [ 'test' => true, 'foo' => ['test'=>'asdasdads' ] ]; public function dismount() { $object = $this; $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( $foo->dismount());

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.0140.00316.50
8.3.50.0100.01016.39
8.3.40.0180.00418.66
8.3.30.0120.00318.52
8.3.20.0040.00420.21
8.3.10.0040.00421.91
8.3.00.0080.00020.75
8.2.180.0180.00018.07
8.2.170.0070.00722.96
8.2.160.0100.00722.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00022.13
8.2.120.0000.00726.35
8.2.110.0060.00320.47
8.2.100.0080.00417.78
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00318.04
8.2.50.0040.00418.10
8.2.40.0050.00322.15
8.2.30.0040.00419.24
8.2.20.0000.00818.13
8.2.10.0000.00818.13
8.2.00.0000.00718.01
8.1.280.0080.00825.92
8.1.270.0140.00024.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.80
8.1.230.0080.00319.01
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00918.56
8.1.160.0000.00719.03
8.1.150.0000.00820.55
8.1.140.0040.00417.42
8.1.130.0000.00818.90
8.1.120.0040.00417.52
8.1.110.0000.00817.48
8.1.100.0030.00617.37
8.1.90.0040.00417.39
8.1.80.0030.00517.47
8.1.70.0000.00717.47
8.1.60.0050.00217.50
8.1.50.0080.00017.57
8.1.40.0060.00317.48
8.1.30.0070.00017.58
8.1.20.0040.00417.69
8.1.10.0030.00517.48
8.1.00.0000.00717.55
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0030.00317.20
8.0.260.0030.00616.89
8.0.250.0000.00816.93
8.0.240.0040.00416.88
8.0.230.0040.00416.96
8.0.220.0070.00016.78
8.0.210.0040.00416.91
8.0.200.0060.00017.01
8.0.190.0040.00816.86
8.0.180.0000.00716.89
8.0.170.0040.00416.84
8.0.160.0040.00416.86
8.0.150.0080.00016.87
8.0.140.0040.00416.93
8.0.130.0000.00513.38
8.0.120.0040.00416.92
8.0.110.0000.00716.86
8.0.100.0040.00416.69
8.0.90.0070.00016.91
8.0.80.0070.01116.84
8.0.70.0050.00316.81
8.0.60.0000.00716.91
8.0.50.0030.00616.70
8.0.30.0120.00517.09
8.0.20.0090.01017.40
8.0.10.0050.00317.09
8.0.00.0090.00916.59
7.4.330.0050.00015.55
7.4.320.0030.00316.53
7.4.300.0000.00616.48
7.4.290.0030.00616.62
7.4.280.0080.00016.40
7.4.270.0060.00316.62
7.4.260.0030.00313.25
7.4.250.0030.00516.53
7.4.240.0040.00316.45
7.4.230.0000.00716.64
7.4.220.0130.00616.65
7.4.210.0030.01116.60
7.4.200.0030.00316.45
7.4.160.0080.00816.50
7.4.150.0100.00717.40
7.4.140.0150.00717.86
7.4.130.0110.01016.48
7.4.120.0120.00816.48
7.4.110.0100.00716.58
7.4.100.0110.00816.50
7.4.90.0100.00716.69
7.4.80.0040.01419.39
7.4.70.0050.01216.67
7.4.60.0130.00416.44
7.4.50.0100.00216.27
7.4.40.0000.01616.59
7.4.30.0160.00016.52
7.4.00.0050.01214.85
7.3.330.0050.00013.37
7.3.320.0050.00013.23
7.3.310.0030.00316.47
7.3.300.0000.00716.31
7.3.290.0030.00316.22
7.3.280.0080.00916.37
7.3.270.0130.00717.40
7.3.260.0100.01016.50
7.3.250.0110.00616.48
7.3.240.0080.01016.38
7.3.230.0060.00916.39
7.3.210.0060.01216.34
7.3.200.0120.00416.35
7.3.190.0000.01516.50
7.3.180.0040.01216.45
7.3.170.0100.00616.42
7.3.160.0090.00616.57
7.3.120.0130.00714.89
7.3.110.0090.00914.94
7.3.100.0030.01614.85
7.3.90.0070.00715.06
7.3.80.0090.00614.86
7.3.70.0070.00714.77
7.3.60.0120.00314.98
7.3.50.0000.01114.96
7.3.40.0060.01214.61
7.3.30.0030.01014.76
7.3.20.0000.01316.83
7.3.10.0060.00816.78
7.3.00.0050.00816.57
7.2.330.0100.00716.65
7.2.320.0090.00916.65
7.2.310.0130.00316.69
7.2.300.0160.00316.72
7.2.290.0060.00916.77
7.2.250.0030.01215.25
7.2.240.0120.00815.27
7.2.230.0090.00615.14
7.2.220.0030.00614.80
7.2.210.0110.00314.87
7.2.200.0130.00314.88
7.2.190.0060.00915.17
7.2.180.0070.00714.91
7.2.170.0040.01215.16
7.2.160.0040.00815.23
7.2.150.0030.01217.05
7.2.140.0030.01016.90
7.2.130.0060.00616.85
7.2.120.0080.00516.96
7.2.110.0090.00516.99
7.2.100.0040.01216.95
7.2.90.0050.01017.07
7.2.80.0030.00816.89
7.2.70.0080.00616.97
7.2.60.0030.01016.88
7.2.50.0030.01016.81
7.2.40.0090.00617.01
7.2.30.0070.00616.75
7.2.20.0070.01016.85
7.2.10.0090.00616.98
7.2.00.0070.00616.91
7.1.330.0090.00315.95
7.1.320.0060.00615.85
7.1.310.0090.00915.63
7.1.300.0090.00015.63
7.1.290.0070.00315.60
7.1.280.0110.00615.74
7.1.270.0040.00815.75
7.1.260.0030.00715.89
7.1.250.0060.00815.94
7.1.240.0100.00315.81
7.1.230.0030.00515.81
7.1.220.0100.00015.71
7.1.210.0000.01415.68
7.1.200.0080.00515.79
7.1.190.0060.00915.78
7.1.180.0040.01115.79
7.1.170.0030.00515.78
7.1.160.0040.00815.96
7.1.150.0030.00615.73
7.1.140.0090.00615.89
7.1.130.0070.01015.77
7.1.120.0050.00315.76
7.1.110.0070.00715.95
7.1.100.0100.00315.90
7.1.90.0140.00415.53
7.1.80.0070.00715.88
7.1.70.0080.00816.52
7.1.60.0300.01024.73
7.1.50.0250.01124.42
7.1.40.0260.01024.03
7.1.30.0270.00824.25
7.1.20.0220.01024.27
7.1.10.0170.00615.26
7.1.00.0150.01215.23
7.0.330.0000.01415.40
7.0.320.0060.00915.14
7.0.310.0040.00815.50
7.0.300.0070.01015.19
7.0.290.0040.00715.48
7.0.280.0100.00315.44
7.0.270.0100.00615.44
7.0.260.0000.01215.33
7.0.250.0060.00615.18
7.0.240.0040.01115.34
7.0.230.0070.01015.55
7.0.220.0040.01115.55
7.0.210.0070.01015.48
7.0.200.0190.01015.08
7.0.190.0030.01615.18
7.0.180.0050.01214.99
7.0.170.0150.01314.97
7.0.160.0190.00814.82
7.0.150.0200.00815.06
7.0.140.0180.01115.14
7.0.130.0180.00715.01
7.0.120.0280.00915.15
7.0.110.0210.00615.05
7.0.100.0200.00714.98
7.0.90.0200.01015.01
7.0.80.0200.00715.16
7.0.70.0200.00615.09
7.0.60.0150.01214.98
7.0.50.0300.00815.08
7.0.40.0180.00813.95
7.0.30.0180.01014.18
7.0.20.0180.00614.02
7.0.10.0520.00814.08
7.0.00.0230.01013.83
5.6.400.0030.01014.61
5.6.390.0040.01114.38
5.6.380.0030.01214.55
5.6.370.0070.00714.34
5.6.360.0000.00914.78
5.6.350.0040.00813.97
5.6.340.0060.00614.18
5.6.330.0080.00014.24
5.6.320.0090.00314.36
5.6.310.0100.00014.02
5.6.300.0090.00614.49
5.6.290.0060.00614.52
5.6.280.0110.00314.48
5.6.270.0040.01214.32
5.6.260.0080.00314.08
5.6.250.0040.00714.15
5.6.240.0100.00314.70
5.6.230.0000.00914.46
5.6.220.0110.00814.64
5.6.210.0060.01014.30
5.6.200.0030.00614.46
5.6.190.0100.00314.40
5.6.180.0090.00014.56
5.6.170.0120.00314.68
5.6.160.0100.00314.72
5.6.150.0070.00714.67
5.6.140.0030.00614.35
5.6.130.0070.00614.39
5.6.120.0080.00414.37
5.6.110.0030.01314.39
5.6.100.0000.01314.25
5.6.90.0060.00614.42
5.6.80.0030.01014.36
5.6.70.0030.00914.30
5.6.60.0090.00314.31
5.6.50.0070.00714.61
5.6.40.0000.00814.43
5.6.30.0000.01514.42
5.6.20.0000.00914.33
5.6.10.0090.00314.28
5.6.00.0080.00814.23

preferences:
49.4 ms | 400 KiB | 5 Q