3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static $prop = 'BASE'; } class Child extends Base { } $excepted = 'REFLECTED'; $property = new ReflectionProperty('Base', 'prop'); $property->setValue($excepted); $actual = Base::$prop; echo "Should be $excepted and is $actual\n"; $actual = Child::$prop; echo "Should be $excepted and is $actual\n"; Base::$prop = Base::$prop; $actual = Base::$prop; echo "Should be $excepted and is $actual\n"; $actual = Child::$prop; echo "Should be $excepted and is $actual\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.0090.00616.59
8.3.50.0130.00521.05
8.3.40.0060.00818.71
8.3.30.0030.01018.90
8.3.20.0170.00320.16
8.3.10.0070.00021.85
8.3.00.0080.00019.79
8.2.180.0150.00318.29
8.2.170.0110.00422.96
8.2.160.0080.00520.53
8.2.150.0040.01124.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0030.00720.52
8.2.100.0090.00317.91
8.2.90.0000.00818.03
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0000.00818.04
8.2.50.0060.00618.07
8.2.40.0000.00821.05
8.2.30.0000.00819.77
8.2.20.0040.00417.68
8.2.10.0040.00418.16
8.2.00.0060.00318.11
8.1.280.0040.01225.92
8.1.270.0040.01120.37
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00022.21
8.1.230.0080.00320.93
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0050.00517.22
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0000.00818.52
8.1.160.0000.00721.82
8.1.150.0040.00418.82
8.1.140.0090.00017.43
8.1.130.0070.00018.89
8.1.120.0040.00417.44
8.1.110.0040.00417.44
8.1.100.0000.00817.43
8.1.90.0000.00717.39
8.1.80.0030.00417.32
8.1.70.0000.00717.41
8.1.60.0040.00417.38
8.1.50.0000.00817.41
8.1.40.0070.00017.39
8.1.30.0060.00317.58
8.1.20.0070.00017.54
8.1.10.0040.00417.48
8.1.00.0040.00417.50
8.0.300.0000.00720.16
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0000.00717.15
8.0.260.0030.00318.36
8.0.250.0040.00417.00
8.0.240.0000.00816.91
8.0.230.0030.00316.99
8.0.220.0000.00616.77
8.0.210.0000.00816.92
8.0.200.0000.00616.95
8.0.190.0040.00416.93
8.0.180.0040.00416.85
8.0.170.0000.00816.96
8.0.160.0030.00316.88
8.0.150.0000.00716.93
8.0.140.0050.00316.82
8.0.130.0030.00313.40
8.0.120.0080.00016.86
8.0.110.0040.00416.79
8.0.100.0050.00316.85
8.0.90.0040.00416.93
8.0.80.0120.00316.88
8.0.70.0030.00516.67
8.0.60.0000.00716.68
8.0.50.0000.00816.92
8.0.30.0130.00317.16
8.0.20.0110.00717.40
8.0.10.0070.00016.82
8.0.00.0110.00716.60
7.4.330.0030.00315.08
7.4.320.0030.00316.49
7.4.300.0040.00416.54
7.4.290.0070.00016.54
7.4.280.0000.00816.62
7.4.270.0030.00316.49
7.4.260.0040.00416.55
7.4.250.0070.00316.39
7.4.240.0000.00716.52
7.4.230.0070.00016.28
7.4.220.0090.00916.65
7.4.210.0000.01516.57
7.4.200.0000.00716.57
7.4.160.0060.00916.39
7.4.150.0160.00317.40
7.4.140.0080.01017.86
7.4.130.0110.00716.45
7.4.120.0060.01616.38
7.4.110.0120.00616.44
7.4.100.0120.00616.52
7.4.90.0080.00816.36
7.4.80.0070.01619.39
7.4.70.0190.00316.38
7.4.60.0100.00716.51
7.4.50.0050.00316.40
7.4.40.0090.00916.31
7.4.30.0000.01616.43
7.4.00.0110.00414.86
7.3.330.0050.00013.14
7.3.320.0020.00213.17
7.3.310.0080.00016.18
7.3.300.0000.00716.17
7.3.290.0060.01016.29
7.3.280.0140.00416.30
7.3.270.0120.01217.40
7.3.260.0130.00316.23
7.3.250.0090.01216.43
7.3.240.0130.00316.38
7.3.230.0100.00716.39
7.3.210.0130.00316.25
7.3.200.0090.01216.60
7.3.190.0130.01316.17
7.3.180.0100.00616.42
7.3.170.0110.00516.44
7.3.160.0030.01316.35
7.2.330.0060.01216.69
7.2.320.0140.00616.80
7.2.310.0080.00816.73
7.2.300.0110.01216.61
7.2.290.0100.01616.40
7.2.60.0060.00616.58
7.2.00.0070.00719.25
7.1.200.0070.00715.67
7.1.100.0000.01118.14
7.1.70.0040.00416.96
7.1.60.0160.00620.03
7.1.50.0030.02016.79
7.1.00.0070.07022.37
7.0.200.0080.00314.96
7.0.60.0070.07019.96
7.0.50.0030.04017.73
7.0.40.0170.07720.23
7.0.30.0370.07320.34
7.0.20.0330.04720.26
7.0.10.0030.06720.23
7.0.00.0130.05320.06
5.6.280.0130.05721.11
5.6.210.0100.07020.63
5.6.200.0030.08318.18
5.6.190.0100.08320.77
5.6.180.3970.04320.50
5.6.170.0270.04020.48
5.6.160.0070.05020.39
5.6.150.0100.06318.17
5.6.140.0130.07318.15
5.6.130.0030.04018.28
5.6.120.0100.04320.98
5.6.110.0030.04320.98
5.6.100.0170.07721.13
5.6.90.0100.07320.96
5.6.80.0100.07320.41
5.6.70.4300.04320.28
5.5.350.0330.06320.41
5.5.340.0130.04718.04
5.5.330.0100.04020.42
5.5.320.3970.04020.51
5.5.310.0400.07720.38
5.5.300.0070.08017.98
5.5.290.0030.08318.06
5.5.280.0000.04320.65
5.5.270.0100.04720.86
5.5.260.0070.07020.72
5.5.250.0100.06020.61
5.5.240.0230.06720.14
5.4.450.0630.05019.58
5.4.440.0630.06019.73
5.4.430.0630.05719.55
5.4.420.0600.05319.38
5.4.410.0670.06719.22
5.4.400.0500.06018.87
5.4.390.0430.05319.15
5.4.380.0170.04719.23
5.4.370.0200.04719.25
5.4.360.0470.04719.01
5.4.350.0600.04019.00
5.4.340.0570.06019.23
5.4.320.0530.06019.25
5.4.310.0630.04319.26
5.4.300.0430.06319.12
5.4.290.0670.05319.05
5.4.280.0470.05719.26
5.4.270.0500.06019.30
5.4.260.0670.05019.28
5.4.250.0670.07019.05
5.4.240.0630.07019.14
5.4.230.0570.06018.83
5.4.220.0630.04719.09
5.4.210.0570.05318.83
5.4.200.0200.05719.25
5.4.190.0170.06319.29
5.4.180.0230.05319.14
5.4.170.0630.05019.30
5.4.160.0530.05019.05
5.4.150.0770.05319.28
5.4.140.0470.05716.35
5.4.130.0500.04716.57
5.4.120.0500.06016.55
5.4.110.0600.04716.67
5.4.100.0500.04716.46
5.4.90.0730.05016.64
5.4.80.0530.04316.61
5.4.70.0070.05716.62
5.4.60.0270.04016.54
5.4.50.0000.03716.30
5.4.40.0230.06716.43
5.4.30.0230.04016.50
5.4.20.0370.03316.43

preferences:
55.81 ms | 401 KiB | 5 Q