3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public ?int $a; public ?string $b; } $c = new C(); $c->a = &$prop; $c->b = &$prop; $prop = '43';

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.5.20.0110.00619.92
8.5.10.0090.01016.80
8.5.00.0130.00820.43
8.4.170.0140.00924.06
8.4.160.0130.01020.57
8.4.150.0020.00014.05
8.4.140.0040.00617.91
8.4.130.0040.00418.25
8.4.120.0120.00724.11
8.4.110.0110.00822.48
8.4.100.0270.00517.90
8.4.90.0220.00417.88
8.4.80.0150.00517.82
8.4.70.0180.00517.83
8.4.60.0190.00418.09
8.4.50.0170.00317.70
8.4.40.0200.00217.45
8.4.30.0190.00417.57
8.4.20.0190.00617.93
8.4.10.0190.00617.68
8.3.300.0160.00718.44
8.3.290.0130.00720.60
8.3.280.0090.01218.46
8.3.270.0040.00716.93
8.3.260.0060.00416.74
8.3.250.0100.00918.78
8.3.240.0170.00616.40
8.3.230.0060.00516.86
8.3.220.0190.00416.64
8.3.210.0160.00716.23
8.3.200.0220.00216.50
8.3.190.0180.00316.21
8.3.180.0160.00416.60
8.3.170.0180.00416.54
8.3.160.0190.00416.62
8.3.150.0180.00316.37
8.3.140.0190.00416.66
8.3.130.0190.00416.70
8.3.120.0130.00716.64
8.3.110.0190.00416.57
8.3.100.0200.00516.45
8.3.90.0190.00716.54
8.3.80.0190.00316.38
8.3.70.0180.00516.57
8.3.60.0180.00616.58
8.3.50.0180.00316.72
8.3.40.0200.00717.59
8.3.30.0140.00717.68
8.3.20.0160.00317.60
8.3.10.0140.00617.46
8.3.00.0060.00517.46
8.2.300.0120.00820.32
8.2.290.0110.00616.55
8.2.280.0150.00416.61
8.2.270.0150.00316.52
8.2.260.0160.00416.51
8.2.250.0160.00216.48
8.2.240.0150.00316.40
8.2.230.0130.00516.36
8.2.220.0130.00616.37
8.2.210.0140.00516.79
8.2.200.0150.00416.48
8.2.190.0180.00116.44
8.2.180.0130.00416.74
8.2.170.0170.00517.61
8.2.160.0200.00117.66
8.2.150.0140.00417.53
8.2.140.0140.00617.48
8.2.130.0150.00417.57
8.2.120.0160.00317.57
8.2.110.0180.00417.58
8.2.100.0110.00917.57
8.2.90.0150.00417.62
8.2.80.0160.00517.74
8.2.70.0130.00617.31
8.2.60.0190.00317.62
8.2.50.0170.00317.32
8.2.40.0160.00417.41
8.2.30.0180.00317.43
8.2.20.0140.00617.28
8.2.10.0130.00417.31
8.2.00.0130.00517.55
8.1.340.0130.00717.70

preferences:
37.04 ms | 403 KiB | 5 Q