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() { return TRUE; } 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.40.0090.00618.76
8.3.30.0150.00018.52
8.3.20.0000.00820.30
8.3.10.0040.00423.50
8.3.00.0040.00421.73
8.2.170.0140.00022.96
8.2.160.0070.00720.32
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00820.86
8.2.120.0000.00826.35
8.2.110.0060.00320.39
8.2.100.0110.00017.72
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0030.00618.09
8.2.40.0040.00422.28
8.2.30.0040.00419.43
8.2.20.0000.00817.63
8.2.10.0000.00717.92
8.2.00.0040.00417.87
8.1.270.0060.01222.10
8.1.260.0060.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00723.91
8.1.230.0120.00021.04
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0050.00318.48
8.1.160.0070.00020.75
8.1.150.0000.00718.71
8.1.140.0030.00519.39
8.1.130.0070.00317.56
8.1.120.0000.00717.46
8.1.110.0040.00417.42
8.1.100.0060.00317.39
8.1.90.0030.00617.29
8.1.80.0000.00717.30
8.1.70.0030.00317.45
8.1.60.0040.00417.43
8.1.50.0000.00817.45
8.1.40.0000.00817.46
8.1.30.0000.00917.56
8.1.20.0050.00317.52
8.1.10.0080.00017.41
8.1.00.0040.00417.41
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0000.00817.21
8.0.260.0030.00317.16
8.0.250.0040.00416.93
8.0.240.0040.00416.96
8.0.230.0000.00817.02
8.0.220.0030.00616.97
8.0.210.0000.00716.91
8.0.200.0060.00316.99
8.0.190.0000.01216.92
8.0.180.0040.00416.91
8.0.170.0040.00417.00
8.0.160.0070.00017.03
8.0.150.0040.00416.87
8.0.140.0070.00016.82
8.0.130.0030.00313.45
8.0.120.0000.00816.91
8.0.110.0070.00016.83
8.0.100.0040.00416.93
8.0.90.0040.00416.82
8.0.80.0070.01416.94
8.0.70.0080.00016.80
8.0.60.0000.00716.91
8.0.50.0050.00316.89
8.0.30.0120.00917.10
8.0.20.0070.01117.40
8.0.10.0000.00817.10
8.0.00.0090.00816.66
7.4.330.0050.00016.82
7.4.320.0030.00316.51
7.4.300.0030.00316.43
7.4.290.0000.00716.57
7.4.280.0040.00416.43
7.4.270.0000.00716.49
7.4.260.0060.00316.53
7.4.250.0000.00816.49
7.4.240.0050.00316.51
7.4.230.0000.00716.64
7.4.220.0100.00716.47
7.4.210.0090.00816.49
7.4.200.0030.00316.45
7.4.160.0000.01616.28
7.4.150.0090.01317.40
7.4.140.0090.01117.86
7.4.130.0080.01116.43
7.4.120.0080.00916.42
7.4.110.0070.01016.55
7.4.100.0110.00616.63
7.4.90.0100.01016.32
7.4.80.0080.00819.39
7.4.70.0100.00716.36
7.4.60.0130.00716.30
7.4.50.0000.01816.50
7.4.40.0080.01616.49
7.4.30.0200.00016.50
7.4.00.0060.00914.80
7.3.330.0040.00413.08
7.3.320.0030.00313.14
7.3.310.0050.00216.17
7.3.300.0060.00016.37
7.3.290.0000.00716.19
7.3.280.0060.01216.28
7.3.270.0210.00317.40
7.3.260.0060.01216.47
7.3.250.0120.00616.42
7.3.240.0110.00616.28
7.3.230.0130.00816.39
7.3.210.0100.00616.44
7.3.200.0030.01419.39
7.3.190.0130.01016.46
7.3.180.0090.00916.41
7.3.170.0070.01416.27
7.3.160.0040.01216.39
7.2.330.0080.00816.65
7.2.320.0030.01316.61
7.2.310.0070.01016.43
7.2.300.0070.01416.48
7.2.290.0100.00716.43
7.2.60.0070.01016.77
7.2.00.0000.01319.08
7.1.200.0070.00315.84
7.1.100.0030.00718.03
7.1.70.0000.00816.89
7.1.60.0060.01519.40
7.1.50.0030.01716.89
7.1.00.0070.07322.48
7.0.200.1850.01014.82
7.0.100.0100.04720.01
7.0.90.0100.08319.87
7.0.80.0130.06720.05
7.0.70.0070.08719.87
7.0.60.0170.08019.80
7.0.50.0130.07020.37
7.0.40.0100.07019.95
7.0.30.0130.08020.00
7.0.20.0070.08320.17
7.0.10.0070.07320.12
7.0.00.0100.08719.95
5.6.280.0100.06720.87
5.6.250.0100.08320.53
5.6.240.0100.06320.64
5.6.230.0100.07720.60
5.6.220.0100.07020.59
5.6.210.0130.07720.47
5.6.200.0100.08321.12
5.6.190.0100.07720.95
5.6.180.0030.05720.97
5.6.170.0070.04321.05
5.6.160.0030.05321.11
5.6.150.0070.08321.04
5.6.140.0100.07721.03
5.6.130.0030.07021.05
5.6.120.0130.08021.08
5.6.110.0100.05721.07
5.6.100.0100.08021.04
5.6.90.0200.07021.06
5.6.80.0070.07020.42
5.6.70.0100.07320.43
5.6.60.0070.08320.44
5.6.50.0030.09020.35
5.6.40.0130.07320.41
5.6.30.0130.05720.47
5.6.20.0000.08320.39
5.6.10.0070.08720.31
5.6.00.0030.05020.36
5.5.380.0200.06320.55
5.5.370.0130.07320.38
5.5.360.0070.05020.36
5.5.350.0030.08020.38
5.5.340.0130.08020.65
5.5.330.0030.08020.91
5.5.320.0070.08320.89
5.5.310.0100.04320.64
5.5.300.0100.08320.78
5.5.290.0030.09020.92
5.5.280.0100.04720.95
5.5.270.0100.07320.79
5.5.260.0100.08020.89
5.5.250.0100.07720.65
5.5.240.0100.07320.17
5.5.230.0070.07720.02
5.5.220.0070.06020.02
5.5.210.0070.04720.25
5.5.200.0070.07720.23
5.5.190.0130.07320.23
5.5.180.0030.07320.28
5.5.160.0100.07720.24
5.5.150.0070.08320.26
5.5.140.0130.07720.08
5.5.130.0070.08320.24
5.5.120.0030.07720.18
5.5.110.0070.08320.27
5.5.100.0230.06320.02
5.5.90.0070.07320.04
5.5.80.0130.06720.08
5.5.70.0270.06320.07
5.5.60.0200.03320.12
5.5.50.0030.05720.16
5.5.40.0100.07320.00
5.5.30.0130.07320.00
5.5.20.0130.05720.15
5.5.10.0030.04720.11
5.5.00.0070.07020.12

preferences:
52.97 ms | 400 KiB | 5 Q