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 = strrev(strrev(Base::$prop)); // force new zval $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.0200.00016.63
8.3.50.0110.00416.48
8.3.40.0090.00618.85
8.3.30.0140.00018.86
8.3.20.0040.01120.29
8.3.10.0080.00021.85
8.3.00.0040.00419.67
8.2.180.0090.00618.41
8.2.170.0150.00022.96
8.2.160.0070.01320.29
8.2.150.0080.00024.18
8.2.140.0040.01124.66
8.2.130.0070.00026.16
8.2.120.0030.00617.47
8.2.110.0000.00920.27
8.2.100.0040.00817.50
8.2.90.0040.00419.11
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00418.07
8.2.40.0090.00021.19
8.2.30.0000.00719.85
8.2.20.0040.00417.75
8.2.10.0040.00418.03
8.2.00.0040.00418.03
8.1.280.0070.00725.92
8.1.270.0070.01320.34
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00522.19
8.1.230.0080.00417.48
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.13
8.1.180.0050.00318.10
8.1.170.0050.00218.46
8.1.160.0000.00721.86
8.1.150.0000.00718.79
8.1.140.0000.00817.45
8.1.130.0000.00717.66
8.1.120.0070.00017.42
8.1.110.0030.00517.39
8.1.100.0040.00417.45
8.1.90.0070.00017.39
8.1.80.0000.00717.41
8.1.70.0000.00717.39
8.1.60.0040.00417.55
8.1.50.0030.00517.38
8.1.40.0080.00017.43
8.1.30.0000.00917.64
8.1.20.0040.00417.52
8.1.10.0070.00017.64
8.1.00.0000.00717.49
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0070.00018.51
8.0.270.0040.00417.30
8.0.260.0060.00017.25
8.0.250.0040.00416.93
8.0.240.0040.00416.85
8.0.230.0000.00716.89
8.0.220.0030.00316.88
8.0.210.0040.00416.79
8.0.200.0060.00016.96
8.0.190.0030.00916.95
8.0.180.0030.00516.78
8.0.170.0040.00416.83
8.0.160.0040.00416.83
8.0.150.0040.00416.79
8.0.140.0000.00716.76
8.0.130.0060.00013.26
8.0.120.0040.00416.88
8.0.110.0080.00016.79
8.0.100.0050.00316.67
8.0.90.0070.00016.69
8.0.80.0100.00716.77
8.0.70.0040.00416.80
8.0.60.0000.00716.85
8.0.50.0040.00416.80
8.0.30.0130.00617.05
8.0.20.0100.01117.40
8.0.10.0040.00416.95
8.0.00.0120.00716.80
7.4.330.0000.00615.08
7.4.320.0000.00716.50
7.4.300.0000.00616.44
7.4.290.0030.00316.56
7.4.280.0000.00816.53
7.4.270.0000.00716.54
7.4.260.0000.00716.42
7.4.250.0040.00416.46
7.4.240.0000.00716.48
7.4.230.0000.00716.47
7.4.220.0040.01316.57
7.4.210.0040.01216.43
7.4.200.0030.00316.59
7.4.160.0120.00316.54
7.4.150.0090.00917.40
7.4.140.0090.01317.86
7.4.130.0040.01416.43
7.4.120.0150.00516.53
7.4.110.0060.01016.43
7.4.100.0060.01216.39
7.4.90.0090.00916.48
7.4.80.0150.00619.39
7.4.70.0140.00316.47
7.4.60.0060.01016.51
7.4.50.0030.00516.27
7.4.40.0030.01316.34
7.4.30.0030.01316.29
7.4.10.0080.00814.83
7.4.00.0070.00914.77
7.3.330.0000.00513.32
7.3.320.0000.00513.31
7.3.310.0000.00716.20
7.3.300.0060.00016.25
7.3.290.0050.00916.29
7.3.280.0130.00716.29
7.3.270.0150.00917.40
7.3.260.0070.01016.37
7.3.250.0100.01016.36
7.3.240.0090.00916.48
7.3.230.0130.00516.54
7.3.210.0030.01316.43
7.3.200.0090.01116.41
7.3.190.0160.00316.27
7.3.180.0000.01616.49
7.3.170.0110.01116.41
7.3.160.0100.00716.29
7.3.130.0100.00814.88
7.3.120.0080.00914.73
7.3.110.0070.00914.86
7.3.100.0050.01014.81
7.3.90.0110.00414.68
7.3.80.0040.00914.75
7.3.70.0050.01014.77
7.3.60.0070.00814.68
7.3.50.0070.00414.66
7.3.40.0090.00514.72
7.3.30.0070.00514.65
7.3.20.0040.00716.58
7.3.10.0090.00416.63
7.3.00.0060.01016.62
7.2.330.0040.01516.59
7.2.320.0170.00316.78
7.2.310.0060.00916.72
7.2.300.0110.01616.60
7.2.290.0120.01216.74
7.2.260.0100.00914.96
7.2.250.0070.00914.96
7.2.240.0060.01214.96
7.2.230.0060.00914.98
7.2.220.0080.01015.06
7.2.210.0070.00814.99
7.2.200.0090.00615.10
7.2.190.0100.00615.03
7.2.180.0070.00614.97
7.2.170.0060.00714.98
7.2.160.0090.00515.05
7.2.150.0030.00916.73
7.2.140.0090.00616.79
7.2.130.0100.00316.83
7.2.120.0100.00416.74
7.2.110.0030.01116.75
7.2.100.0080.00516.74
7.2.90.0050.01016.90
7.2.80.0070.00716.80
7.2.70.0060.00516.81
7.2.60.0080.00316.59
7.2.50.0090.00716.87
7.2.40.0080.00716.83
7.2.30.0120.00416.76
7.2.20.0080.00716.78
7.2.10.0080.00816.96
7.2.00.0070.00617.63
7.1.330.0070.00715.64
7.1.320.0060.01015.71
7.1.310.0050.00915.65
7.1.300.0030.00815.68
7.1.290.0100.00315.60
7.1.280.0050.00615.77
7.1.270.0050.00615.71
7.1.260.0040.00915.63
7.1.250.0000.01215.69
7.1.240.0050.01215.59
7.1.230.0050.01015.83
7.1.220.0070.00315.73
7.1.210.0020.01015.67
7.1.200.0090.00515.79
7.1.190.0010.01015.67
7.1.180.0040.01015.66
7.1.170.0050.01015.76
7.1.160.0030.01215.72
7.1.150.0080.00815.80
7.1.140.0090.00715.69
7.1.130.0060.00915.71
7.1.120.0090.00215.71
7.1.110.0070.00715.64
7.1.100.0120.00616.55
7.1.90.0010.01415.80
7.1.80.0060.00715.75
7.1.70.0080.00516.09
7.1.60.0050.01217.07
7.1.50.0080.00816.18
7.1.40.0030.00915.86
7.1.30.0060.00615.48
7.1.20.0020.00915.73
7.1.10.0000.01315.77
7.1.00.0070.02818.10
7.0.330.0070.00615.27
7.0.320.0020.01315.53
7.0.310.0030.00815.27
7.0.300.0030.01215.31
7.0.290.0060.00615.24
7.0.280.0050.00915.44
7.0.270.0040.00715.37
7.0.260.0050.00715.48
7.0.250.0020.01215.30
7.0.240.0050.00915.49
7.0.230.0020.01015.58
7.0.220.0050.00715.22
7.0.210.0020.00915.25
7.0.200.0040.01015.23
7.0.190.0070.00715.38
7.0.180.0040.00915.39
7.0.170.0020.01315.22
7.0.160.0080.00515.56
7.0.150.0090.00415.40
7.0.140.0050.00715.54
7.0.130.0030.01215.31
7.0.120.0030.00815.49
7.0.110.0030.00915.24
7.0.100.0050.00715.48
7.0.90.0030.01015.50
7.0.80.0050.00915.58
7.0.70.0030.00715.40
7.0.60.0010.03916.96
7.0.50.0070.02916.30
7.0.40.0050.03415.74
7.0.30.0150.02715.59
7.0.20.0110.02115.60
7.0.10.0060.02015.60
7.0.00.0060.02115.59
5.6.400.0050.00614.46
5.6.390.0040.01314.38
5.6.380.0060.00614.58
5.6.370.0060.00814.52
5.6.360.0020.01314.44
5.6.350.0030.01014.39
5.6.340.0060.00914.35
5.6.330.0050.00714.16
5.6.320.0030.01014.38
5.6.310.0050.00714.50
5.6.300.0060.00814.44
5.6.290.0060.00714.45
5.6.280.0020.02216.55
5.6.270.0000.01014.40
5.6.260.0070.00714.13
5.6.250.0040.01114.30
5.6.240.0000.01314.50
5.6.230.0080.00714.23
5.6.220.0050.00514.32
5.6.210.0090.03116.62
5.6.200.0090.02915.82
5.6.190.0090.01816.39
5.6.180.1370.02116.41
5.6.170.0110.03316.38
5.6.160.0100.02816.47
5.6.150.0050.03315.65
5.6.140.0030.02915.69
5.6.130.0080.01615.77
5.6.120.0090.03316.62
5.6.110.0060.01716.54
5.6.100.0040.02616.42
5.6.90.0040.02616.57
5.6.80.0070.03116.25
5.6.70.0580.01816.21
5.6.60.0060.00614.32
5.6.50.0030.01114.37
5.6.40.0060.00214.42
5.6.30.0030.00814.39
5.6.20.0020.01314.38
5.6.10.0010.01014.30
5.6.00.0050.00914.21
5.5.380.0080.00614.40
5.5.370.0030.01114.36
5.5.360.0110.00414.46
5.5.350.0110.02916.38
5.5.340.0070.02815.42
5.5.330.0030.03516.30
5.5.320.1150.02116.35
5.5.310.0110.02716.22
5.5.300.0070.01915.61
5.5.290.0040.02715.63
5.5.280.0090.01716.33
5.5.270.0030.03516.38
5.5.260.0050.03516.44
5.5.250.0090.02916.37
5.5.240.0070.03616.30
5.5.230.0020.01214.11
5.5.220.0050.00714.24
5.5.210.0070.00614.13
5.5.200.0050.00714.09
5.5.190.0060.00514.32
5.5.180.0090.00814.06
5.5.170.0070.00514.24
5.5.160.0040.00914.19
5.5.150.0020.01314.36
5.5.140.0060.00914.36
5.5.130.0060.01114.34
5.5.120.0030.01214.29
5.5.110.0080.00514.31
5.5.100.0030.01014.14
5.5.90.0060.00614.39
5.5.80.0050.01114.45
5.5.70.0080.00814.19
5.5.60.0020.01314.06
5.5.50.0080.00814.06
5.5.40.0070.01014.16
5.5.30.0090.00914.29
5.5.20.0040.00914.30
5.5.10.0040.00614.13
5.5.00.0040.00814.24
5.4.450.0110.02113.79
5.4.440.0100.02213.86
5.4.430.0060.02613.83
5.4.420.0130.02013.88
5.4.410.0060.02813.83
5.4.400.0130.01813.71
5.4.390.0080.02513.67
5.4.380.0090.02013.80
5.4.370.0100.02013.82
5.4.360.0110.02013.77
5.4.350.0160.01613.86
5.4.340.0060.02513.75
5.4.330.0060.00310.96
5.4.320.0090.02313.63
5.4.310.0130.01713.79
5.4.300.0090.02213.76
5.4.290.0080.02213.83
5.4.280.0080.02213.80
5.4.270.0110.02113.90
5.4.260.0060.02613.70
5.4.250.0130.01713.63
5.4.240.0090.02013.89
5.4.230.0070.02513.77
5.4.220.0080.02313.82
5.4.210.0090.02413.72
5.4.200.0140.01613.82
5.4.190.0120.01913.66
5.4.180.0150.01613.67
5.4.170.0080.02313.87
5.4.160.0110.02213.75
5.4.150.0100.03113.70
5.4.140.0130.01812.91
5.4.130.0090.02112.98
5.4.120.0090.02012.81
5.4.110.0050.02412.79
5.4.100.0100.02113.04
5.4.90.0090.02812.78
5.4.80.0110.02212.98
5.4.70.0060.02512.86
5.4.60.0110.02912.76
5.4.50.0010.01912.76
5.4.40.0090.03012.78
5.4.30.0100.01712.87
5.4.20.0130.02212.82
5.4.10.0030.00711.15
5.4.00.0080.00311.09

preferences:
40.53 ms | 400 KiB | 5 Q