3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Los índices creados por PHP son el siguiente al mayor de los existentes // Antes de PHP 8.0 eran como mínimo 0. // Desde PHP 8.0 pueden ser ser negativos. $valores = [-2 => "a", "b", "c", ]; print_r($valores);

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.130.0080.00018.28
8.3.120.0040.01418.46
8.3.110.0080.00018.43
8.3.50.0040.00418.21
8.2.250.0110.00318.52
8.2.240.0060.00318.34
8.2.230.0170.00318.13
8.1.300.0150.00618.08
8.0.00.0230.00517.31
7.4.00.0140.01217.04
7.3.330.0170.00916.92

preferences:
25.17 ms | 403 KiB | 5 Q