3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $staticProperty = 'foobar'; public $property = 'barfoo'; private $privateProperty = 'foofoo'; } $reflectionClass = new ReflectionClass('Foo'); $reflectionClass->getProperty('privateProperty')->setAccessible(true); var_dump($reflectionClass->getProperty('staticProperty')->getValue()); var_dump($reflectionClass->getProperty('property')->getValue(new Foo)); var_dump($reflectionClass->getProperty('privateProperty')->getValue());

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.0150.00416.75
8.3.50.0080.01021.92
8.3.40.0110.00718.79
8.3.30.0120.00318.84
8.3.20.0000.00720.19
8.3.10.0020.00521.60
8.3.00.0060.00319.38
8.2.180.0070.01116.75
8.2.170.0070.00722.96
8.2.160.0070.01020.32
8.2.150.0050.00324.18
8.2.140.0070.01124.66
8.2.130.0040.00420.35
8.2.120.0070.00026.35
8.2.110.0060.00319.31
8.2.100.0120.00017.84
8.2.90.0050.00319.39
8.2.80.0080.00019.04
8.2.70.0080.00017.50
8.2.60.0040.00817.55
8.2.50.0000.00818.07
8.2.40.0040.00421.01
8.2.30.0030.00420.65
8.2.20.0000.01117.70
8.2.10.0040.00418.07
8.2.00.0030.00518.00
8.1.280.0150.00325.92
8.1.270.0060.00323.89
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0000.00822.18
8.1.230.0000.01121.04
8.1.220.0040.00417.79
8.1.210.0030.00618.89
8.1.200.0100.00017.23
8.1.190.0050.00217.58
8.1.180.0000.00818.10
8.1.170.0030.00518.32
8.1.160.0080.00021.93
8.1.150.0040.00418.79
8.1.140.0030.00619.49
8.1.130.0000.00717.54
8.1.120.0000.00817.36
8.1.110.0040.00317.38
8.1.100.0030.00317.40
8.1.90.0070.00017.41
8.1.80.0040.00417.38
8.1.70.0070.00017.37
8.1.60.0080.00017.53
8.1.50.0030.00617.44
8.1.40.0040.00417.54
8.1.30.0060.00317.57
8.1.20.0070.00017.62
8.1.10.0030.00617.61
8.1.00.0060.00317.50
8.0.300.0050.00220.21
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0070.00017.21
8.0.260.0070.00017.22
8.0.250.0030.00316.98
8.0.240.0030.00317.02
8.0.230.0030.00317.00
8.0.220.0040.00416.94
8.0.210.0030.00316.89
8.0.200.0000.00616.86
8.0.190.0040.00416.98
8.0.180.0060.00417.00
8.0.170.0040.00417.00
8.0.160.0070.00017.00
8.0.150.0030.00516.92
8.0.140.0040.00416.93
8.0.130.0000.00513.30
8.0.120.0040.00416.87
8.0.110.0050.00216.93
8.0.100.0040.00416.96
8.0.90.0050.00316.77
8.0.80.0100.01016.91
8.0.70.0040.00416.77
8.0.60.0020.00516.88
8.0.50.0040.00416.86
8.0.30.0120.00616.94
8.0.20.0120.00617.40
8.0.10.0080.00016.87
8.0.00.0080.01016.84
7.4.330.0030.00316.82
7.4.320.0030.00316.46
7.4.300.0030.00316.46
7.4.290.0030.00516.52
7.4.280.0070.00016.48
7.4.270.0030.00716.53
7.4.260.0030.00316.51
7.4.250.0040.00416.50
7.4.240.0040.00416.63
7.4.230.0030.00316.54
7.4.220.0090.01216.53
7.4.210.0060.01016.68
7.4.200.0060.00316.61
7.4.160.0150.00716.68
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0110.00916.45
7.4.120.0120.00716.54
7.4.110.0070.01016.52
7.4.100.0090.00816.36
7.4.90.0180.00016.40
7.4.80.0110.01419.39
7.4.70.0130.01016.45
7.4.60.0060.00916.59
7.4.50.0040.01116.35
7.4.40.0070.01016.46
7.4.30.0090.00916.51
7.4.00.0060.00615.00
7.3.330.0060.00013.19
7.3.320.0050.00013.17
7.3.310.0040.00416.31
7.3.300.0000.00716.37
7.3.290.0070.00916.32
7.3.280.0140.00416.34
7.3.270.0090.01517.40
7.3.260.0100.00716.44
7.3.250.0110.00716.51
7.3.240.0150.00716.34
7.3.230.0070.01016.39
7.3.210.0030.01316.41
7.3.200.0180.00316.41
7.3.190.0100.00616.35
7.3.180.0080.00816.30
7.3.170.0150.00616.27
7.3.160.0070.01016.48
7.2.330.0080.00816.32
7.2.320.0080.01616.68
7.2.310.0040.01216.38
7.2.300.0100.00716.65
7.2.290.0060.01116.44
7.2.60.0070.00716.68
7.2.00.0040.01119.11
7.1.200.0090.00615.49
7.1.100.0000.01118.15
7.1.70.0000.01617.08
7.1.60.0170.00719.36
7.1.50.0220.01634.82
7.1.00.0030.07722.57
7.0.200.0000.01016.37
7.0.60.0070.03720.03
7.0.50.0000.07717.89
7.0.40.0070.04320.30
7.0.30.0330.06020.21
7.0.20.0270.04720.33
7.0.10.0070.05020.29
7.0.00.0030.08020.09
5.6.280.0130.05320.86
5.6.210.0230.06320.52
5.6.200.0130.07718.19
5.6.190.0070.09320.50
5.6.180.0500.06020.41
5.6.170.0270.05320.44
5.6.160.0070.06320.39
5.6.150.0000.04718.23
5.6.140.0100.03318.28
5.6.130.0100.06718.14
5.6.120.0000.06021.00
5.6.110.0070.04020.98
5.6.100.0070.09020.98
5.6.90.0000.04721.12
5.6.80.0030.08320.41
5.5.350.0200.08320.41
5.5.340.0070.04017.95
5.5.330.0070.08320.19
5.5.320.0070.08020.34
5.5.310.0300.08020.41
5.5.300.0070.05017.91
5.5.290.0070.04318.08
5.5.280.0130.06020.88
5.5.270.0170.04720.83
5.5.260.0000.04320.64
5.5.250.0000.06320.57
5.5.240.0200.07020.16

preferences:
50.89 ms | 401 KiB | 5 Q