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( 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.0110.00716.63
8.3.50.0120.00316.34
8.3.40.0120.00618.70
8.3.30.0060.00918.97
8.3.20.0070.00020.07
8.3.10.0070.00021.73
8.3.00.0050.00220.84
8.2.180.0000.01518.29
8.2.170.0070.01122.96
8.2.160.0120.00622.13
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00022.05
8.2.120.0050.00326.35
8.2.110.0050.00520.44
8.2.100.0000.01217.75
8.2.90.0030.00519.36
8.2.80.0040.00418.04
8.2.70.0000.00917.50
8.2.60.0080.00017.93
8.2.50.0060.00318.10
8.2.40.0040.00422.33
8.2.30.0040.00421.10
8.2.20.0040.00417.98
8.2.10.0040.00418.11
8.2.00.0080.00018.17
8.1.280.0090.00625.92
8.1.270.0000.00823.84
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00022.67
8.1.230.0060.00619.21
8.1.220.0030.00517.79
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0080.00018.63
8.1.160.0000.00718.97
8.1.150.0040.00420.57
8.1.140.0000.00819.60
8.1.130.0030.00318.88
8.1.120.0000.00717.31
8.1.110.0040.00417.35
8.1.100.0040.00417.36
8.1.90.0040.00417.44
8.1.80.0040.00417.40
8.1.70.0030.00317.45
8.1.60.0070.00017.55
8.1.50.0040.00417.53
8.1.40.0040.00417.50
8.1.30.0050.00317.48
8.1.20.0060.00317.64
8.1.10.0040.00417.52
8.1.00.0050.00317.39
8.0.300.0040.00418.77
8.0.290.0060.00316.58
8.0.280.0030.00318.44
8.0.270.0000.00717.29
8.0.260.0030.00316.88
8.0.250.0030.00317.00
8.0.240.0000.00716.84
8.0.230.0030.00316.95
8.0.220.0070.00016.96
8.0.210.0050.00316.84
8.0.200.0030.00316.92
8.0.190.0070.00317.03
8.0.180.0070.00017.01
8.0.170.0000.00716.87
8.0.160.0030.00316.85
8.0.150.0040.00416.93
8.0.140.0030.00516.82
8.0.130.0070.00013.45
8.0.120.0030.00616.88
8.0.110.0000.00716.82
8.0.100.0050.00316.78
8.0.90.0050.00216.96
8.0.80.0060.00916.98
8.0.70.0030.00516.86
8.0.60.0000.00716.89
8.0.50.0040.00416.89
8.0.30.0100.00717.08
8.0.20.0090.01117.40
8.0.10.0030.00517.01
8.0.00.0140.01016.65
7.4.330.0030.00315.55
7.4.320.0060.00016.48
7.4.300.0050.00216.65
7.4.290.0030.00316.50
7.4.280.0040.00416.48
7.4.270.0030.00316.45
7.4.260.0000.00613.17
7.4.250.0040.00416.45
7.4.240.0000.00816.55
7.4.230.0030.00316.40
7.4.220.0040.01416.46
7.4.210.0070.00716.64
7.4.200.0000.00716.50
7.4.160.0110.00816.43
7.4.150.0160.00317.40
7.4.140.0040.01417.86
7.4.130.0060.01216.83
7.4.120.0110.00816.60
7.4.110.0030.01416.44
7.4.100.0120.00616.43
7.4.90.0070.01016.61
7.4.80.0130.00819.39
7.4.70.0030.01316.50
7.4.60.0170.00016.64
7.4.50.0040.01516.53
7.4.40.0030.01716.53
7.4.30.0070.01016.59
7.4.00.0060.00915.04
7.3.330.0000.00613.45
7.3.320.0030.00313.35
7.3.310.0000.00716.19
7.3.300.0070.00016.25
7.3.290.0060.00316.37
7.3.280.0080.01016.35
7.3.270.0140.00317.40
7.3.260.0090.00816.38
7.3.250.0110.01116.58
7.3.240.0050.01216.45
7.3.230.0150.00316.62
7.3.210.0100.00716.41
7.3.200.0060.01016.41
7.3.190.0090.00616.53
7.3.180.0090.00616.41
7.3.170.0070.01316.47
7.3.160.0070.01016.28
7.3.120.0040.01114.77
7.3.110.0040.01114.57
7.3.100.0040.01114.51
7.3.90.0080.00014.70
7.3.80.0000.01314.43
7.3.70.0040.00814.68
7.3.60.0050.00914.83
7.3.50.0000.01414.91
7.3.40.0040.00814.65
7.3.30.0070.00314.80
7.3.20.0070.00816.71
7.3.10.0040.01216.71
7.3.00.0070.01016.69
7.2.330.0100.00716.46
7.2.320.0140.00616.73
7.2.310.0070.01016.93
7.2.300.0000.01716.69
7.2.290.0130.00316.49
7.2.240.0000.01614.97
7.2.230.0030.00615.14
7.2.220.0000.01615.07
7.2.210.0000.01615.03
7.2.200.0070.00714.97
7.2.190.0070.01015.10
7.2.180.0060.00914.96
7.2.170.0040.01115.08
7.2.160.0070.01115.10
7.2.150.0000.01117.12
7.2.140.0230.00716.97
7.2.130.0100.00316.95
7.2.120.0090.00616.94
7.2.110.0060.00616.93
7.2.100.0090.00616.62
7.2.90.0100.00616.89
7.2.80.0070.00716.88
7.2.70.0070.01117.05
7.2.60.0090.00716.83
7.2.50.0170.01016.79
7.2.40.0030.00716.96
7.2.30.0030.01116.98
7.2.20.0060.00916.78
7.2.10.0120.00316.99
7.2.00.0030.01118.15
7.1.330.0140.00315.67
7.1.320.0110.00415.45
7.1.310.0070.00715.80
7.1.300.0040.01115.86
7.1.290.0070.01115.43
7.1.280.0070.01115.89
7.1.270.0050.00515.88
7.1.260.0000.01115.95
7.1.250.0080.00815.75
7.1.200.0040.01115.74
7.1.100.0000.01118.20
7.1.70.0030.00517.20
7.1.60.0500.01333.25
7.1.50.0500.01033.02
7.1.40.0670.01032.70
7.1.30.0530.00732.64
7.1.20.1070.01332.80
7.1.10.0370.01014.89
7.1.00.0400.01014.88
7.0.200.0400.00315.15
7.0.190.0270.01314.83
7.0.180.0330.01014.43
7.0.170.0430.00314.43
7.0.160.0370.01014.56
7.0.150.0470.00314.52
7.0.140.0330.01714.45
7.0.130.0400.00714.68
7.0.120.0330.01314.65
7.0.110.0730.01014.68
7.0.100.0400.00714.46
7.0.90.0470.00014.42
7.0.80.0330.01314.44
7.0.70.0400.00714.46
7.0.60.0330.01314.36
7.0.50.0470.01014.46
7.0.40.0330.01314.63
7.0.30.0400.00714.84
7.0.20.0430.00714.65
7.0.10.0370.01014.38
7.0.00.0430.00314.65

preferences:
72.14 ms | 401 KiB | 5 Q