3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Command { protected function configure() {} } abstract class TypedCommand { protected function configure(): void {} } class MyCommand extends Command { protected function configure(): void {} } class MyTypedCommand extends TypedCommand { protected function configure(): void {} }

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.0130.00822.53
8.4.110.0430.00717.51
8.4.100.0430.00617.31
8.4.90.0400.00917.67
8.4.80.0400.01017.49
8.4.70.0400.00617.52
8.4.60.0290.00917.31
8.4.50.0360.00717.48
8.4.40.0340.00517.33
8.4.30.0220.00417.11
8.4.20.0230.00717.48
8.4.10.0170.00717.28
8.3.250.0080.00717.19
8.3.240.0270.00416.71
8.3.230.0410.00616.27
8.3.220.0390.01116.13
8.3.210.0330.01116.39
8.3.200.0220.00516.27
8.3.190.0310.00916.39
8.3.180.0150.00616.29
8.3.170.0180.00416.34
8.3.160.0320.00616.18
8.3.150.0420.00716.30
8.3.140.0380.00816.44
8.3.130.0330.00416.45
8.3.120.0140.00616.46
8.3.110.0140.00516.64
8.3.100.0330.00616.44
8.3.90.0360.01216.51
8.3.80.0170.00616.23
8.3.70.0150.00816.14
8.3.60.0170.00516.53
8.3.50.0310.00816.40
8.3.40.0380.01217.31
8.3.30.0200.00717.45
8.3.20.0140.00417.12
8.3.10.0140.00317.23
8.3.00.0130.00417.49
8.2.290.0140.00416.46
8.2.280.0200.00116.34
8.2.270.0150.00316.53
8.2.260.0170.00816.46
8.2.250.0150.00416.57
8.2.240.0140.00616.50
8.2.230.0170.00116.21
8.2.220.0230.00916.21
8.2.210.0290.00616.24
8.2.200.0380.00616.16
8.2.190.0370.00616.38
8.2.180.0330.00716.23
8.2.170.0380.00617.31
8.2.160.0400.01217.27
8.2.150.0340.00917.43
8.2.140.0370.00317.30
8.2.130.0180.00517.22
8.2.120.0300.00417.17
8.2.110.0160.00317.46
8.2.100.0140.00417.45
8.2.90.0130.00517.46
8.2.80.0200.00617.29
8.2.70.0210.00617.18
8.2.60.0310.00817.26
8.2.50.0380.00617.49
8.2.40.0160.00417.49
8.2.30.0380.00617.21
8.2.20.0320.00317.54
8.2.10.0320.00617.11
8.2.00.0320.00617.33

preferences:
31.97 ms | 403 KiB | 5 Q