3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'baz'; private function taz() { return 'waz'; } } var_dump((new ReflectionProperty(Foo::class, 'bar'))->getValue(new Foo)); var_dump((new ReflectionMethod(Foo::class, 'taz'))->invoke(new Foo));

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.4.10.0090.00023.55
8.3.140.0050.00316.59
8.3.130.0180.00018.33
8.3.120.0090.00020.70
8.3.110.0000.01118.18
8.3.100.0090.00018.43
8.3.90.0180.00026.77
8.3.80.0030.00716.61
8.3.70.0040.01116.58
8.3.60.0110.00318.18
8.3.50.0100.00620.18
8.3.40.0110.00720.20
8.3.30.0040.01118.64
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.260.0000.00818.26
8.2.250.0000.01716.46
8.2.240.0040.00418.79
8.2.230.0060.00320.94
8.2.220.0090.00324.06
8.2.210.0140.00426.77
8.2.200.0090.00318.29
8.2.190.0100.00716.58
8.2.180.0080.00825.92
8.2.170.0120.00318.69
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00820.96
8.2.110.0060.00321.11
8.2.100.0040.00818.16
8.2.90.0040.00417.50
8.2.80.0030.00618.61
8.2.70.0000.00817.50
8.2.60.0050.00317.50
8.2.50.0030.00517.55
8.2.40.0040.00418.16
8.2.30.0000.00817.90
8.2.20.0000.00820.61
8.2.10.0070.00018.08
8.2.00.0070.00019.18
8.1.310.0110.00418.46
8.1.300.0000.01617.83
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.16
8.1.230.0060.00621.04
8.1.220.0050.00318.42
8.1.210.0030.00618.77
8.1.200.0050.00517.11
8.1.190.0080.00017.11
8.1.180.0050.00718.10
8.1.170.0030.00620.54
8.1.160.0000.00718.81
8.1.150.0070.00018.50
8.1.140.0050.00217.38
8.1.130.0040.00719.41
8.1.120.0130.00019.41
8.1.110.0090.00519.35
8.1.100.0120.00418.59
8.1.90.0090.00519.44
8.1.80.0050.00818.57
8.1.70.0100.00019.42
8.1.60.0110.00318.72
8.1.50.0130.00118.67
8.1.40.0090.00718.65
8.1.30.0090.00618.76
8.1.20.0050.01018.72
8.1.10.0110.00518.58
8.1.00.0150.00018.54
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00718.34
8.0.270.0000.00717.18
8.0.260.0070.00617.99
8.0.250.0090.00318.01
8.0.240.0080.00518.07
8.0.230.0100.00317.97
8.0.220.0070.00617.93
8.0.210.0100.00417.96
8.0.200.0110.00218.03
8.0.190.0120.00218.12
8.0.180.0100.00618.06
8.0.170.0100.00417.90
8.0.160.0060.00618.00
8.0.150.0100.00018.83
8.0.140.0090.00118.85
8.0.130.0040.00417.94
8.0.120.0060.00317.96
8.0.110.0060.00417.96
8.0.100.0040.00518.01
8.0.90.0070.00417.99
8.0.80.0070.00417.95
8.0.70.0090.00317.95
8.0.60.0060.00617.98
8.0.50.0080.00317.92
8.0.30.0080.00417.97
8.0.20.0050.00618.01
8.0.10.0080.00318.02

preferences:
30.58 ms | 403 KiB | 5 Q