3v4l.org

run code in 500+ PHP versions simultaneously
<?php class TestCommand { protected function execute(): void {} } class TestCommand2 extends TestCommand { protected function execute() {} }

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.3.50.0060.00216.79
7.3.50.0130.00614.53
7.3.40.0090.00314.46
7.3.30.0030.01014.71
7.3.20.0080.00616.61
7.3.10.0060.00916.34
7.3.00.0070.00716.54
7.2.180.0040.00814.80
7.2.170.0110.00314.95
7.2.160.0000.01114.83
7.2.150.0090.00616.45
7.2.140.0100.00516.80
7.2.130.0110.00416.50
7.2.120.0120.00316.53
7.2.110.0070.00716.70
7.2.100.0090.00616.45
7.2.90.0150.00916.64
7.2.80.0050.00916.40
7.2.70.0060.00616.80
7.2.60.0110.00416.58
7.2.50.0090.00616.62
7.2.40.0100.00616.64
7.2.30.0110.01216.82
7.2.20.0150.00016.69
7.2.10.0130.00616.63
7.2.00.0120.00916.86
7.1.280.0130.00015.42
7.1.270.0050.00515.39
7.1.260.0030.01015.27
7.1.250.0110.00315.39

preferences:
55.52 ms | 610 KiB | 4 Q