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; printf( 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.70.0220.00016.88
8.3.60.0160.00316.63
8.3.50.0130.00617.44
8.3.40.0070.01118.97
8.3.30.0080.00818.79
8.3.20.0020.00520.34
8.3.10.0040.00421.87
8.3.00.0040.00420.89
8.2.190.0070.00716.58
8.2.180.0070.00718.28
8.2.170.0030.01522.96
8.2.160.0070.00722.09
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.20
8.2.120.0000.00826.35
8.2.110.0040.00720.95
8.2.100.0090.00318.04
8.2.90.0000.00818.22
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0030.00618.10
8.2.40.0040.00422.32
8.2.30.0040.00420.97
8.2.20.0040.00418.00
8.2.10.0040.00418.18
8.2.00.0040.00418.11
8.1.280.0140.00025.92
8.1.270.0040.00423.92
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.92
8.1.230.0040.00821.03
8.1.220.0050.00317.77
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0000.00917.23
8.1.180.0000.00718.10
8.1.170.0080.00018.43
8.1.160.0000.00718.95
8.1.150.0040.00420.66
8.1.140.0000.00819.62
8.1.130.0000.00718.85
8.1.120.0070.00017.34
8.1.110.0040.00417.50
8.1.100.0000.00817.49
8.1.90.0040.00417.40
8.1.80.0040.00417.44
8.1.70.0030.00317.47
8.1.60.0000.00817.59
8.1.50.0050.00217.55
8.1.40.0000.00817.50
8.1.30.0040.00417.72
8.1.20.0000.00917.62
8.1.10.0040.00417.55
8.1.00.0040.00417.40
8.0.300.0040.00420.10
8.0.290.0000.00816.63
8.0.280.0040.00418.37
8.0.270.0040.00417.30
8.0.260.0000.00716.84
8.0.250.0070.00017.02
8.0.240.0030.00616.99
8.0.230.0030.00317.01
8.0.220.0070.00016.93
8.0.210.0000.00717.02
8.0.200.0030.00317.06
8.0.190.0060.00617.07
8.0.180.0070.00017.03
8.0.170.0040.00416.97
8.0.160.0040.00416.93
8.0.150.0030.00316.89
8.0.140.0030.00616.89
8.0.130.0000.00513.43
8.0.120.0070.00016.91
8.0.110.0000.00816.91
8.0.100.0040.00417.04
8.0.90.0040.00416.95
8.0.80.0150.00016.90
8.0.70.0000.00817.07
8.0.60.0000.00716.73
8.0.50.0040.00416.99
8.0.30.0060.01117.05
8.0.20.0110.00917.40
8.0.10.0000.00817.01
8.0.00.0140.00316.92
7.4.330.0050.00015.55
7.4.320.0060.00016.36
7.4.300.0070.00016.50
7.4.290.0030.00316.60
7.4.280.0000.00916.50
7.4.270.0070.00016.49
7.4.260.0030.00313.30
7.4.250.0030.00316.49
7.4.240.0000.00716.55
7.4.230.0050.00216.62
7.4.220.0170.01016.68
7.4.210.0080.01016.55
7.4.200.0030.00316.67
7.4.160.0110.00616.64
7.4.150.0060.01317.40
7.4.140.0130.00617.86
7.4.130.0160.00316.52
7.4.120.0060.01316.49
7.4.110.0100.00716.49
7.4.100.0080.01016.61
7.4.90.0100.00716.67
7.4.80.0140.00319.39
7.4.70.0060.00916.27
7.4.60.0160.00616.59
7.4.50.0060.00916.36
7.4.40.0170.00316.57
7.4.30.0090.00916.65
7.4.00.0100.00315.08
7.3.330.0020.00213.23
7.3.320.0030.00313.22
7.3.310.0080.00016.37
7.3.300.0030.00316.24
7.3.290.0070.00016.27
7.3.280.0070.01016.34
7.3.270.0110.00517.40
7.3.260.0120.00816.51
7.3.250.0150.00716.41
7.3.240.0120.00516.44
7.3.230.0030.01216.33
7.3.210.0130.00416.58
7.3.200.0130.00316.44
7.3.190.0080.00816.20
7.3.180.0130.00416.46
7.3.170.0090.01216.56
7.3.160.0090.00916.52
7.2.330.0070.01016.60
7.2.320.0110.00716.72
7.2.310.0070.01016.59
7.2.300.0120.00616.75
7.2.290.0040.01316.75
7.2.60.0060.00616.77
7.1.200.0030.00915.64
7.1.100.0060.00918.27
7.1.70.0060.00917.13
7.1.60.0500.00733.34
7.1.50.0430.01333.06
7.1.40.0430.01332.56
7.1.30.0400.02032.65
7.1.20.0170.01032.78
7.1.10.0330.01314.68
7.1.00.0470.00715.03
7.0.200.0370.00714.98
7.0.190.0400.00014.68
7.0.180.0330.00714.26
7.0.170.0270.00714.72
7.0.160.0430.01014.40
7.0.150.0470.00014.57
7.0.140.0400.00714.54
7.0.130.0400.00714.64
7.0.120.0400.00314.66
7.0.110.0330.01014.47
7.0.100.0400.00314.76
7.0.90.0470.01014.46
7.0.80.0470.02014.54
7.0.70.0400.00314.71
7.0.60.0370.00714.52
7.0.50.0370.00714.47
7.0.40.0430.00014.76
7.0.30.0400.00314.73
7.0.20.0370.01014.49
7.0.10.0330.01014.59
7.0.00.0300.01714.60

preferences:
67.09 ms | 401 KiB | 5 Q