3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar, $baz; } $foo_reflection = new ReflectionObject(new Foo); var_dump( array_map( function (ReflectionProperty $prop) { $visibility = null; switch ($prop->getModifiers()) { case ReflectionProperty::IS_PUBLIC: $visibility = 'public'; break; case ReflectionProperty::IS_PROTECTED: $visibility = 'protected'; break; case ReflectionProperty::IS_PRIVATE: $visibility = 'private'; break; } return [ 'Name' => $prop->getName(), 'Visibility' => $visibility, ]; }, $foo_reflection->getProperties() ) );

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.00418.34
8.3.50.0120.00316.11
8.3.40.0110.00418.54
8.3.30.0110.00318.47
8.3.20.0040.00418.79
8.3.10.0050.00521.35
8.3.00.0040.00420.83
8.2.180.0120.00618.43
8.2.170.0150.00022.96
8.2.160.0140.00019.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.93
8.2.120.0070.00026.35
8.2.110.0070.00421.17
8.2.100.0110.00018.09
8.2.90.0000.01019.14
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0080.00017.93
8.2.50.0030.00518.05
8.2.40.0000.00919.42
8.2.30.0000.00920.56
8.2.20.0000.00917.80
8.2.10.0040.00418.05
8.2.00.0030.00518.06
8.1.280.0140.00725.92
8.1.270.0080.00023.71
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00619.21
8.1.230.0080.00319.15
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0040.00419.10
8.1.150.0080.00018.92
8.1.140.0030.00519.54
8.1.130.0000.00717.72
8.1.120.0040.00317.54
8.1.110.0000.00717.47
8.1.100.0070.00017.38
8.1.90.0040.00417.46
8.1.80.0000.00817.52
8.1.70.0040.00417.51
8.1.60.0040.00417.63
8.1.50.0000.00817.54
8.1.40.0050.00317.50
8.1.30.0080.00017.58
8.1.20.0070.00017.63
8.1.10.0040.00417.50
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.41
8.0.270.0050.00317.13
8.0.260.0030.00317.09
8.0.250.0070.00016.95
8.0.240.0040.00416.99
8.0.230.0030.00516.96
8.0.220.0040.00316.85
8.0.210.0070.00016.88
8.0.200.0060.00316.99
8.0.190.0040.00417.00
8.0.180.0040.00416.99
8.0.170.0040.00417.04
8.0.160.0040.00416.89
8.0.150.0040.00416.90
8.0.140.0070.00416.90
8.0.130.0030.00313.36
8.0.120.0050.00316.82
8.0.110.0000.00716.83
8.0.100.0030.00616.87
8.0.90.0030.00517.04
8.0.80.0060.01517.04
8.0.70.0030.00516.96
8.0.60.0080.00017.03
8.0.50.0000.00717.01
8.0.30.0150.00417.07
8.0.20.0130.00817.40
8.0.10.0050.00317.11
8.0.00.0160.00216.88
7.4.330.0000.00615.08
7.4.320.0030.00316.52
7.4.300.0040.00416.54
7.4.290.0070.00016.53
7.4.280.0080.00016.61
7.4.270.0040.00416.66
7.4.260.0000.00716.57
7.4.250.0050.00316.57
7.4.240.0030.00516.51
7.4.230.0040.00416.51
7.4.220.0060.01216.60
7.4.210.0110.00416.64
7.4.200.0000.00716.69
7.4.160.0130.00316.58
7.4.150.0070.01117.40
7.4.140.0120.00617.86
7.4.130.0100.00716.66
7.4.120.0150.00416.45
7.4.110.0090.00916.38
7.4.100.0210.00016.45
7.4.90.0150.00416.39
7.4.80.0060.01919.39
7.4.70.0100.00616.38
7.4.60.0090.00916.77
7.4.50.0040.00816.33
7.4.40.0120.00416.52
7.4.30.0030.01516.63
7.4.00.0070.01014.70
7.3.330.0000.00513.14
7.3.320.0030.00213.18
7.3.310.0080.00016.32
7.3.300.0020.00516.32
7.3.290.0070.00816.32
7.3.280.0060.00816.29
7.3.270.0130.00517.40
7.3.260.0030.01616.47
7.3.250.0140.00716.46
7.3.240.0090.00816.35
7.3.230.0120.00616.63
7.3.210.0070.01016.66
7.3.200.0100.01016.54
7.3.190.0090.00616.23
7.3.180.0060.01016.64
7.3.170.0100.00616.49
7.3.160.0070.01016.41
7.2.330.0090.01016.48
7.2.320.0080.01116.38
7.2.310.0060.01316.45
7.2.300.0110.00716.61
7.2.290.0100.00916.45
7.2.120.0130.00016.32
7.2.110.0060.00316.51
7.2.100.0090.00616.54
7.2.90.0060.00916.53
7.2.80.0030.01016.43
7.2.70.0070.00717.00
7.2.60.0040.00816.84
7.2.50.0060.00617.08
7.2.40.0120.00316.94
7.2.30.0080.00816.95
7.2.20.0070.00716.93
7.2.10.0070.01116.77
7.2.00.0060.00317.13
7.1.240.0000.01015.75
7.1.230.0060.00615.89
7.1.220.0100.00315.92
7.1.210.0070.00715.84
7.1.200.0030.01015.77
7.1.190.0080.00415.64
7.1.180.0120.00315.88
7.1.170.0040.01015.87
7.1.160.0080.00715.73
7.1.150.0070.01015.95
7.1.140.0030.01015.50
7.1.130.0040.00715.89
7.1.120.0030.01015.56
7.1.110.0110.00415.86
7.1.100.0080.00815.62
7.1.90.0030.01015.59
7.1.80.0000.01615.94
7.1.70.0050.00716.30
7.1.60.0060.00716.47
7.1.50.0080.00315.76
7.1.40.0060.00915.70
7.1.30.0030.01015.48
7.1.20.0110.00415.80
7.1.10.0070.00415.68
7.1.00.0030.04218.99
7.0.320.0060.00615.30
7.0.310.0060.00615.22
7.0.300.0060.00615.27
7.0.290.0070.00715.60
7.0.280.0070.01015.16
7.0.270.0040.00415.32
7.0.260.0090.00615.41
7.0.250.0070.00415.47
7.0.240.0040.00815.46
7.0.230.0090.00615.35
7.0.220.0030.01015.41
7.0.210.0090.00315.38
7.0.200.0010.00916.14
7.0.190.0030.00915.25
7.0.180.0060.00915.36
7.0.170.0060.00615.34
7.0.160.0070.00715.43
7.0.150.0080.00415.13
7.0.140.0120.00415.40
7.0.130.0070.00715.48
7.0.120.0070.00415.12
7.0.110.0080.00315.35
7.0.100.0060.00615.33
7.0.90.0060.00015.57
7.0.80.0030.01015.40
7.0.70.0040.01115.50
7.0.60.0070.03518.59
7.0.50.0050.03517.93
7.0.40.0180.03516.86
7.0.30.0210.03416.92
7.0.20.0170.03916.89
7.0.10.0230.03716.89
7.0.00.0070.03516.86
5.6.380.0070.00714.44
5.6.370.0040.01114.56
5.6.360.0030.00614.63
5.6.350.0090.00314.13
5.6.340.0030.01314.44
5.6.330.0030.00914.11
5.6.320.0070.01014.34
5.6.310.0000.01114.40
5.6.300.0040.00414.33
5.6.290.0060.00614.33
5.6.280.0060.03817.43
5.6.270.0000.01414.60
5.6.260.0000.00714.18
5.6.250.0070.00714.26
5.6.240.0030.00614.47
5.6.230.0110.00314.27
5.6.220.0090.00314.30
5.6.210.0100.04417.53
5.6.200.0070.03816.42
5.6.190.0240.03017.75
5.6.180.0220.03117.81
5.6.170.0210.03017.63
5.6.160.0160.02717.86
5.6.150.0200.03117.71
5.6.140.0220.02817.64
5.6.130.0220.03717.62
5.6.120.0070.03617.74
5.6.110.0150.03517.81
5.6.100.0210.03017.68
5.6.90.0290.03017.61
5.6.80.0130.03317.41
5.6.70.0220.03017.26
5.6.60.0070.03217.39
5.6.50.0130.02817.52
5.6.40.0120.03717.32
5.6.30.0150.03617.22
5.6.20.0120.03017.25
5.6.10.0140.03017.37
5.6.00.0100.03317.49
5.5.380.0070.00311.15
5.5.370.0080.00311.09
5.5.360.0000.00811.38
5.5.350.2000.02415.56
5.5.340.0030.02914.60
5.5.330.0200.03016.00
5.5.320.0170.03216.09
5.5.310.0200.02916.08
5.5.300.0210.02816.11
5.5.290.0120.03716.00
5.5.280.0130.02815.94
5.5.270.0110.03116.15
5.5.260.0230.03015.92
5.5.250.0220.02815.84
5.5.240.0250.02515.62
5.5.230.0130.03215.76
5.5.220.0080.03115.70
5.5.210.0150.02715.62
5.5.200.0160.03015.75
5.5.190.0210.02515.73
5.5.180.0130.03115.71
5.5.170.0130.00314.34
5.5.160.0120.02715.63
5.5.150.0070.03215.59
5.5.140.0120.02615.63
5.5.130.0150.02715.63
5.5.120.0100.02715.77
5.5.110.0170.02315.65
5.5.100.0100.02815.66
5.5.90.0100.02715.69
5.5.80.0090.03015.72
5.5.70.0110.03115.61
5.5.60.0090.02815.70
5.5.50.0120.02715.73
5.5.40.0130.02815.45
5.5.30.0150.02315.60
5.5.20.0120.02515.41
5.5.10.0120.02815.67
5.5.00.0100.02615.47

preferences:
56.89 ms | 401 KiB | 5 Q