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.140.0150.01017.32
8.4.130.0080.01317.74
8.4.120.0090.01020.83
8.4.110.0020.00820.48
8.4.100.0280.00817.63
8.4.90.0070.01420.54
8.4.80.0160.00719.29
8.4.70.0120.00920.67
8.4.60.0120.00920.43
8.4.50.0110.00920.34
8.4.40.0240.00619.31
8.4.30.0220.00719.69
8.4.20.0260.00519.46
8.4.10.0200.00320.46
8.3.260.0090.00816.82
8.3.250.0110.00818.89
8.3.240.0120.00716.82
8.3.230.0280.00617.18
8.3.220.0090.01018.86
8.3.210.0090.00916.39
8.3.200.0040.00516.50
8.3.190.0120.00716.91
8.3.180.0120.00617.03
8.3.170.0150.01017.82
8.3.160.0220.00816.85
8.3.150.0250.00616.93
8.3.140.0240.00716.54
8.3.130.0170.00816.63
8.3.120.0180.00317.86
8.3.110.0200.01119.61
8.3.100.0180.00619.54
8.3.90.0210.00319.50
8.3.80.0190.00416.28
8.3.70.0200.00818.24
8.3.60.0160.00416.71
8.3.50.0110.00319.55
8.3.40.0160.00017.21
8.3.30.0160.00517.27
8.3.20.0100.00820.21
8.3.10.0120.00822.68
8.3.00.0150.00621.07
8.2.290.0070.00420.66
8.2.280.0180.00617.32
8.2.270.0040.01017.69
8.2.260.0110.00417.45
8.2.250.0110.00116.53
8.2.240.0120.00716.38
8.2.230.0070.00619.54
8.2.220.0110.00119.52
8.2.210.0090.00319.61
8.2.200.0160.00717.28
8.2.190.0140.00316.60
8.2.180.0110.00616.47
8.2.170.0100.00717.66
8.2.160.0160.00417.64
8.2.150.0150.00322.96
8.2.140.0160.00417.14
8.2.130.0180.00222.73
8.2.120.0170.00522.73
8.2.110.0140.00921.20
8.2.100.0140.01323.61
8.2.90.0170.00722.75
8.2.80.0180.01022.66
8.2.70.0150.00340.08
8.2.60.0080.00519.07
8.2.50.0170.00522.72
8.2.40.0090.00622.60
8.2.30.0200.00322.65
8.2.20.0130.00322.65
8.2.10.0130.00522.58
8.2.00.0190.00519.45
8.1.330.0100.00921.85
8.1.320.0150.01316.20
8.1.310.0100.00717.07
8.1.300.0110.00217.04
8.1.290.0080.00815.92
8.1.280.0070.01016.13
8.1.270.0140.00316.92
8.1.260.0130.00425.27
8.1.250.0080.00523.57
8.1.240.0170.00223.43
8.1.230.0110.00422.68
8.1.220.0150.00423.52
8.1.210.0140.00522.53
8.1.200.0100.00340.00
8.1.190.0120.00518.88
8.1.180.0100.00522.53
8.1.170.0090.00822.54
8.1.160.0120.00522.61
8.1.150.0120.00322.57
8.1.140.0110.00322.60
8.1.130.0100.00522.62
8.1.120.0090.00622.49
8.1.110.0090.00622.46
8.1.100.0100.00519.98
8.1.90.0080.00622.63
8.1.80.0120.00522.51
8.1.70.0130.00622.52
8.1.60.0110.00522.73
8.1.50.0080.00522.57
8.1.40.0160.00419.08
8.1.30.0160.00619.21
8.1.20.0190.00519.25
8.1.10.0140.00819.09
8.1.00.0110.00719.63
8.0.300.0160.00422.22
8.0.290.0090.00522.24
8.0.280.0130.00122.05
8.0.270.0080.00722.26
8.0.260.0090.00522.22
8.0.250.0110.00422.20
8.0.240.0100.00522.36
8.0.230.0100.00422.29
8.0.220.0080.00323.28
8.0.210.0100.00522.16
8.0.200.0120.00422.33
8.0.190.0080.00422.33
8.0.180.0100.00222.23
8.0.170.0140.00418.54
8.0.160.0130.00518.58
8.0.150.0150.00318.57
8.0.140.0120.00718.89
8.0.130.0140.00218.48
8.0.120.0110.00518.57
8.0.110.0130.00418.60
8.0.100.0100.00718.55
8.0.90.0110.00618.58
8.0.80.0100.00618.61
8.0.70.0160.00318.52
8.0.60.0140.00518.55
8.0.50.0150.00418.85
8.0.30.0140.00318.56
8.0.20.0130.00418.61
8.0.10.0140.00318.63
7.4.330.0120.00222.01
7.4.320.0150.00222.81
7.4.300.0100.00622.00
7.4.290.0200.00522.89
7.4.280.0140.00718.17
7.4.270.0170.00518.42
7.4.260.0180.00618.21
7.4.250.0180.00418.11
7.4.240.0160.00618.22
7.4.230.0170.00618.16
7.4.220.0160.00618.23
7.4.210.0160.00518.13
7.4.200.0160.00518.15
7.4.190.0150.00518.21
7.4.180.0170.00318.22
7.4.160.0130.00618.20
7.4.150.0120.00618.18
7.4.140.0120.00618.08
7.4.130.0140.00618.09
7.4.120.0150.00318.06
7.4.110.0090.00718.01
7.4.100.0100.00518.21
7.4.90.0130.00518.06
7.4.80.0120.00618.03
7.4.70.0150.00318.04
7.4.60.0140.00417.99
7.4.50.0130.00418.01
7.4.40.0130.00417.94
7.4.30.0150.00318.05
7.4.20.0150.00317.98
7.4.10.0100.00618.00
7.4.00.0150.00318.14

preferences:
86.52 ms | 406 KiB | 6 Q