3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 'Bob'; } class B extends A { function __construct() { $instance = new A(); $reflection = new \ReflectionClass($instance); $property = $reflection->getProperty('a'); $property->setAccessible(true); echo $property->getValue(new A()); } } (new B());

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.10.0080.00919.35
8.5.00.0110.01020.33
8.4.150.0010.00114.05
8.4.140.0050.00417.76
8.4.130.0120.00617.91
8.4.120.0140.00720.58
8.4.110.0140.00420.40
8.4.100.0110.00917.74
8.4.90.0070.01120.82
8.4.80.0080.00518.91
8.4.70.0080.00720.75
8.4.60.0150.00520.54
8.4.50.0050.00320.57
8.4.40.0160.00317.92
8.4.30.0130.00617.87
8.4.20.0120.00917.61
8.4.10.0090.00317.77
8.3.280.0130.00718.07
8.3.270.0110.00816.57
8.3.260.0090.01016.46
8.3.250.0070.01119.06
8.3.240.0130.00516.54
8.3.230.0020.00716.43
8.3.220.0100.00919.02
8.3.210.0080.00716.59
8.3.200.0060.00516.45
8.3.190.0100.00916.96
8.3.180.0040.00418.61
8.3.170.0090.00617.13
8.3.160.0080.01118.47
8.3.150.0100.01018.38
8.3.140.0060.00916.50
8.3.130.0000.00818.36
8.3.120.0060.00320.66
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0060.01216.41
8.3.80.0030.00618.30
8.3.70.0100.01018.14
8.3.60.0070.00718.30
8.3.50.0160.00522.09
8.3.40.0040.01118.47
8.3.30.0090.00618.49
8.3.20.0020.00521.97
8.3.10.0000.00821.92
8.3.00.0080.00019.85
8.2.290.0040.00716.55
8.2.280.0070.00318.72
8.2.270.0090.00016.66
8.2.260.0070.01117.29
8.2.250.0100.01016.63
8.2.240.0090.00017.38
8.2.230.0000.00922.58
8.2.220.0040.00437.54
8.2.210.0070.00026.77
8.2.200.0040.00418.41
8.2.190.0170.00316.60
8.2.180.0140.00418.41
8.2.170.0000.01522.96
8.2.160.0160.00320.52
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.90
8.2.110.0060.00322.00
8.2.100.0060.00617.78
8.2.90.0040.00420.47
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0040.00417.63
8.2.50.0050.00317.80
8.2.40.0080.00017.90
8.2.30.0070.00019.18
8.2.20.0000.00717.94
8.2.10.0040.00418.01
8.2.00.0000.00817.63
8.1.330.0110.00816.11
8.1.320.0100.00516.09
8.1.310.0040.00416.58
8.1.300.0130.00718.52
8.1.290.0030.00618.88
8.1.280.0210.00325.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0110.00020.70
8.1.230.0080.00420.94
8.1.220.0050.00317.74
8.1.210.0060.00318.95
8.1.200.0030.00617.35
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0050.00317.62
8.1.160.0040.00418.70
8.1.150.0040.00420.32
8.1.140.0000.00719.44
8.1.130.0080.00019.02
8.1.120.0040.00417.33
8.1.110.0030.00517.31
8.1.100.0040.00417.29
8.1.90.0000.00717.35
8.1.80.0070.00017.45
8.1.70.0070.00017.36
8.1.60.0050.00317.60
8.1.50.0080.00017.41
8.1.40.0040.00417.54
8.1.30.0000.00817.65
8.1.20.0050.00317.57
8.1.10.0030.00617.57
8.1.00.0040.00417.48
8.0.300.0040.00419.98
8.0.290.0070.00016.75
8.0.280.0030.00318.41
8.0.270.0000.00716.73
8.0.260.0000.00617.25
8.0.250.0060.00016.85
8.0.240.0020.00516.91
8.0.230.0000.00716.80
8.0.220.0070.00016.87
8.0.210.0000.00816.88
8.0.200.0000.00916.76
8.0.190.0040.00416.78
8.0.180.0040.00416.89
8.0.170.0040.00416.93
8.0.160.0040.00416.80
8.0.150.0030.00316.86
8.0.140.0000.00716.84
8.0.130.0060.00013.23
8.0.120.0040.00416.85
8.0.110.0070.00016.73
8.0.100.0070.00016.63
8.0.90.0000.00816.70
8.0.80.0100.00716.88
8.0.70.0040.00416.81
8.0.60.0080.00016.86
8.0.50.0000.00716.82
8.0.30.0070.01216.88
8.0.20.0150.00717.40
8.0.10.0000.00716.77
8.0.00.0110.00716.79
7.4.330.0000.00515.55
7.4.320.0030.00316.39
7.4.300.0030.00316.63
7.4.290.0070.00016.57
7.4.280.0040.00416.61
7.4.270.0000.00716.52
7.4.260.0030.00616.39
7.4.250.0000.00816.56
7.4.240.0000.00716.61
7.4.230.0040.00416.72
7.4.220.0120.00916.54
7.4.210.0050.01516.47
7.4.200.0040.00416.61
7.4.160.0150.00316.48
7.4.150.0200.00817.40
7.4.140.0110.00817.86
7.4.130.0090.00816.57
7.4.120.0090.01216.47
7.4.110.0120.00616.64
7.4.100.0100.00716.60
7.4.90.0130.00316.36
7.4.80.0110.00619.39
7.4.70.0110.00516.50
7.4.60.0090.00616.68
7.4.50.0070.00716.37
7.4.40.0080.00816.31
7.4.30.0100.00716.74
7.4.00.0030.01214.66
7.3.330.0050.00013.10
7.3.320.0050.00213.05
7.3.310.0090.00016.28
7.3.300.0000.00716.15
7.3.290.0000.00616.20
7.3.280.0080.01016.23
7.3.270.0100.00717.40
7.3.260.0100.00916.33
7.3.250.0100.00916.38
7.3.240.0080.00916.33
7.3.230.0080.00816.43
7.3.210.0130.00716.36
7.3.200.0130.00916.54
7.3.190.0060.01016.32
7.3.180.0070.00916.40
7.3.170.0040.01516.45
7.3.160.0060.01016.32
7.3.120.0070.01114.88
7.3.110.0070.01014.73
7.3.100.0090.00614.77
7.3.90.0090.00014.43
7.3.80.0040.01114.85
7.3.70.0030.00614.42
7.3.60.0040.01214.65
7.3.50.0120.00614.54
7.3.40.0050.00514.54
7.3.30.0080.00014.82
7.3.20.0030.01416.44
7.3.10.0090.00616.61
7.3.00.0140.00316.68
7.2.330.0090.00916.80
7.2.320.0080.00916.40
7.2.310.0070.01716.66
7.2.300.0070.01016.52
7.2.290.0070.01016.43
7.2.250.0090.00915.21
7.2.240.0100.00615.28
7.2.230.0040.01415.22
7.2.220.0100.00015.19
7.2.210.0000.00914.96
7.2.200.0060.00315.00
7.2.190.0040.01414.86
7.2.180.0000.01414.95
7.2.170.0000.01315.20
7.2.60.0030.01016.86
7.1.330.0070.00715.88
7.1.320.0100.00315.96
7.1.310.0060.01115.89
7.1.300.0060.01215.56
7.1.290.0000.01315.64
7.1.280.0070.00715.79
7.1.270.0080.00815.62
7.1.260.0030.01015.63
7.1.200.0060.00715.43
7.1.70.0070.00316.84
7.1.60.0040.00817.22
7.1.10.0100.05722.23
7.1.00.0100.06022.41
7.0.200.0030.00516.68
7.0.150.0100.05321.80
7.0.140.0070.06021.72
7.0.130.0130.05321.86
7.0.120.0070.05721.81
7.0.110.0070.06021.88
7.0.100.0100.05321.84
7.0.90.0130.05321.86
7.0.80.0030.06321.93
7.0.70.0070.06021.97
7.0.60.0070.06021.63
7.0.50.0130.05321.85
7.0.40.0030.06021.89
7.0.30.0000.06321.84
7.0.20.0070.06021.85
7.0.10.0100.05721.92
7.0.00.0070.05721.92

preferences:
38.76 ms | 403 KiB | 5 Q