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)
8.3.60.0110.00316.50
8.3.50.0100.00921.11
8.3.40.0000.01518.85
8.3.30.0000.01418.72
8.3.20.0070.00020.16
8.3.10.0060.00321.76
8.3.00.0040.00423.53
8.2.180.0030.01216.75
8.2.170.0000.01418.71
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00319.82
8.2.120.0000.00826.35
8.2.110.0070.01520.93
8.2.100.0030.00717.92
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0080.00417.93
8.2.50.0070.00418.07
8.2.40.0000.00922.28
8.2.30.0040.00420.60
8.2.20.0040.00417.71
8.2.10.0000.00717.91
8.2.00.0040.00417.94
8.1.280.0090.00625.92
8.1.270.0050.00323.97
8.1.260.0070.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00422.75
8.1.230.0030.00719.10
8.1.220.0030.00517.80
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0030.00518.38
8.1.160.0080.00020.76
8.1.150.0000.00718.74
8.1.140.0060.00319.52
8.1.130.0000.00717.59
8.1.120.0040.00417.39
8.1.110.0000.00717.45
8.1.100.0000.00717.44
8.1.90.0030.00617.45
8.1.80.0040.00417.38
8.1.70.0000.00717.43
8.1.60.0050.00317.53
8.1.50.0030.00617.43
8.1.40.0040.00417.41
8.1.30.0000.00817.49
8.1.20.0000.00717.44
8.1.10.0050.00317.36
8.1.00.0080.00017.27
8.0.300.0000.00818.77
8.0.290.0030.00616.73
8.0.280.0000.00718.35
8.0.270.0030.00517.23
8.0.260.0090.00017.14
8.0.250.0000.00716.88
8.0.240.0030.00616.92
8.0.230.0070.00016.88
8.0.220.0040.00416.89
8.0.210.0040.00416.96
8.0.200.0000.01117.02
8.0.190.0040.00417.05
8.0.180.0040.00417.01
8.0.170.0040.00416.98
8.0.160.0040.00417.01
8.0.150.0040.00416.91
8.0.140.0000.00816.91
8.0.130.0060.00013.45
8.0.120.0030.00516.91
8.0.110.0040.00416.83
8.0.100.0070.00016.85
8.0.90.0040.00416.78
8.0.80.0060.01317.01
8.0.70.0000.00816.85
8.0.60.0070.00016.95
8.0.50.0080.00016.72
8.0.30.0160.00717.10
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0100.00816.65
7.4.330.0000.00516.67
7.4.320.0030.00316.48
7.4.300.0030.00616.51
7.4.290.0000.00716.48
7.4.280.0030.00616.57
7.4.270.0030.00316.62
7.4.260.0040.00416.58
7.4.250.0030.00516.46
7.4.240.0060.00216.54
7.4.230.0000.00716.40
7.4.220.0120.01316.48
7.4.210.0070.00716.66
7.4.200.0030.00316.68
7.4.160.0130.00316.14
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0080.01116.54
7.4.120.0100.00716.63
7.4.110.0030.01416.56
7.4.100.0140.00716.54
7.4.90.0100.01016.59
7.4.80.0130.00319.39
7.4.70.0130.00316.50
7.4.60.0000.01616.52
7.4.50.0030.01616.43
7.4.40.0110.00816.49
7.4.30.0060.01516.46
7.4.00.0050.01114.89
7.3.330.0020.00313.29
7.3.320.0000.00613.07
7.3.310.0000.00716.33
7.3.300.0040.00416.15
7.3.290.0110.00316.27
7.3.280.0070.01216.31
7.3.270.0100.01317.40
7.3.260.0090.00616.37
7.3.250.0080.00816.34
7.3.240.0050.01416.40
7.3.230.0090.00916.49
7.3.210.0110.00716.44
7.3.200.0060.00919.39
7.3.190.0160.00316.32
7.3.180.0060.00916.31
7.3.170.0120.01216.42
7.3.160.0100.00616.52
7.3.120.0060.01314.62
7.3.110.0030.01414.82
7.3.100.0100.00714.88
7.3.90.0060.00614.91
7.3.80.0030.00814.69
7.3.70.0100.00714.50
7.3.60.0070.00714.64
7.3.50.0030.01314.55
7.3.40.0060.00614.86
7.3.30.0140.00014.84
7.3.20.0030.00716.66
7.3.10.0070.00416.50
7.3.00.0080.00616.68
7.2.330.0070.01216.79
7.2.320.0100.00716.57
7.2.310.0150.00616.70
7.2.300.0100.00616.59
7.2.290.0150.00316.71
7.2.250.0100.01015.02
7.2.240.0070.01015.22
7.2.230.0080.00315.10
7.2.220.0070.01115.00
7.2.210.0030.00715.27
7.2.200.0060.00614.95
7.2.190.0110.00714.70
7.2.180.0040.01514.59
7.2.170.0040.01215.12
7.2.60.0070.00716.61
7.2.00.0090.00319.43
7.1.330.0100.00315.58
7.1.320.0060.00615.54
7.1.310.0000.01315.98
7.1.300.0110.00715.70
7.1.290.0080.00415.61
7.1.280.0030.00615.73
7.1.270.0030.00615.89
7.1.260.0100.00315.95
7.1.200.0030.01015.68
7.1.100.0030.01017.99
7.1.70.0080.00017.13
7.1.60.0030.01219.27
7.1.50.0040.00716.86
7.1.00.0070.07322.36
7.0.200.0030.00616.82
7.0.60.0370.06019.93
7.0.50.0100.07317.89
7.0.40.0100.08320.11
7.0.30.0170.04720.17
7.0.20.0170.04020.26
7.0.10.0070.04720.20
7.0.00.0000.09020.22
5.6.280.0030.03021.08
5.6.210.0230.05720.68
5.6.200.0130.07718.29
5.6.190.0100.08320.64
5.6.180.0370.06320.61
5.6.170.0200.08320.44
5.6.160.0170.08020.54
5.6.150.0030.04718.24
5.6.140.0100.04718.23
5.6.130.0030.08018.24
5.6.120.0070.08021.03
5.6.110.0100.07721.11
5.6.100.0070.08321.01
5.6.90.0100.06320.88
5.6.80.0070.07320.50
5.5.350.0170.06720.45
5.5.340.0030.03717.93
5.5.330.0100.08020.21
5.5.320.0370.04720.32
5.5.310.0170.04720.27
5.5.300.0070.08017.99
5.5.290.0100.06317.94
5.5.280.0070.04720.90
5.5.270.0100.08020.77
5.5.260.0130.08320.87
5.5.250.0030.04320.69
5.5.240.0100.03020.19

preferences:
62.7 ms | 401 KiB | 5 Q