3v4l.org

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

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.0100.05720.26
7.0.00.0000.09020.22
5.6.160.0070.08720.62
5.6.150.0030.05718.12
5.6.140.0070.04018.16
5.6.130.0070.06318.21
5.6.120.0000.04321.11
5.6.110.0070.08021.03
5.6.100.0070.06320.96
5.6.90.0170.07321.00
5.6.80.0130.08320.54
5.5.300.0070.07718.08
5.5.290.0070.05318.07
5.5.280.0100.08320.90
5.5.270.0000.04320.73
5.5.260.0070.08320.88
5.5.250.0100.08320.69
5.5.240.0170.07320.29

preferences:
137.53 ms | 1394 KiB | 7 Q