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){ $toto = 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.08320.06
7.0.00.0070.08320.22
5.6.160.0100.08320.39
5.6.150.0000.05718.19
5.6.140.0030.07718.18
5.6.130.0230.06018.23
5.6.120.0030.08321.00
5.6.110.0200.06721.05
5.6.100.0070.08321.03
5.6.90.0070.07320.97
5.6.80.0070.07720.41
5.5.300.0070.08018.05
5.5.290.0000.04717.93
5.5.280.0070.08320.89
5.5.270.0070.07720.74
5.5.260.0000.05720.73
5.5.250.0030.04320.70
5.5.240.0130.05020.29

preferences:
139.84 ms | 1394 KiB | 7 Q