3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { protected int $v = 2; public function setValue(A $v, int $i): void { $v->v = $i; } public function getValue(A $v): void { echo $v->v; } } class B extends A { protected int $v { set => 1000; } } $a = new A; $b = new B; $a->setValue($b, 42); $a->getValue($b);

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.110.0320.00818.37
8.4.100.0270.00717.66
8.4.90.0270.00617.64
8.4.80.0270.00617.68
8.4.70.0260.00617.65
8.4.60.0230.00617.63
8.4.50.0230.00717.72
8.4.40.0270.00717.56
8.4.30.0270.00617.44
8.4.20.0280.00617.49
8.4.10.0250.00717.40
8.3.240.0070.00417.29
8.3.230.0180.00316.45
8.3.220.0250.00516.57
8.3.210.0210.00716.58
8.3.200.0230.00616.53
8.3.190.0240.00416.61
8.3.180.0210.00416.64
8.3.170.0170.00516.59
8.3.160.0270.00516.61
8.3.150.0260.00616.56
8.3.140.0220.00416.59
8.3.130.0180.00516.63
8.3.120.0150.00416.63
8.3.110.0170.00616.39
8.3.100.0220.00416.54
8.3.90.0230.00816.55
8.3.80.0340.00516.46
8.3.70.0240.00416.56
8.3.60.0230.00516.40
8.3.50.0260.00516.65
8.3.40.0260.00317.45
8.3.30.0140.00517.55
8.3.20.0150.00517.42
8.3.10.0120.00517.54
8.3.00.0130.00417.54
8.2.290.0190.00616.19
8.2.280.0190.00616.38
8.2.270.0200.00516.31
8.2.260.0220.00516.53
8.2.250.0220.00516.53
8.2.240.0190.00516.40
8.2.230.0140.00316.47
8.2.220.0160.00316.49
8.2.210.0180.00316.35
8.2.200.0150.00316.50
8.2.190.0180.00616.47
8.2.180.0160.00516.38
8.2.170.0160.00517.65
8.2.160.0190.00417.45
8.2.150.0220.00517.41
8.2.140.0230.00517.28
8.2.130.0210.00717.21
8.2.120.0200.00517.38
8.2.110.0180.00717.37
8.2.100.0240.00517.33
8.2.90.0240.00517.52
8.2.80.0250.00417.31
8.2.70.0170.00517.25
8.2.60.0170.00417.51
8.2.50.0150.00517.29
8.2.40.0190.00617.31
8.2.30.0160.00317.35
8.2.20.0140.00617.35
8.2.10.0130.00417.27
8.2.00.0200.00417.36

preferences:
61.88 ms | 764 KiB | 4 Q