3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { function __construct(protected readonly int $x) { } } class y extends x { function __construct(protected readonly int $x) { parent::__construct($x); } } new y(1); // Fatal error: Uncaught Error: Cannot modify readonly property y::$x class z extends x { function __construct(int $x) { parent::__construct($x); } } new z(1); // OK ?>

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.60.0040.00317.16
8.5.50.0110.00616.86
8.5.30.0080.00917.86
8.5.20.0110.00620.32
8.5.10.0120.00716.86
8.5.00.0130.01120.24
8.4.210.0080.00321.75
8.4.180.0140.01019.83
8.4.170.0100.01223.60
8.4.160.0160.00523.92
8.4.150.0080.00416.88
8.4.140.0110.01017.67
8.4.130.0050.00517.71
8.4.120.0090.01020.24
8.4.110.0100.01022.46
8.4.100.0150.00517.83
8.4.90.0150.00618.19
8.4.80.0200.00817.86
8.4.70.0150.01118.02
8.4.60.0420.00817.87
8.4.50.0230.00517.91
8.4.40.0320.01017.53
8.4.30.0400.00917.65
8.4.20.0430.01017.75
8.4.10.0460.00917.52
8.3.300.0160.00820.81
8.3.290.0110.00920.84
8.3.280.0110.01018.32
8.3.270.0150.00516.50
8.3.260.0090.01016.83
8.3.250.0090.01018.89
8.3.240.0050.00317.14
8.3.230.0130.00616.67
8.3.220.0180.00716.97
8.3.210.0190.00716.97
8.3.200.0540.00816.97
8.3.190.0420.00816.97
8.3.180.0350.00716.97
8.3.170.0440.00716.97
8.3.160.0430.01016.97
8.3.150.0410.00816.97
8.3.140.0420.00816.97
8.3.130.0250.00616.97
8.3.120.0240.00616.97
8.3.110.0200.00016.97
8.3.100.0200.00416.97
8.3.90.0190.00416.97
8.3.80.0200.00316.97
8.3.70.0190.00416.97
8.3.60.0190.00516.97
8.3.50.0220.01116.97
8.3.40.0400.00617.50
8.3.30.0370.00917.54
8.3.20.0320.00717.24
8.3.10.0160.00417.51
8.3.00.0130.00717.63
8.2.300.0120.00718.85
8.2.290.0110.00920.36
8.2.280.0290.01216.97
8.2.270.0340.00816.97
8.2.260.0340.00916.97
8.2.250.0400.00416.97
8.2.240.0380.00416.97
8.2.230.0350.00916.97
8.2.220.0350.00816.97
8.2.210.0340.00916.97
8.2.200.0400.00516.97
8.2.190.0300.01016.97
8.2.180.0240.00716.97
8.2.170.0270.00917.89
8.2.160.0180.00217.79
8.2.150.0160.00617.50
8.2.140.0300.01117.21
8.2.130.0370.00817.42
8.2.120.0380.01017.53
8.2.110.0250.00517.69
8.2.100.0170.00317.49
8.2.90.0150.00417.64
8.2.80.0300.00817.50
8.2.70.0370.00617.56
8.2.60.0370.00417.46
8.2.50.0170.00417.57
8.2.40.0260.00817.32
8.2.30.0320.00717.30
8.2.20.0350.00617.32
8.2.10.0350.00617.48
8.2.00.0300.01017.42
8.1.340.0070.01221.75

preferences:
59.53 ms | 864 KiB | 5 Q