3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; const Bar = 'const'; class Bar { private const BAR = 'class'; public function show(): \Closure { return static function() { echo self::BAR; }; } } (new Bar)->show()();

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.2.10.0100.00417.56
8.2.00.0110.00617.51
8.1.140.0120.00517.29
8.1.130.0110.00517.33
8.1.120.0100.00617.39
8.1.110.0110.00517.39
8.1.100.0130.00517.40
8.1.90.0100.00617.39
8.1.80.0110.00517.38
8.1.70.0120.00517.38
8.1.60.0120.00717.51
8.1.50.0120.00617.45
8.1.40.0130.00517.49
8.1.30.0120.00617.52
8.1.20.0140.00517.51
8.1.10.0140.00517.46
8.1.00.0110.00617.41
8.0.270.0090.00516.86
8.0.260.0100.00516.75
8.0.250.0100.00516.80
8.0.240.0110.00416.80
8.0.230.0090.00516.78
8.0.220.0100.00416.73
8.0.210.0090.00516.73
8.0.200.0090.00516.77
8.0.190.0100.00516.79
8.0.180.0100.00516.86
8.0.170.0090.00616.76
8.0.160.0110.00516.81
8.0.150.0080.00616.73
8.0.140.0100.00416.72
8.0.130.0090.00616.71
8.0.120.0090.00616.72
8.0.110.0110.00416.72
8.0.100.0110.00516.72
8.0.90.0110.00416.73
8.0.80.0110.00516.73
8.0.70.0090.00616.75
8.0.60.0100.00516.74
8.0.50.0100.00516.71
8.0.30.0110.00416.74
8.0.20.0110.00416.80
8.0.10.0100.00416.86

preferences:
19.4 ms | 403 KiB | 5 Q