3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPFI { public $a = 'A PROPERTY'; protected $b = 'B PROPERTY'; private $c = 'C PROPERTY'; } $phpfi = new PHPFI(); var_dump((array) $phpfi); // array(3) { // ["a"]=> // string(10) "A PROPERTY" // ["*b"]=> // string(10) "B PROPERTY" // ["PHPFIc"]=> // string(10) "C PROPERTY" // } $reflect = new ReflectionClass($phpfi); $reflectProps = $reflect->getProperties(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); $props = []; foreach ($reflectProps as $prop) { $prop->setAccessible(true); $props[$prop->getName()] = $prop->getValue($phpfi); } var_dump($props); // array(3) { // ["a"]=> // string(10) "A PROPERTY" // ["b"]=> // string(10) "B PROPERTY" // ["c"]=> // string(10) "C PROPERTY" // }

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.4.10.0090.00019.55
8.3.140.0080.01116.55
8.3.130.0040.00418.27
8.3.120.0000.00920.88
8.3.110.0080.00016.63
8.3.100.0100.00016.50
8.3.90.0000.00826.77
8.3.80.0090.00019.36
8.3.70.0110.00716.75
8.3.60.0120.00318.56
8.3.50.0100.00818.30
8.3.40.0180.00418.75
8.3.30.0000.01518.65
8.3.20.0040.01421.71
8.3.10.0120.00618.89
8.3.00.0040.00421.76
8.2.260.0080.00018.95
8.2.250.0040.01116.84
8.2.240.0070.00417.39
8.2.230.0060.00320.94
8.2.220.0150.00037.54
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0120.00316.58
8.2.180.0140.00318.05
8.2.170.0070.00722.96
8.2.160.0030.01022.08
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0080.00026.16
8.2.120.0080.00019.48
8.2.110.0070.00319.24
8.2.100.0080.00417.91
8.2.90.0030.00617.91
8.2.80.0050.00319.32
8.2.70.0030.00517.59
8.2.60.0090.00017.50
8.2.50.0040.00417.59
8.2.40.0000.00819.47
8.2.30.0000.00720.51
8.2.20.0000.00718.19
8.2.10.0020.00518.90
8.2.00.0040.00418.05
8.1.300.0080.00016.09
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00422.19
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00621.36
8.1.230.0040.00720.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.36
8.1.190.0040.00417.09
8.1.180.0000.00818.10
8.1.170.0000.00718.92
8.1.160.0000.00718.77
8.1.150.0040.00418.96
8.1.140.0000.00719.06
8.1.130.0030.00322.08
8.1.120.0040.00317.46
8.1.110.0050.00317.42
8.1.100.0000.00717.40
8.1.90.0000.00817.49
8.1.80.0040.00417.48
8.1.70.0060.00317.53
8.1.60.0000.00917.49
8.1.50.0000.00817.50
8.1.40.0030.00517.41
8.1.30.0000.00817.66
8.1.20.0030.00617.59
8.1.10.0080.00017.55
8.1.00.0000.00817.46
8.0.300.0050.00219.98
8.0.290.0050.00316.75
8.0.280.0030.00418.37
8.0.270.0000.00716.77
8.0.260.0060.00018.36
8.0.250.0030.00316.98
8.0.240.0040.00416.98
8.0.230.0000.00716.85
8.0.220.0030.00316.79
8.0.210.0050.00316.93
8.0.200.0000.00616.95
8.0.190.0050.00216.87
8.0.180.0000.00716.91
8.0.170.0000.00816.80
8.0.160.0040.00316.93
8.0.150.0060.00316.85
8.0.140.0030.00516.75
8.0.130.0030.00313.34
8.0.120.0060.00316.83
8.0.110.0040.00416.91
8.0.100.0040.00416.94
8.0.90.0040.00416.80
8.0.80.0090.01016.88
8.0.70.0040.00416.87
8.0.60.0040.00416.96
8.0.50.0000.00716.87
8.0.30.0110.01017.07
8.0.20.0140.00616.78
8.0.10.0040.00416.91
8.0.00.0100.01016.65
7.4.330.0040.00015.55
7.4.320.0000.00616.65
7.4.300.0030.00316.43
7.4.290.0030.00616.67
7.4.280.0000.00916.60
7.4.270.0030.00316.62
7.4.260.0040.00416.49
7.4.250.0070.00016.49
7.4.240.0040.00416.54
7.4.230.0040.00416.37
7.4.220.0030.00316.49
7.4.210.0110.00716.64
7.4.200.0070.00016.51
7.4.160.0080.00916.47
7.4.140.0070.01117.86
7.4.130.0110.00716.44
7.4.120.0120.00616.66
7.4.110.0070.01016.70
7.4.100.0120.00616.41
7.4.90.0070.01116.45
7.4.80.0060.01219.39
7.4.70.0090.01216.60
7.4.60.0070.01416.55
7.4.50.0100.00316.62
7.4.40.0090.00816.37
7.4.00.0070.01114.86
7.3.330.0050.00013.16
7.3.320.0060.00013.15
7.3.310.0040.00416.14
7.3.300.0000.00616.37
7.3.290.0200.01316.34
7.3.280.0070.01216.38
7.3.260.0090.01016.42
7.3.240.0090.01116.49
7.3.230.0090.00916.30
7.3.210.0100.00716.64
7.3.200.0090.00916.51
7.3.190.0080.00816.55
7.3.180.0060.01016.29
7.3.170.0030.01316.57
7.3.160.0110.01116.36
7.3.120.0140.00414.88
7.3.110.0070.01014.82
7.3.100.0060.00314.57
7.3.90.0070.01015.12
7.3.80.0140.00314.77
7.3.70.0070.00714.98
7.3.60.0090.00614.55
7.3.50.0060.00814.82
7.3.40.0080.00514.84
7.3.30.0120.00614.74
7.3.20.0110.00715.38
7.3.10.0110.00815.43
7.3.00.0120.00615.45
7.2.330.0060.01216.55
7.2.320.0090.00916.77
7.2.310.0140.00416.62
7.2.300.0140.00316.74
7.2.290.0130.00316.75
7.2.250.0030.01715.31
7.2.240.0110.00415.20
7.2.230.0060.01315.20
7.2.220.0060.01014.95
7.2.210.0100.01015.27
7.2.200.0120.00615.12
7.2.190.0030.01315.17
7.2.180.0060.00714.96
7.2.170.0090.00814.89
7.2.160.0060.01314.74
7.2.150.0110.00514.89
7.2.140.0100.00615.16
7.2.130.0110.00715.10
7.2.120.0230.00815.11
7.2.110.0120.00614.93
7.2.100.0130.00415.07
7.2.90.0210.00315.08
7.2.80.0430.00714.94
7.2.70.0150.00614.96
7.2.60.0170.01114.86
7.2.50.0230.00315.02
7.2.40.0130.00615.09
7.2.30.0150.00815.05
7.2.20.0080.00715.07
7.2.10.0080.00915.13
7.2.00.0150.00715.01
7.1.330.0000.01815.80
7.1.320.0090.00615.99
7.1.310.0060.01315.96
7.1.300.0040.01115.92
7.1.290.0000.01215.50
7.1.280.0100.01014.62
7.1.270.0110.00914.32
7.1.260.0330.00814.66
7.1.250.0070.00713.88
7.1.240.0170.01014.02
7.1.230.0160.01014.14
7.1.220.0160.00713.73
7.1.210.0220.00914.00
7.1.200.0120.00813.73
7.1.190.0060.01213.99
7.1.180.0100.00713.65
7.1.170.0180.01513.80
7.1.160.0140.00013.70
7.1.150.0130.00413.73
7.1.140.0110.01113.89
7.1.130.0130.01313.74
7.1.120.0080.00813.92
7.1.110.0140.00813.77
7.1.100.0120.00413.73
7.1.90.0170.00913.86
7.1.80.0100.00713.87
7.1.70.0170.00313.95
7.1.60.0130.01014.13
7.1.50.0160.01314.08
7.1.40.0100.01013.65
7.1.30.0100.01014.11
7.1.20.0180.00713.73
7.1.10.0090.00313.84
7.1.00.0110.00614.13
7.0.330.0110.00313.76
7.0.320.0090.00913.57
7.0.310.0270.01113.51
7.0.300.0130.00713.70
7.0.290.0080.00413.46
7.0.280.0110.00813.46
7.0.270.0120.00613.59
7.0.260.0100.00613.63
7.0.250.0200.00013.66
7.0.240.0070.00913.65
7.0.230.1200.00013.75
7.0.220.0100.00713.71
7.0.210.0130.01013.81
7.0.200.0140.00613.54
7.0.190.0120.01313.67
7.0.180.0080.00913.71
7.0.170.0140.01013.59
7.0.160.0190.00513.62
7.0.150.0070.00713.62
7.0.140.0060.00613.59
7.0.130.0100.00513.50
7.0.120.0120.00813.66
7.0.110.0130.00713.61
7.0.100.0170.01013.42
7.0.90.0140.00313.54
7.0.80.0030.01713.90
7.0.70.0220.00613.63
7.0.60.0160.00613.36
7.0.50.0190.00813.21
7.0.40.0090.00613.54
7.0.30.0840.01013.21
7.0.20.0090.00613.76
7.0.10.0210.00913.41
7.0.00.0160.00613.44
5.6.400.0260.00414.36
5.6.390.0120.01214.26
5.6.380.0000.01614.61
5.6.370.0140.00814.30
5.6.360.0210.00614.66
5.6.350.0080.01614.43
5.6.340.0140.00514.43
5.6.330.0120.00414.29
5.6.320.0140.00714.29
5.6.310.0160.00414.53
5.6.300.0130.00514.25
5.6.290.0090.01314.63
5.6.280.0190.00414.14
5.6.270.0070.01014.21
5.6.260.0070.01014.40
5.6.250.0150.00614.47
5.6.240.0150.01214.44
5.6.230.0120.00814.40
5.6.220.0160.01214.36
5.6.210.0100.01414.23
5.6.200.0060.01314.52
5.6.190.0080.01114.44
5.6.180.0110.00914.46
5.6.170.0190.00414.42
5.6.160.0240.00314.54
5.6.150.0230.01014.22
5.6.140.0120.00814.38
5.6.130.0130.00414.30
5.6.120.0140.00714.69
5.6.110.0160.00814.18
5.6.100.0080.01214.61
5.6.90.0070.01014.36
5.6.80.0160.00314.37
5.6.70.0170.01014.48
5.6.60.0110.01514.14
5.6.50.0090.00914.29
5.6.40.0000.01714.48
5.6.30.0110.01114.46
5.6.20.0120.01714.40
5.6.10.0160.00314.13
5.6.00.0240.00014.26
5.5.380.0130.01614.42
5.5.370.0170.00714.23
5.5.360.0180.00414.61
5.5.350.0140.00614.35
5.5.340.0180.00414.34
5.5.330.0150.00814.55
5.5.320.0240.00914.29
5.5.310.0130.00614.28
5.5.300.0180.00014.24
5.5.290.0170.00014.26
5.5.280.0170.00014.30
5.5.270.0100.00714.36
5.5.260.0160.00714.31
5.5.250.0120.00714.38
5.5.240.0130.00414.25
5.5.230.0160.00914.20
5.5.220.0080.00814.29
5.5.210.0120.01014.41
5.5.200.0210.00914.41
5.5.190.0100.01014.57
5.5.180.0220.00314.04
5.5.170.0130.01314.47
5.5.160.0200.00614.45
5.5.150.0160.00314.53
5.5.140.0090.01314.27
5.5.130.0090.01814.32
5.5.120.0130.00514.23
5.5.110.0150.00514.34
5.5.100.0180.00014.23
5.5.90.0190.00314.35
5.5.80.0150.00214.16
5.5.70.0160.01314.23
5.5.60.0070.01414.10
5.5.50.0170.00714.39
5.5.40.0180.00714.29
5.5.30.0030.01414.51
5.5.20.0230.00314.25
5.5.10.0110.00714.07
5.5.00.0050.00914.48
5.4.450.0080.00413.21
5.4.440.0090.00613.21
5.4.430.0100.00313.21
5.4.420.0090.00613.21
5.4.410.0120.01213.21
5.4.400.0060.00613.21
5.4.390.0180.00513.21
5.4.380.0060.00613.21
5.4.370.0130.00013.21
5.4.360.0060.00713.21
5.4.350.0060.00613.21
5.4.340.0120.00313.21
5.4.330.0100.00413.21
5.4.320.0070.00713.21
5.4.310.0110.00613.21
5.4.300.0050.01013.21
5.4.290.0050.00813.21
5.4.280.0170.00013.21
5.4.270.0110.00813.21
5.4.260.0070.00713.21
5.4.250.0150.00013.21
5.4.240.0100.00513.21
5.4.230.0040.01613.21
5.4.220.0100.00613.21
5.4.210.0120.00213.21
5.4.200.0100.00613.21
5.4.190.0060.00613.21
5.4.180.0150.00013.21
5.4.170.0070.00713.21
5.4.160.0070.01113.21
5.4.150.0110.01113.21
5.4.140.0110.00613.21
5.4.130.0110.00613.21
5.4.120.0150.00313.21
5.4.110.0150.00613.21
5.4.100.0110.00413.21
5.4.90.0120.00613.21
5.4.80.0200.00013.21
5.4.70.0190.00013.21
5.4.60.0100.00513.21
5.4.50.0140.00313.21
5.4.40.0110.01513.21
5.4.30.0080.00813.21
5.4.20.0100.00513.21
5.4.10.0100.00513.21
5.4.00.0060.00613.21
5.3.290.0080.00413.21
5.3.280.0080.00813.21
5.3.270.0080.00413.21
5.3.260.0110.00613.21
5.3.250.0130.00913.21
5.3.240.0060.01113.21
5.3.230.0120.00513.21
5.3.220.0160.00313.21
5.3.210.0120.00313.21
5.3.200.0160.00313.21
5.3.190.0100.00513.21
5.3.180.0130.00413.21
5.3.170.0090.00213.21
5.3.160.0110.00713.21
5.3.150.0170.00013.21
5.3.140.0110.01113.21
5.3.130.0100.00513.21
5.3.120.0160.00013.21
5.3.110.0150.00313.21
5.3.100.0110.00413.21
5.3.90.0070.00713.21
5.3.80.0090.00313.21
5.3.70.0160.00313.21
5.3.60.0100.00513.21
5.3.50.0090.01113.21
5.3.40.0150.00713.21
5.3.30.0070.00713.21
5.3.20.0110.00713.21
5.3.10.0000.01313.21
5.3.00.0040.01213.21
5.2.170.0180.00013.21
5.2.160.0100.00713.21
5.2.150.0140.00613.21
5.2.140.0100.00313.21
5.2.130.0120.00313.21
5.2.120.0120.00413.21
5.2.110.0120.00613.21
5.2.100.0000.01013.21
5.2.90.0050.00513.21
5.2.80.0090.00313.21
5.2.70.0070.00313.21
5.2.60.0090.00013.21
5.2.50.0090.00513.21
5.2.40.0030.01013.21
5.2.30.0120.00313.21
5.2.20.0040.00813.21
5.2.10.0050.00513.21
5.2.00.0000.00913.21
5.1.60.0090.00513.21
5.1.50.0000.01313.21
5.1.40.0090.00013.21
5.1.30.0030.00313.21
5.1.20.0060.00313.21
5.1.10.0060.00313.21
5.1.00.0070.00713.21
5.0.50.0030.00313.21
5.0.40.0000.00613.21
5.0.30.0000.00813.21
5.0.20.0040.00413.21
5.0.10.0030.01013.21
5.0.00.0040.00413.21
4.4.90.0050.00513.21
4.4.80.0000.00613.21
4.4.70.0070.00313.21
4.4.60.0000.00713.21
4.4.50.0070.00513.21
4.4.40.0050.00713.21
4.4.30.0040.00813.21
4.4.20.0060.00013.21
4.4.10.0030.00913.21
4.4.00.0060.00313.21
4.3.110.0000.00913.21
4.3.100.0030.00713.21
4.3.90.0040.00713.21
4.3.80.0060.00013.21
4.3.70.0000.00613.21
4.3.60.0060.00013.21
4.3.50.0080.00013.21
4.3.40.0060.00013.21
4.3.30.0000.00913.21
4.3.20.0050.00313.21
4.3.10.0000.00513.21
4.3.00.0050.00013.21

preferences:
38.53 ms | 403 KiB | 5 Q