3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public readonly int $x; public function getX(): int { return $this->x; } } class C extends B { // Redeclare to make it writable. public readonly int $x; public function __construct() { $this->x = 5; } } $c = new C; print $c->getX();

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.120.0060.00320.80
8.4.110.0120.01018.16
8.4.100.0090.01018.70
8.4.90.0100.01020.71
8.4.80.0100.00920.30
8.4.70.0050.00417.86
8.4.60.0150.00518.82
8.4.50.0020.00618.72
8.4.40.0130.01017.58
8.4.30.0030.00618.93
8.4.20.0100.00719.66
8.4.10.0100.00619.58
8.3.250.0140.00518.88
8.3.240.0120.00617.11
8.3.230.0100.00616.21
8.3.220.0120.00618.72
8.3.210.0100.00916.58
8.3.200.0040.00716.73
8.3.190.0110.00717.41
8.3.180.0100.00817.41
8.3.170.0110.00720.86
8.3.160.0110.00717.36
8.3.150.0030.01717.34
8.3.140.0070.01118.79
8.3.130.0090.00018.43
8.3.120.0060.00318.95
8.3.110.0030.00616.55
8.3.100.0170.00316.62
8.3.70.0030.01416.66
8.3.60.0300.00616.58
8.3.50.0110.00416.60
8.3.40.0200.01117.31
8.3.30.0200.00717.30
8.3.20.0240.00717.38
8.3.10.0280.01118.29
8.3.00.0250.01117.23
8.2.290.0110.00720.43
8.2.280.0090.00918.50
8.2.270.0060.01217.08
8.2.260.0030.00618.27
8.2.250.0050.00319.16
8.2.240.0030.00618.84
8.2.230.0000.00916.75
8.2.220.0040.00816.39
8.2.190.0230.01016.68
8.2.180.0250.00716.58
8.2.170.0300.00417.55
8.2.160.0330.00517.61
8.2.150.0240.01017.37
8.2.140.0310.00317.38
8.2.130.0290.00717.19
8.2.120.0260.01117.50
8.2.110.0240.00917.38
8.2.100.0290.00617.25
8.2.90.0310.00517.31
8.2.80.0240.01217.38
8.2.70.0270.00717.48
8.2.60.0170.00917.44
8.2.50.0290.00417.49
8.2.40.0190.01217.42
8.2.30.0250.00817.13
8.2.20.0250.00617.13
8.2.10.0240.01117.36
8.2.00.0350.00717.13
8.1.330.0130.00621.89
8.1.320.0130.00518.47
8.1.310.0050.00318.68
8.1.300.0030.00716.19
8.1.280.0290.00916.58
8.1.270.0310.01017.04
8.1.260.0290.01017.18
8.1.250.0210.01317.30
8.1.240.0250.00617.25
8.1.230.0250.00717.24
8.1.220.0270.01017.00
8.1.210.0300.00617.06
8.1.200.0300.00117.10
8.1.190.0260.00816.93
8.1.180.0230.00916.91
8.1.170.0250.00616.94
8.1.160.0240.00617.09
8.1.150.0230.01017.13
8.1.140.0280.00517.00
8.1.130.0300.00517.05
8.1.120.0300.00417.04
8.1.110.0270.00617.00
8.1.100.0220.01017.05
8.1.90.0250.00717.03
8.1.80.0200.00916.97
8.1.70.0240.00617.06
8.1.60.0250.01017.31
8.1.50.0260.00717.19
8.1.40.0300.00318.10
8.1.30.0280.00517.05
8.1.20.0310.00717.38
8.1.10.0270.00517.05
8.1.00.0280.00517.23

preferences:
33.5 ms | 403 KiB | 5 Q