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";

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.0070.00716.88
8.3.50.0140.00416.08
8.3.40.0110.00418.71
8.3.30.0070.00718.67
8.3.20.0110.00420.04
8.3.10.0000.00821.68
8.3.00.0080.00019.56
8.2.180.0140.00418.13
8.2.170.0070.00722.96
8.2.160.0070.00719.41
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00617.75
8.2.110.0090.00020.38
8.2.100.0120.00017.63
8.2.90.0000.00819.22
8.2.80.0110.00017.97
8.2.70.0030.00617.63
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0000.00820.98
8.2.30.0040.00419.84
8.2.20.0030.00517.72
8.2.10.0050.00318.07
8.2.00.0000.00718.08
8.1.280.0000.01525.92
8.1.270.0190.00020.38
8.1.260.0000.00726.35
8.1.250.0070.00728.09
8.1.240.0080.00023.83
8.1.230.0060.00617.42
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0030.00717.34
8.1.190.0060.00317.36
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0070.00021.96
8.1.150.0000.00718.82
8.1.140.0040.00417.39
8.1.130.0000.00817.69
8.1.120.0020.00517.32
8.1.110.0030.00517.32
8.1.100.0000.00817.30
8.1.90.0000.00717.27
8.1.80.0000.00717.36
8.1.70.0000.00717.43
8.1.60.0070.00017.48
8.1.50.0000.00817.28
8.1.40.0050.00317.35
8.1.30.0040.00417.50
8.1.20.0000.00717.60
8.1.10.0040.00417.55
8.1.00.0000.00717.50
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0070.00017.27
8.0.260.0060.00017.27
8.0.250.0000.00716.98
8.0.240.0040.00416.97
8.0.230.0000.00717.00
8.0.220.0030.00316.83
8.0.210.0000.00716.89
8.0.200.0030.00316.94
8.0.190.0000.01016.95
8.0.180.0040.00416.80
8.0.170.0040.00416.94
8.0.160.0030.00316.89
8.0.150.0040.00416.89
8.0.140.0040.00416.82
8.0.130.0030.00613.28
8.0.120.0040.00416.88
8.0.110.0000.00716.91
8.0.100.0000.00716.76
8.0.90.0050.00316.95
8.0.80.0090.00616.85
8.0.70.0070.00016.67
8.0.60.0000.00716.73
8.0.50.0040.00416.88
8.0.30.0100.00816.94
8.0.20.0060.01217.40
8.0.10.0000.00716.90
8.0.00.0090.00816.78
7.4.330.0030.00315.08
7.4.320.0060.00016.47
7.4.300.0030.00316.42
7.4.290.0080.00016.35
7.4.280.0000.00816.44
7.4.270.0070.00016.61
7.4.260.0040.00416.52
7.4.250.0000.00816.43
7.4.240.0030.00516.50
7.4.230.0060.00016.34
7.4.220.0100.01016.53
7.4.210.0070.00716.40
7.4.200.0060.00016.45
7.4.160.0110.00516.25
7.4.150.0110.00717.40
7.4.140.0150.00617.86
7.4.130.0070.01216.51
7.4.120.0080.00816.42
7.4.110.0040.01316.34
7.4.100.0120.00616.48
7.4.90.0090.01116.45
7.4.80.0110.01019.39
7.4.70.0130.00916.51
7.4.60.0060.01316.52
7.4.50.0040.00416.30
7.4.40.0120.00916.42
7.4.30.0100.00716.40
7.4.00.0030.01014.91
7.3.330.0000.00613.27
7.3.320.0000.00513.16
7.3.310.0030.00316.18
7.3.300.0040.00416.15
7.3.290.0080.01016.31
7.3.280.0100.00716.27
7.3.270.0200.03017.40
7.3.260.0070.01016.36
7.3.250.0090.01016.42
7.3.240.0070.01016.57
7.3.230.0130.00316.39
7.3.210.0060.00916.53
7.3.200.0060.00916.25
7.3.190.0100.00716.52
7.3.180.0000.01616.58
7.3.170.0140.00416.47
7.3.160.0060.01216.38
7.3.120.0070.01114.85
7.3.110.0040.01214.77
7.3.100.0110.00414.70
7.3.90.0120.00415.02
7.3.80.0060.00314.98
7.3.70.0040.01114.76
7.3.60.0000.01314.72
7.3.50.0080.00014.33
7.3.40.0030.01314.59
7.3.30.0030.01314.70
7.3.20.0120.00016.65
7.3.10.0040.01116.50
7.3.00.0030.01016.61
7.2.330.0090.00916.23
7.2.320.0070.01316.29
7.2.310.0100.00716.77
7.2.300.0120.01116.64
7.2.290.0140.01216.56
7.2.250.0120.00815.21
7.2.240.0100.01015.18
7.2.230.0090.00614.74
7.2.220.0040.01115.02
7.2.210.0100.00615.29
7.2.200.0000.01514.95
7.2.190.0060.00915.09
7.2.180.0060.00615.14
7.2.170.0120.00314.91
7.2.80.0170.00316.23
7.2.60.0090.00316.64
7.2.00.0060.00919.36
7.1.330.0060.01215.90
7.1.320.0030.00615.75
7.1.310.0080.00315.76
7.1.300.0030.01015.47
7.1.290.0000.01115.74
7.1.280.0060.00715.82
7.1.270.0030.01015.36
7.1.260.0030.01015.54
7.1.200.0060.00315.52
7.1.100.0030.00618.03
7.1.70.0000.00917.23
7.1.60.0110.01420.03
7.1.50.0060.01316.79
7.1.00.0070.07322.30
7.0.200.0110.00014.95
7.0.60.0070.08320.02
7.0.50.0170.07017.86
7.0.40.0070.04020.11
7.0.30.0300.06020.11
7.0.20.0230.04320.20
7.0.10.0170.07720.30
7.0.00.0100.08720.29
5.6.280.0000.03321.02
5.6.210.0070.06320.50
5.6.200.0070.08318.22
5.6.190.0000.05020.47
5.6.180.3300.03320.66
5.6.170.0270.08020.56
5.6.160.0070.08320.47
5.6.150.0200.06718.17
5.6.140.0100.08018.12
5.6.130.0030.07718.18
5.6.120.0100.08021.02
5.6.110.0030.08721.08
5.6.100.0000.04320.99
5.6.90.0100.05721.00
5.6.80.0030.06320.29
5.6.70.4430.04020.51
5.5.350.0170.06720.50
5.5.340.0000.05017.95
5.5.330.0130.07720.19
5.5.320.4000.03720.27
5.5.310.0200.04720.27
5.5.300.0100.08018.07
5.5.290.0000.07318.08
5.5.280.0130.08320.98
5.5.270.0100.06020.79
5.5.260.0100.07320.84
5.5.250.0070.08020.70
5.5.240.0230.08020.25
5.4.450.0470.06019.59
5.4.440.0470.06019.58
5.4.430.0530.04719.70
5.4.420.0470.06019.58
5.4.410.0730.04719.46
5.4.400.0570.05019.23
5.4.390.0700.04719.16
5.4.380.0670.05719.32
5.4.370.0700.05319.03
5.4.360.0630.05019.28
5.4.350.0670.04718.84
5.4.340.0630.05319.24
5.4.320.0630.05019.29
5.4.310.0600.06318.87
5.4.300.0500.05019.19
5.4.290.0230.05719.25
5.4.280.0070.05719.05
5.4.270.0130.05019.16
5.4.260.0470.05719.16
5.4.250.0570.07319.21
5.4.240.0800.05018.97
5.4.230.0730.05018.84
5.4.220.0470.06018.88
5.4.210.0600.05319.28
5.4.200.0570.05719.30
5.4.190.0500.05019.13
5.4.180.0470.06019.00
5.4.170.0900.05719.31
5.4.160.0500.05719.23
5.4.150.0470.06318.96
5.4.140.0600.05016.54
5.4.130.0570.05016.39
5.4.120.0630.04316.41
5.4.110.0530.06016.70
5.4.100.0700.05016.68
5.4.90.0470.04716.33
5.4.80.0600.05016.63
5.4.70.0030.04316.57
5.4.60.0330.04016.49
5.4.50.0030.03716.42
5.4.40.0200.04716.57
5.4.30.0330.05716.27
5.4.20.0270.07316.42

preferences:
51.84 ms | 400 KiB | 5 Q