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() { } function read($id) { return ''; } 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)
8.3.60.0120.00618.43
8.3.50.0090.01221.14
8.3.40.0150.00018.76
8.3.30.0090.00618.71
8.3.20.0040.00420.18
8.3.10.0020.00523.48
8.3.00.0070.00021.73
8.2.180.0100.01016.48
8.2.170.0120.00322.96
8.2.160.0090.00620.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00520.80
8.2.120.0040.00426.35
8.2.110.0070.00319.17
8.2.100.0110.00018.04
8.2.90.0000.00819.25
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0030.00618.09
8.2.40.0040.00422.20
8.2.30.0050.00219.27
8.2.20.0050.00317.65
8.2.10.0070.00017.98
8.2.00.0070.00017.95
8.1.280.0120.00325.92
8.1.270.0150.00321.96
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0090.00022.58
8.1.230.0080.00317.83
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0080.00018.36
8.1.160.0040.00420.64
8.1.150.0050.00218.68
8.1.140.0040.00419.45
8.1.130.0090.00017.55
8.1.120.0000.00717.37
8.1.110.0000.00717.41
8.1.100.0050.00217.40
8.1.90.0050.00217.29
8.1.80.0000.00717.30
8.1.70.0030.00317.38
8.1.60.0000.00817.52
8.1.50.0000.00817.43
8.1.40.0050.00317.35
8.1.30.0040.00417.61
8.1.20.0030.00517.48
8.1.10.0060.00317.48
8.1.00.0030.00617.35
8.0.300.0090.00018.77
8.0.290.0040.00416.88
8.0.280.0050.00318.36
8.0.270.0000.00717.18
8.0.260.0000.00617.31
8.0.250.0000.00617.02
8.0.240.0050.00316.90
8.0.230.0000.00616.93
8.0.220.0000.00816.91
8.0.210.0030.00316.86
8.0.200.0060.00316.99
8.0.190.0120.00017.02
8.0.180.0030.00516.86
8.0.170.0050.00317.04
8.0.160.0000.00716.94
8.0.150.0030.00516.89
8.0.140.0030.00516.95
8.0.130.0030.00313.34
8.0.120.0000.00716.80
8.0.110.0040.00416.88
8.0.100.0040.00416.79
8.0.90.0000.00817.01
8.0.80.0140.00316.92
8.0.70.0040.00416.73
8.0.60.0000.00817.02
8.0.50.0080.00016.90
8.0.30.0070.00916.97
8.0.20.0120.00717.40
8.0.10.0040.00417.04
8.0.00.0080.01116.79
7.4.330.0030.00316.83
7.4.320.0000.00616.58
7.4.300.0040.00416.55
7.4.290.0080.00016.50
7.4.280.0080.00016.54
7.4.270.0030.00316.47
7.4.260.0000.00716.42
7.4.250.0070.00016.38
7.4.240.0030.00316.44
7.4.230.0030.00516.41
7.4.220.0160.00316.57
7.4.210.0100.00516.45
7.4.200.0040.00416.44
7.4.160.0080.00816.39
7.4.150.0030.01417.40
7.4.140.0070.01117.86
7.4.130.0090.00916.50
7.4.120.0080.00816.56
7.4.110.0100.00716.61
7.4.100.0090.00816.53
7.4.90.0140.00316.55
7.4.80.0060.01019.39
7.4.70.0130.00316.41
7.4.60.0170.00016.54
7.4.50.0100.01016.50
7.4.40.0160.00416.63
7.4.30.0120.00616.49
7.4.00.0050.01214.85
7.3.330.0060.00013.30
7.3.320.0060.00013.30
7.3.310.0070.00016.30
7.3.300.0030.00316.30
7.3.290.0000.00716.29
7.3.280.0050.01216.32
7.3.270.0030.01517.40
7.3.260.0100.00916.31
7.3.250.0100.00716.22
7.3.240.0110.00816.41
7.3.230.0150.00316.42
7.3.210.0100.00716.44
7.3.200.0100.01016.59
7.3.190.0120.00416.32
7.3.180.0130.00316.50
7.3.170.0080.00816.43
7.3.160.0080.00916.36
7.3.120.0100.01014.79
7.3.110.0100.00714.73
7.3.100.0000.01514.75
7.3.90.0040.00414.53
7.3.80.0060.01214.89
7.3.70.0080.00814.82
7.3.60.0110.00014.79
7.3.50.0060.00914.77
7.3.40.0070.00714.47
7.3.30.0030.00914.81
7.3.20.0090.00316.39
7.3.10.0080.00516.63
7.3.00.0090.00516.56
7.2.330.0090.00816.66
7.2.320.0030.01316.37
7.2.310.0060.01016.41
7.2.300.0080.00816.63
7.2.290.0050.01116.64
7.2.250.0100.01014.98
7.2.240.0000.01714.97
7.2.230.0040.01214.84
7.2.220.0100.00314.53
7.2.210.0000.01115.12
7.2.200.0030.00615.06
7.2.190.0070.00714.83
7.2.180.0100.00014.86
7.2.170.0060.00615.05
7.2.130.0070.00416.81
7.2.120.0070.01016.95
7.2.110.0090.00316.86
7.2.100.0070.00716.88
7.2.90.0060.00916.62
7.2.80.0030.01016.80
7.2.70.0000.01517.03
7.2.60.0050.01016.75
7.2.50.0140.00316.50
7.2.40.0110.00316.97
7.2.30.0110.00417.03
7.2.20.0070.01016.73
7.2.10.0030.01416.93
7.2.00.0090.00617.96
7.1.330.0060.00915.81
7.1.320.0070.01115.70
7.1.310.0030.00715.79
7.1.300.0000.01315.67
7.1.290.0030.00615.69
7.1.280.0070.00715.50
7.1.270.0000.01515.68
7.1.260.0060.01015.78
7.1.250.0000.01115.71
7.1.200.0100.00315.74
7.1.100.0030.00618.29
7.1.70.0060.00616.80
7.1.60.0090.01619.40
7.1.50.0040.00816.84
7.1.00.0070.07322.31
7.0.200.0270.00814.44
7.0.60.1230.06719.94
7.0.50.0030.08717.80
7.0.40.0000.04720.14
7.0.30.0370.05020.21
7.0.20.0370.07020.13
7.0.10.0130.06320.15
7.0.00.0000.04720.09
5.6.280.0000.04021.02
5.6.210.0130.03020.73
5.6.200.0070.03718.12
5.6.190.0070.05720.42
5.6.180.0270.03720.42
5.6.170.0300.06720.56
5.6.160.0030.06720.71
5.6.150.0100.07318.29
5.6.140.0000.06318.17
5.6.130.0070.08318.15
5.6.120.0170.07321.13
5.6.110.0100.08321.15
5.6.100.0070.08721.11
5.6.90.0070.05720.98
5.6.80.0000.04720.52
5.5.350.0170.08020.41
5.5.340.0070.05717.96
5.5.330.0030.06020.28
5.5.320.0170.08720.22
5.5.310.0400.06720.19
5.5.300.0030.05318.01
5.5.290.0130.05718.07
5.5.280.0070.08020.97
5.5.270.0030.04320.73
5.5.260.0100.08320.87
5.5.250.0070.08020.69
5.5.240.0130.08020.19

preferences:
65.89 ms | 401 KiB | 5 Q