3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable = 'Hello World!'; // Использование оператора use function() use ($variable): string { return $variable; } // Альтернативный вариант, используя короткий синтаксис fn(): string => $variable;

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.0.90.0030.00516.83
8.0.80.0040.00416.86
8.0.70.0000.00816.69
8.0.60.0040.00416.69
8.0.50.0040.00416.81
8.0.30.0020.00516.75
8.0.20.0050.00316.93
8.0.10.0080.00016.75
8.0.00.0030.00517.00
7.4.220.0070.00016.24
7.4.210.0070.00016.46
7.4.200.0000.00816.34
7.4.190.0040.00416.46
7.4.180.0000.00716.45
7.4.160.0000.00816.21
7.4.150.0080.00016.17
7.4.140.0030.00316.10
7.4.130.0050.00216.06
7.4.120.0040.00416.25
7.4.110.0000.00816.13
7.4.100.0070.00016.34
7.4.90.0000.00716.32
7.4.80.0030.00316.32
7.4.70.0050.00216.33
7.4.60.0000.00716.15
7.4.50.0040.00416.00
7.4.40.0000.00716.23
7.4.30.0040.00416.34
7.4.20.0000.00816.24
7.4.10.0000.00616.11
7.4.00.0070.00016.39
7.3.290.0080.00016.01
7.3.280.0000.00716.21
7.3.270.0000.00716.20
7.3.260.0030.00316.21
7.3.250.0000.00716.19
7.3.240.0070.00016.03
7.3.230.0030.00316.01
7.3.220.0070.00016.11
7.3.210.0070.00016.10
7.3.200.0030.00316.16
7.3.190.0070.00016.09
7.3.180.0000.00716.09
7.3.170.0040.00415.96
7.3.160.0030.00316.10
7.3.150.0070.00016.02
7.3.140.0040.00416.02
7.3.130.0030.00316.02
7.3.120.0040.00416.11
7.3.110.0060.00016.06
7.3.100.0000.00816.09
7.3.90.0030.00616.29
7.3.80.0070.00016.02
7.3.70.0030.00316.13
7.3.60.0000.00816.21
7.3.50.0040.00416.20
7.3.40.0070.00016.09
7.3.30.0070.00016.21
7.3.20.0000.00816.21
7.3.10.0080.00416.19
7.3.00.0030.00316.20

preferences:
142.27 ms | 1394 KiB | 7 Q