3v4l.org

run code in 300+ PHP versions simultaneously
<?php function enum() { for($enums = func_get_args(), $enum = reset($enums), $i = 1; $enum; $enum = next($enums), ++$i) { const $enum = $i; } } // enum() enum('CONST0', 'CONST1', 'CONST2');

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)
5.4.90.0180.05212.01
5.4.80.0180.05412.01
5.4.70.0320.06312.00
5.4.60.0190.04912.00
5.4.50.0330.06112.00
5.4.40.0190.04411.98
5.4.30.0200.04511.98
5.4.20.0300.07811.98
5.4.10.0310.06311.98
5.4.00.0170.04711.47
5.3.190.0260.05812.68
5.3.180.0350.06312.68
5.3.170.0190.05012.67
5.3.160.0190.04512.67
5.3.150.0190.04812.67
5.3.140.0500.04512.66
5.3.130.0180.05112.66
5.3.120.0250.07212.65
5.3.110.0170.04912.65
5.3.100.0240.07112.12
5.3.90.0230.05512.09
5.3.80.0170.04712.08
5.3.70.0260.07112.08
5.3.60.0190.05112.06
5.3.50.0150.05312.02
5.3.40.0170.04612.02
5.3.30.0250.05411.99
5.3.20.0180.04811.76
5.3.10.0220.03911.72
5.3.00.0160.04711.71

preferences:
143.17 ms | 989 KiB | 8 Q