3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $privateProperty = '7Learn.com'; } $obj = new Foo; $reflector = new ReflectionClass($obj); $property = $reflector->getProperty('privateProperty'); //$property->setAccessible(true); var_dump($property->getValue($obj));

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.120.0110.00820.43
8.4.110.0130.00617.83
8.4.100.0090.00518.70
8.4.90.0110.00918.61
8.4.80.0090.01118.86
8.4.70.0020.00617.58
8.4.60.0130.00818.45
8.4.50.0120.01119.35
8.4.40.0130.00719.36
8.4.30.0040.00420.50
8.4.20.0060.00319.63
8.4.10.0030.00623.82
8.3.250.0100.00918.94
8.3.240.0080.01116.83
8.3.230.0120.00916.32
8.3.220.0130.00618.85
8.3.210.0100.00816.67
8.3.200.0030.00616.70
8.3.190.0110.00717.04
8.3.180.0040.00616.61
8.3.170.0120.00618.93
8.3.160.0000.01916.38
8.3.150.0160.00317.00
8.3.140.0040.00417.04
8.3.130.0030.00618.25
8.3.120.0060.00320.91
8.3.110.0030.00520.94
8.3.100.0060.00324.06
8.3.90.0100.01026.77
8.3.80.0060.00318.18
8.3.70.0140.00318.18
8.3.60.0000.01518.43
8.3.50.0120.00616.50
8.3.40.0070.00720.29
8.3.30.0060.00918.45
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.290.0090.01020.37
8.2.280.0120.00620.09
8.2.270.0090.00917.15
8.2.260.0070.00018.90
8.2.250.0040.00418.55
8.2.240.0030.00618.91
8.2.230.0030.00622.58
8.2.220.0040.00837.54
8.2.210.0120.00326.77
8.2.200.0070.00416.50
8.2.190.0070.00716.58
8.2.180.0110.01116.63
8.2.170.0000.01519.01
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00424.66
8.2.130.0100.00026.16
8.2.120.0080.00019.36
8.2.110.0060.00322.37
8.2.100.0120.00017.78
8.2.90.0040.00417.90
8.2.80.0080.00017.97
8.2.70.0080.00017.25
8.2.60.0050.00317.91
8.2.50.0100.00018.10
8.2.40.0040.00420.32
8.2.30.0040.00418.01
8.2.20.0030.00517.91
8.2.10.0040.00417.55
8.2.00.0130.00417.57
8.1.330.0070.01121.92
8.1.320.0120.00716.14
8.1.310.0040.00416.75
8.1.300.0100.00015.89
8.1.290.0030.00730.84
8.1.280.0070.00725.92
8.1.270.0090.00924.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.42
8.1.230.0110.00021.03
8.1.220.0000.00717.74
8.1.210.0060.00318.85
8.1.200.0030.00617.36
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00418.52
8.1.160.0000.00819.07
8.1.150.0110.00417.38
8.1.140.0110.00617.38
8.1.130.0120.00417.36
8.1.120.0090.00817.43
8.1.110.0100.00617.47
8.1.100.0110.00617.48
8.1.90.0110.00617.45
8.1.80.0130.00417.48
8.1.70.0080.00917.47
8.1.60.0100.00817.65
8.1.50.0170.00217.47
8.1.40.0140.00517.51
8.1.30.0120.00717.60
8.1.20.0140.00617.58
8.1.10.0150.00517.54
8.1.00.0160.00617.39
8.0.300.0000.00720.09
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0100.00416.74
8.0.260.0120.00216.80
8.0.250.0100.00116.78
8.0.240.0040.00816.76
8.0.230.0030.00916.84
8.0.220.0110.00416.80
8.0.210.0060.00616.76
8.0.200.0070.00516.79
8.0.190.0070.00416.86
8.0.180.0080.00416.73
8.0.170.0120.00416.87
8.0.160.0110.00316.84
8.0.150.0090.00416.83
8.0.140.0110.00416.81
8.0.130.0140.00116.77
8.0.120.0100.00516.76
8.0.110.0060.00816.79
8.0.100.0100.00616.85
8.0.90.0110.00416.72
8.0.80.0140.00216.75
8.0.70.0080.00616.76
8.0.60.0100.00516.84
8.0.50.0130.00316.73
8.0.30.0140.00216.72
8.0.20.0110.00516.88
8.0.10.0020.00616.87

preferences:
27.38 ms | 403 KiB | 5 Q