3v4l.org

run code in 500+ PHP versions simultaneously
<?php class P { protected $v = 1; } class C extends P { protected $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.80.0050.00316.77
8.5.70.0040.00418.53
8.5.60.0090.00818.34
8.5.50.0140.00316.45
8.5.30.0080.00918.04
8.5.20.0090.00920.09
8.5.10.0080.00916.63
8.5.00.0150.00620.00
8.4.230.0110.00922.03
8.4.220.0130.01019.47
8.4.210.0090.01119.38
8.4.180.0150.00819.69
8.4.170.0120.01125.60
8.4.160.0140.01020.49
8.4.150.0070.00516.83
8.4.140.0080.01317.75
8.4.130.0100.00617.65
8.4.120.0100.01020.67
8.4.110.0190.00918.70
8.4.100.0230.00817.57
8.4.90.0160.00517.54
8.4.80.0170.00517.52
8.4.70.0170.00517.56
8.4.60.0180.00517.39
8.4.50.0170.00417.44
8.4.40.0180.00617.44
8.4.30.0180.00517.41
8.4.20.0180.00517.40
8.4.10.0180.00717.44
8.3.320.0110.00918.38
8.3.310.0110.00818.35
8.3.300.0140.00718.22
8.3.290.0150.00620.79
8.3.280.0130.00918.18
8.3.270.0120.00716.75
8.3.260.0110.00816.70
8.3.250.0120.00819.04
8.3.240.0040.00516.54
8.3.230.0160.00516.31
8.3.220.0150.00616.34
8.3.210.0170.00416.22
8.3.200.0180.00516.29
8.3.190.0160.00416.29
8.3.180.0170.00516.39
8.3.170.0190.00416.20
8.3.160.0190.00416.33
8.3.150.0190.00516.40
8.3.140.0160.00616.27
8.3.130.0170.00416.28
8.3.120.0170.00416.29
8.3.110.0140.00616.39
8.3.100.0190.00316.22
8.3.90.0180.00416.22
8.3.80.0190.00516.39
8.3.70.0170.00516.47
8.3.60.0210.00316.48
8.3.50.0180.00516.29
8.3.40.0180.00417.36
8.3.30.0170.00317.30
8.3.20.0140.00517.35
8.3.10.0160.00417.35
8.3.00.0090.00417.29
8.2.320.0130.00617.96
8.2.310.0040.00617.81
8.2.300.0150.00817.95
8.2.290.0140.00416.46
8.2.280.0150.00416.32
8.2.270.0150.00416.45
8.2.260.0130.00516.21
8.2.250.0140.00416.36
8.2.240.0150.00416.45
8.2.230.0150.00316.52
8.2.220.0140.00416.33
8.2.210.0140.00416.46
8.2.200.0160.00316.54
8.2.190.0160.00316.16
8.2.180.0150.00416.31
8.2.170.0160.00417.62
8.2.160.0160.00517.51
8.2.150.0150.00617.35
8.2.140.0140.00617.24
8.2.130.0170.00417.42
8.2.120.0160.00517.53
8.2.110.0160.00317.42
8.2.100.0150.00317.47
8.2.90.0150.00317.48
8.2.80.0140.00417.45
8.2.70.0170.00217.31
8.2.60.0160.00317.37
8.2.50.0170.00517.22
8.2.40.0160.00317.28
8.2.30.0150.00417.57
8.2.20.0150.00417.40
8.2.10.0140.00417.31
8.2.00.0130.00517.15
8.1.340.0070.01221.68

preferences:
69.28 ms | 875 KiB | 5 Q