3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Acme { public function __construct( public readonly int $changeMe, ) {} } $object = new Acme(1); $reflection = new ReflectionClass($object); $instance = $reflection->newInstanceWithoutConstructor(); $reflectionProperty = $reflection->getProperty('changeMe'); $reflectionProperty->setValue($instance, 33); var_dump($reflectionProperty->getValue($instance));

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.20.0130.00719.64
8.4.10.0140.00221.44
8.3.150.0190.00017.21
8.3.140.0200.00516.54
8.3.130.0140.00316.69
8.3.120.0080.00018.89
8.3.110.0130.00722.58
8.3.100.0080.00022.58
8.3.90.0050.00322.58
8.3.70.0220.01018.20
8.3.50.0080.00022.58
8.3.20.0070.00921.71
8.3.10.0110.00923.62
8.3.00.0170.00621.81
8.2.260.0070.00718.69
8.2.250.0050.00316.57
8.2.240.0140.00716.40
8.2.230.0000.00822.58
8.2.220.0060.00322.58
8.2.210.0040.00422.58
8.2.200.0170.00817.45
8.2.150.0160.00325.66
8.2.130.0210.00028.09
8.2.120.0220.00428.09
8.2.110.0150.01021.97
8.2.100.0190.01628.09
8.2.90.0290.00328.09
8.2.80.0240.01428.09
8.2.70.0140.00344.30
8.2.60.0060.00619.44
8.2.50.0170.01028.09
8.2.40.0070.00728.09
8.2.30.0250.00428.09
8.2.20.0120.00328.09
8.2.10.0060.00928.09
8.2.00.0190.00619.92
8.1.310.0110.00418.28
8.1.300.0050.00517.86
8.1.260.0120.00428.09
8.1.250.0050.00528.09
8.1.240.0190.00328.09
8.1.230.0140.00028.09
8.1.220.0160.00428.09
8.1.210.0150.00828.09
8.1.200.0100.00344.62
8.1.190.0110.00619.26
8.1.180.0070.00728.09
8.1.170.0030.01028.09
8.1.160.0170.00328.09
8.1.150.0070.00728.09
8.1.140.0090.00428.09
8.1.130.0080.00828.09
8.1.120.0070.00728.09
8.1.110.0060.00928.09
8.1.100.0080.00720.96
8.1.90.0070.00728.09
8.1.80.0070.00728.09
8.1.70.0120.00328.09
8.1.60.0100.00628.09
8.1.50.0030.00728.09
8.1.40.0160.00419.45
8.1.30.0160.00719.59
8.1.20.0190.00619.65
8.1.10.0140.00919.49
8.1.00.0110.00719.78
8.0.300.0210.00428.09
8.0.290.0110.00428.09
8.0.280.0120.00328.09
8.0.270.0110.00428.09
8.0.260.0040.00828.09
8.0.250.0090.00628.09
8.0.240.0050.00928.09
8.0.230.0090.00328.09
8.0.220.0060.00328.09
8.0.210.0100.00328.09
8.0.200.0120.00428.09
8.0.190.0040.00428.09
8.0.180.0080.00028.09
8.0.170.0150.00418.97
8.0.160.0130.00519.04
8.0.150.0150.00419.03
8.0.140.0130.00719.04
8.0.130.0140.00218.93
8.0.120.0110.00619.00
8.0.110.0130.00419.01
8.0.100.0100.00819.00
8.0.90.0110.00619.01
8.0.80.0100.00719.02
8.0.70.0160.00418.99
8.0.60.0140.00518.99
8.0.50.0140.00519.01
8.0.30.0140.00318.99
8.0.20.0140.00219.04
8.0.10.0150.00319.09
7.4.330.0130.00028.09
7.4.320.0140.00528.09
7.4.300.0130.00428.09
7.4.290.0310.00628.09
7.4.280.0150.00718.62
7.4.270.0180.00518.57
7.4.260.0190.00618.66
7.4.250.0200.00418.59
7.4.240.0160.00618.68
7.4.230.0180.00618.63
7.4.220.0170.00618.65
7.4.210.0160.00618.56
7.4.200.0160.00618.60
7.4.190.0160.00618.65
7.4.180.0180.00418.65
7.4.160.0140.00718.67
7.4.150.0130.00618.65
7.4.140.0120.00718.50
7.4.130.0150.00618.51
7.4.120.0160.00318.46
7.4.110.0090.00718.47
7.4.100.0100.00518.67
7.4.90.0130.00618.51
7.4.80.0120.00618.50
7.4.70.0150.00418.45
7.4.60.0140.00418.48
7.4.50.0130.00418.49
7.4.40.0130.00418.38
7.4.30.0160.00218.48
7.4.20.0150.00318.45
7.4.10.0100.00718.44
7.4.00.0170.00218.55

preferences:
52.02 ms | 403 KiB | 5 Q