3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public $baseFoo = 1; protected $baseBar = 2; } class Foo extends Bar { public $foo = 3; protected $bar = 4; } $foo = new Foo(); $reflect = new ReflectionClass('Foo'); $props = array_filter( $reflect->getProperties(), function($prop){ return $prop->getDeclaringClass()->getName() === Foo::class; }); foreach ($props as $prop) { print $prop->getName() . "\n"; }

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.01116.63
8.3.50.0070.01316.40
8.3.40.0150.00018.47
8.3.30.0060.01018.45
8.3.20.0030.00518.67
8.3.10.0000.00821.77
8.3.00.0000.00721.62
8.2.180.0170.00016.63
8.2.170.0070.00718.82
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0030.00524.66
8.2.130.0040.00419.55
8.2.120.0040.00426.35
8.2.110.0040.00420.35
8.2.100.0070.00317.91
8.2.90.0040.00817.74
8.2.80.0030.00617.97
8.2.70.0080.00017.93
8.2.60.0060.00317.93
8.2.50.0040.00419.40
8.2.40.0050.00320.31
8.2.30.0020.00520.97
8.2.20.0000.00718.12
8.2.10.0000.00717.95
8.2.00.0040.00417.56
8.1.280.0110.00625.92
8.1.270.0070.00024.05
8.1.260.0030.00628.09
8.1.250.0080.00028.09
8.1.240.0090.00023.92
8.1.230.0000.01220.59
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.48
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0000.00818.53
8.1.160.0000.00723.80
8.1.150.0060.00318.78
8.1.140.0070.00019.50
8.1.130.0040.00417.72
8.1.120.0040.00417.37
8.1.110.0030.00617.45
8.1.100.0040.00417.46
8.1.90.0040.00417.50
8.1.80.0040.00417.54
8.1.70.0030.00317.50
8.1.60.0000.00817.46
8.1.50.0040.00417.46
8.1.40.0040.00417.50
8.1.30.0000.00817.70
8.1.20.0000.00817.60
8.1.10.0040.00417.60
8.1.00.0060.00317.44
8.0.300.0070.00021.65
8.0.290.0040.00416.63
8.0.280.0000.00718.42
8.0.270.0030.00317.24
8.0.260.0000.00817.31
8.0.250.0070.00017.02
8.0.240.0040.00416.98
8.0.230.0040.00416.94
8.0.220.0070.00016.89
8.0.210.0030.00616.75
8.0.200.0030.00316.93
8.0.190.0000.00816.88
8.0.180.0000.00716.90
8.0.170.0080.00016.93
8.0.160.0040.00416.98
8.0.150.0030.00616.80
8.0.140.0040.00416.74
8.0.130.0030.00313.34
8.0.120.0080.00016.83
8.0.110.0040.00416.94
8.0.100.0050.00216.94
8.0.90.0050.00216.72
8.0.80.0150.00616.91
8.0.70.0000.00816.86
8.0.60.0070.00016.79
8.0.50.0000.00716.75
8.0.30.0110.00617.19
8.0.20.0180.01017.42
8.0.10.0000.00716.83
8.0.00.0030.01516.80
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0000.00616.56
7.4.290.0070.00016.43
7.4.280.0040.00416.59
7.4.270.0040.00416.63
7.4.260.0000.00716.59
7.4.250.0070.00016.60
7.4.240.0050.00316.52
7.4.230.0000.00716.35
7.4.220.0060.01516.50
7.4.210.0040.01116.56
7.4.200.0000.00716.45
7.4.160.0110.00716.51
7.4.150.0110.00617.40
7.4.140.0120.00517.86
7.4.130.0140.00416.58
7.4.120.0080.01016.48
7.4.110.0150.00716.49
7.4.100.0090.01216.40
7.4.90.0120.00916.43
7.4.80.0110.00619.39
7.4.70.0030.01316.52
7.4.60.0080.00816.59
7.4.50.0100.00716.57
7.4.40.0090.00916.53
7.4.30.0110.00516.54
7.4.00.0070.01214.84
7.3.330.0020.00213.13
7.3.320.0000.00513.32
7.3.310.0030.00316.32
7.3.300.0030.00316.21
7.3.290.0070.00816.28
7.3.280.0080.01016.30
7.3.270.0140.00317.40
7.3.260.0160.00316.43
7.3.250.0120.00716.43
7.3.240.0070.01516.46
7.3.230.0130.00316.39
7.3.210.0060.01316.45
7.3.200.0050.01116.25
7.3.190.0080.00816.37
7.3.180.0090.00616.59
7.3.170.0170.00716.56
7.3.160.0150.00316.54
7.3.120.0120.00614.76
7.3.110.0040.00814.73
7.3.100.0070.00714.79
7.3.90.0120.00614.53
7.3.80.0030.00815.01
7.3.70.0040.00814.89
7.3.60.0110.00314.79
7.3.50.0030.01014.91
7.3.40.0030.01014.42
7.3.30.0030.00614.77
7.3.20.0030.01316.39
7.3.10.0000.01516.63
7.3.00.0060.00916.55
7.2.330.0000.01716.75
7.2.320.0080.01216.76
7.2.310.0130.00316.51
7.2.300.0170.00716.75
7.2.290.0000.02116.66
7.2.250.0060.01115.04
7.2.240.0060.00914.91
7.2.230.0100.00715.04
7.2.220.0000.01615.09
7.2.210.0050.00515.16
7.2.200.0040.00715.08
7.2.190.0090.00915.14
7.2.180.0070.00715.14
7.2.170.0030.00915.09
7.2.60.0070.00716.79
7.2.50.0030.00716.94
7.2.00.0030.00919.45
7.1.330.0040.01115.51
7.1.320.0070.00715.65
7.1.310.0030.01015.60
7.1.300.0040.00415.43
7.1.290.0030.00615.60
7.1.280.0070.00415.74
7.1.270.0040.00715.77
7.1.260.0030.01015.88
7.1.200.0000.00715.85
7.1.70.0040.00416.87
7.1.60.0000.01117.25
7.1.00.0070.07322.51
7.0.200.0170.01414.83
7.0.120.0100.05722.16
7.0.110.0170.07722.10
7.0.100.0130.06322.04
7.0.90.0100.06022.11
7.0.80.0030.07722.04
7.0.70.0170.07322.07
7.0.60.0070.08022.00
7.0.50.0070.05722.11
7.0.40.0130.05321.99
7.0.30.0030.06022.13
7.0.20.0000.06022.05
7.0.10.0070.08322.06
7.0.00.0230.07021.97
5.6.270.0170.07020.88
5.6.260.0030.06320.97
5.6.250.0030.08320.97
5.6.240.0100.06021.07
5.6.230.0070.07720.83
5.6.220.0130.06321.07
5.6.210.0070.06721.07
5.6.200.0100.08321.04
5.6.190.0130.08021.00
5.6.180.0070.05720.81
5.6.170.0130.05320.86
5.6.160.0100.05721.09
5.6.150.0070.06721.00
5.6.140.0070.08021.00
5.6.130.0230.06020.99
5.6.120.0070.06320.94
5.6.110.0100.06320.92
5.6.100.0100.05720.93
5.6.90.0170.07020.99
5.6.80.0130.06320.18
5.6.70.0130.06020.23
5.6.60.0170.06020.38
5.6.50.0070.06720.21
5.6.40.0070.05720.21
5.6.30.0030.05720.45
5.6.20.0200.05720.44
5.6.10.0070.05720.20
5.6.00.0100.06020.43

preferences:
72.37 ms | 401 KiB | 5 Q