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(true); $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.0070.00716.50
8.3.50.0080.01021.86
8.3.40.0070.00718.84
8.3.30.0110.00418.77
8.3.20.0040.00420.33
8.3.10.0000.00823.61
8.3.00.0060.00319.13
8.2.180.0120.00316.63
8.2.170.0070.01422.96
8.2.160.0140.00420.47
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00021.07
8.2.110.0080.00020.38
8.2.100.0070.00418.22
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0000.00917.68
8.2.50.0040.00818.07
8.2.40.0090.00019.04
8.2.30.0030.00520.61
8.2.20.0030.00617.74
8.2.10.0040.00417.88
8.2.00.0080.00018.01
8.1.280.0070.01025.92
8.1.270.0100.00023.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0140.00318.88
8.1.230.0110.00018.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00316.99
8.1.190.0000.00717.69
8.1.180.0060.00318.10
8.1.170.0040.00420.38
8.1.160.0040.00421.96
8.1.150.0000.00718.75
8.1.140.0030.00619.52
8.1.130.0050.00317.69
8.1.120.0000.00717.38
8.1.110.0090.00317.39
8.1.100.0030.00517.45
8.1.90.0000.00817.44
8.1.80.0040.00417.36
8.1.70.0000.00817.34
8.1.60.0060.00317.48
8.1.50.0030.00617.51
8.1.40.0040.00417.47
8.1.30.0040.00417.64
8.1.20.0030.00617.54
8.1.10.0000.00817.58
8.1.00.0040.00417.43
8.0.300.0030.00618.77
8.0.290.0000.00716.63
8.0.280.0050.00518.45
8.0.270.0000.00717.34
8.0.260.0060.00017.32
8.0.250.0000.00716.88
8.0.240.0040.00416.85
8.0.230.0040.00416.96
8.0.220.0030.00616.71
8.0.210.0040.00416.73
8.0.200.0000.00716.91
8.0.190.0040.00416.85
8.0.180.0030.00316.86
8.0.170.0030.00616.93
8.0.160.0040.00416.81
8.0.150.0060.00616.73
8.0.140.0070.00016.67
8.0.130.0000.00513.29
8.0.120.0000.00716.81
8.0.110.0030.00516.80
8.0.100.0020.00516.81
8.0.90.0070.00016.62
8.0.80.0080.00816.85
8.0.70.0000.00716.84
8.0.60.0000.00816.83
8.0.50.0050.00316.84
8.0.30.0080.01117.08
8.0.20.0140.00417.40
8.0.10.0030.00516.83
8.0.00.0110.00716.67
7.4.330.0000.00516.70
7.4.320.0000.00716.32
7.4.300.0050.00316.37
7.4.290.0040.00416.37
7.4.280.0040.00416.52
7.4.270.0000.00716.50
7.4.260.0030.00316.43
7.4.250.0040.00416.48
7.4.240.0040.00416.48
7.4.230.0030.00316.43
7.4.220.0100.01416.48
7.4.210.0090.00616.43
7.4.200.0030.00316.25
7.4.160.0090.00616.17
7.4.150.0110.00717.40
7.4.140.0070.01417.86
7.4.130.0130.00816.35
7.4.120.0110.00616.41
7.4.110.0070.01016.53
7.4.100.0140.00416.35
7.4.90.0060.00916.45
7.4.80.0060.01119.39
7.4.70.0030.01616.60
7.4.60.0030.01416.46
7.4.50.0060.00616.41
7.4.40.0060.01016.23
7.4.30.0140.00716.58
7.4.00.0070.01214.83
7.3.330.0030.00312.96
7.3.320.0000.00613.19
7.3.310.0000.00716.07
7.3.300.0030.00316.17
7.3.290.0120.00416.18
7.3.280.0120.00716.19
7.3.270.0090.00917.40
7.3.260.0050.01116.42
7.3.250.0100.00916.36
7.3.240.0130.00816.33
7.3.230.0000.01816.43
7.3.210.0110.00716.50
7.3.200.0130.00316.40
7.3.190.0060.00916.18
7.3.180.0070.01416.48
7.3.170.0070.01416.42
7.3.160.0130.00316.38
7.3.120.0030.01614.82
7.3.110.0040.01414.63
7.3.100.0030.01014.80
7.3.90.0030.00714.72
7.3.80.0090.00614.85
7.3.70.0120.00014.56
7.3.60.0050.00314.61
7.3.50.0060.00914.53
7.3.40.0040.01214.77
7.3.30.0040.00714.69
7.3.20.0030.01016.27
7.3.10.0120.00316.39
7.3.00.0130.00016.52
7.2.330.0030.01616.45
7.2.320.0070.01716.33
7.2.310.0070.01016.60
7.2.300.0030.01316.63
7.2.290.0000.01716.44
7.2.250.0060.00915.09
7.2.240.0120.00415.05
7.2.230.0070.00714.99
7.2.220.0000.01314.86
7.2.210.0070.01015.15
7.2.200.0070.00714.60
7.2.190.0030.00714.69
7.2.180.0070.01115.12
7.2.170.0030.00914.85
7.2.00.0040.00819.29
7.1.330.0060.01015.71
7.1.320.0040.00815.55
7.1.310.0090.00615.47
7.1.300.0070.01115.41
7.1.290.0030.00915.68
7.1.280.0070.01015.37
7.1.270.0040.00715.48
7.1.260.0070.00715.79
7.1.100.0000.01518.14
7.1.70.0000.00917.07
7.1.60.0030.01719.36
7.1.50.0070.00716.75
7.1.00.0000.07322.54
7.0.200.0000.00716.64
7.0.60.0070.03719.94
7.0.50.0070.05017.83
7.0.40.0170.06720.02
7.0.30.0170.04720.12
7.0.20.0300.05720.15
7.0.10.0030.04720.23
7.0.00.0170.08020.12
5.6.280.0070.05720.86
5.6.210.0070.04720.69
5.6.200.0100.05718.23
5.6.190.0130.07320.57
5.6.180.0270.04020.63
5.6.170.0270.05720.47
5.6.160.0070.07320.52
5.6.150.0130.08018.14
5.6.140.0070.03718.13
5.6.130.0000.08718.18
5.6.120.0230.06720.90
5.6.110.0100.08021.09
5.6.100.0100.08320.99
5.6.90.0000.09020.96
5.6.80.0070.07020.40
5.5.350.0200.07320.35
5.5.340.0030.04017.96
5.5.330.0070.04020.41
5.5.320.0130.04720.36
5.5.310.0370.08020.34
5.5.300.0130.07317.95
5.5.290.0030.04318.09
5.5.280.0100.08020.87
5.5.270.0200.07020.89
5.5.260.0030.08720.80
5.5.250.0070.09020.61
5.5.240.0400.05720.22

preferences:
44.03 ms | 401 KiB | 5 Q