3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { private $myProperty = true; } $class = new ReflectionClass("MyClass"); $property = $class->getProperty("myProperty"); $property->setAccessible(false); $obj = new MyClass(); echo $property->getValue($obj); // Works //echo $obj->myProperty; // Doesn't work (error)

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.00916.50
8.3.50.0110.00722.05
8.3.40.0070.00718.68
8.3.30.0090.00618.72
8.3.20.0070.00020.16
8.3.10.0070.00023.53
8.3.00.0060.00319.13
8.2.180.0120.00616.61
8.2.170.0140.00022.96
8.2.160.0100.00320.53
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0090.00017.50
8.2.120.0050.00326.35
8.2.110.0090.00022.23
8.2.100.0090.00317.75
8.2.90.0040.00419.14
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00617.90
8.2.50.0070.00318.07
8.2.40.0080.00818.88
8.2.30.0050.00320.54
8.2.20.0030.00617.57
8.2.10.0040.00418.00
8.2.00.0070.00017.90
8.1.280.0100.01025.92
8.1.270.0060.00323.85
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0100.00022.42
8.1.230.0080.00417.48
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.13
8.1.190.0060.00317.51
8.1.180.0030.00618.10
8.1.170.0040.00418.62
8.1.160.0030.00321.89
8.1.150.0000.00718.90
8.1.140.0030.00619.52
8.1.130.0080.00017.65
8.1.120.0070.00017.30
8.1.110.0030.00617.46
8.1.100.0000.00717.30
8.1.90.0000.00917.39
8.1.80.0040.00317.45
8.1.70.0050.00317.38
8.1.60.0040.00417.54
8.1.50.0000.00817.43
8.1.40.0000.00917.35
8.1.30.0000.00817.54
8.1.20.0040.00417.46
8.1.10.0000.00717.52
8.1.00.0030.00517.44
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0060.00318.39
8.0.270.0040.00417.11
8.0.260.0070.00017.12
8.0.250.0030.00316.87
8.0.240.0000.00716.86
8.0.230.0030.00316.95
8.0.220.0070.00416.92
8.0.210.0080.00016.85
8.0.200.0030.00316.84
8.0.190.0000.00816.95
8.0.180.0040.00416.93
8.0.170.0040.00416.93
8.0.160.0030.00316.99
8.0.150.0090.00016.82
8.0.140.0080.00016.76
8.0.130.0030.00313.29
8.0.120.0000.00816.77
8.0.110.0050.00316.81
8.0.100.0030.00516.80
8.0.90.0040.00416.97
8.0.80.0130.00316.79
8.0.70.0040.00416.77
8.0.60.0040.00416.79
8.0.50.0070.00016.89
8.0.30.0080.01017.02
8.0.20.0110.00917.40
8.0.10.0040.00417.00
8.0.00.0110.00616.77
7.4.330.0020.00216.84
7.4.320.0000.00716.48
7.4.300.0030.00316.61
7.4.290.0030.00316.51
7.4.280.0040.00416.61
7.4.270.0000.00716.54
7.4.260.0000.00816.63
7.4.250.0030.00316.57
7.4.240.0010.00616.55
7.4.230.0030.00316.26
7.4.220.0070.01316.65
7.4.210.0070.01316.55
7.4.200.0000.00716.71
7.4.160.0060.01216.50
7.4.150.0120.00617.40
7.4.140.0170.00617.86
7.4.130.0110.02316.59
7.4.120.0090.00916.69
7.4.110.0110.00616.58
7.4.100.0200.00316.48
7.4.90.0060.01216.46
7.4.80.0100.00719.39
7.4.70.0080.00816.48
7.4.60.0030.01316.34
7.4.50.0080.00816.35
7.4.40.0060.00916.25
7.4.30.0150.00616.52
7.4.00.0090.00315.21
7.3.330.0030.00313.26
7.3.320.0000.00613.31
7.3.310.0070.00016.38
7.3.300.0030.00316.18
7.3.290.0100.00616.32
7.3.280.0140.00716.31
7.3.270.0230.00017.40
7.3.260.0030.01416.43
7.3.250.0180.00116.48
7.3.240.0110.00916.41
7.3.230.0120.01216.39
7.3.210.0070.01316.63
7.3.200.0000.01616.41
7.3.190.0160.00316.25
7.3.180.0070.01016.23
7.3.170.0140.00716.31
7.3.160.0090.00616.38
7.2.330.0050.01316.59
7.2.320.0090.01316.71
7.2.310.0090.00916.44
7.2.300.0060.01016.67
7.2.290.0030.01316.72
7.2.60.0090.00316.88
7.2.00.0160.00319.54
7.1.200.0040.01115.84
7.1.100.0030.00917.71
7.1.70.0030.00917.20
7.1.60.0060.01919.36
7.1.50.0070.01416.72
7.1.00.0130.06322.36
7.0.200.0000.00816.94
7.0.60.0030.04019.96
7.0.50.0000.04317.89
7.0.40.0070.08720.11
7.0.30.0230.06720.10
7.0.20.0270.04320.24
7.0.10.0130.07020.19
7.0.00.0130.04020.11
5.6.280.0000.03320.93
5.6.210.0030.04020.46
5.6.200.0030.04718.29
5.6.190.0030.08020.33
5.6.180.0270.05020.33
5.6.170.0270.07720.47
5.6.160.0070.05320.52
5.6.150.0170.07018.12
5.6.140.0000.08318.27
5.6.130.0100.07718.21
5.6.120.0070.08020.98
5.6.110.0070.06320.99
5.6.100.0130.08021.11
5.6.90.0100.05721.03
5.6.80.0100.07720.38
5.5.350.0300.07320.53
5.5.340.0070.03718.02
5.5.330.0030.08720.26
5.5.320.0230.03720.35
5.5.310.0330.06720.31
5.5.300.0100.08017.99
5.5.290.0030.04018.05
5.5.280.0030.04720.68
5.5.270.0100.07320.79
5.5.260.0070.08020.75
5.5.250.0100.06320.68
5.5.240.0270.06720.35

preferences:
63.74 ms | 401 KiB | 5 Q