3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MySessionStorage implements SessionHandlerInterface { private $path; function open($savePath, $sessionName) { $this->path = $savePath; } function close() { } function read($id) { return ''; } function write($id, $data) { return TRUE; } function destroy($id) { return TRUE; } function gc($maxlifetime) { return TRUE; } } if (session_set_save_handler(new MySessionStorage)){ try{ session_start(); } catch (Exception as $e){ } }

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)
7.0.10.0030.09320.03
7.0.00.0100.03720.30
5.6.160.0030.07320.46
5.6.150.0070.05718.21
5.6.140.0030.09018.17
5.6.130.0070.07318.21
5.6.120.0030.09021.10
5.6.110.0030.09021.00
5.6.100.0100.08320.96
5.6.90.0130.07320.97
5.6.80.0100.08020.37
5.5.300.0070.08318.09
5.5.290.0100.07718.04
5.5.280.0130.04020.88
5.5.270.0100.08020.87
5.5.260.0100.05020.77
5.5.250.0100.03720.55
5.5.240.0070.03720.29

preferences:
142.01 ms | 1394 KiB | 7 Q