3v4l.org

run code in 500+ PHP versions simultaneously
<?php class P { private $v = 1; } class C extends P { private $v = 2; } $c = new C; $reflection = new ReflectionClass(P::class); $property = $reflection->getProperty('v'); echo $property->getValue($c); $reflection = new ReflectionClass(C::class); $property = $reflection->getProperty('v'); echo $property->getValue($c);

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.5.70.0010.00718.60
8.5.60.0080.01018.60
8.5.50.0090.00716.79
8.5.30.0090.00818.18
8.5.20.0150.00320.21
8.5.10.0110.00616.49
8.5.00.0120.00819.92
8.4.220.0100.01019.41
8.4.210.0120.00919.55
8.4.180.0130.00919.65
8.4.170.0120.00921.96
8.4.160.0150.00920.60
8.4.150.0070.00416.88
8.4.140.0110.00917.49
8.4.130.0060.00817.80
8.4.120.0050.00424.27
8.4.110.0290.00818.86
8.4.100.0260.00717.48
8.4.90.0270.00617.68
8.4.80.0200.00617.63
8.4.70.0160.00617.70
8.4.60.0190.00517.78
8.4.50.0170.00417.55
8.4.40.0190.00417.57
8.4.30.0170.00617.54
8.4.20.0210.00417.62
8.4.10.0190.00517.54
8.3.310.0010.00718.36
8.3.300.0110.01018.13
8.3.290.0110.00920.84
8.3.280.0160.00418.21
8.3.270.0080.01116.63
8.3.260.0120.00916.47
8.3.250.0100.00918.82
8.3.240.0050.00416.65
8.3.230.0170.00516.34
8.3.220.0180.00416.14
8.3.210.0170.00416.51
8.3.200.0150.00416.20
8.3.190.0160.00616.43
8.3.180.0180.00316.42
8.3.170.0170.00516.17
8.3.160.0190.00416.37
8.3.150.0190.00416.38
8.3.140.0190.00416.34
8.3.130.0170.00316.33
8.3.120.0160.00416.40
8.3.110.0160.00316.54
8.3.100.0170.00516.39
8.3.90.0190.00316.52
8.3.80.0180.00416.48
8.3.70.0170.00616.20
8.3.60.0200.00316.42
8.3.50.0190.00416.41
8.3.40.0160.00417.24
8.3.30.0140.00517.37
8.3.20.0170.00517.33
8.3.10.0170.00417.23
8.3.00.0080.00517.47
8.2.310.0110.01019.79
8.2.300.0090.01020.41
8.2.290.0130.00516.44
8.2.280.0130.00416.40
8.2.270.0150.00516.63
8.2.260.0140.00416.35
8.2.250.0180.00216.40
8.2.240.0150.00316.55
8.2.230.0140.00516.40
8.2.220.0130.00616.36
8.2.210.0150.00416.55
8.2.200.0150.00316.50
8.2.190.0150.00416.46
8.2.180.0170.00316.53
8.2.170.0140.00717.58
8.2.160.0170.00417.36
8.2.150.0150.00617.32
8.2.140.0150.00517.23
8.2.130.0160.00417.32
8.2.120.0150.00417.52
8.2.110.0140.00417.42
8.2.100.0140.00517.52
8.2.90.0160.00317.50
8.2.80.0140.00717.29
8.2.70.0130.00517.41
8.2.60.0170.00317.34
8.2.50.0200.00317.52
8.2.40.0150.00317.33
8.2.30.0130.00517.31
8.2.20.0140.00517.39
8.2.10.0130.00517.18
8.2.00.0130.00417.31
8.1.340.0110.00917.43

preferences:
43.37 ms | 859 KiB | 5 Q