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 true; } function write($id, $data) { return true; } function destroy($id) { return true; } function gc($maxlifetime) { return test; } } 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.70.0130.00618.68
8.3.60.0110.00416.74
8.3.50.0140.00821.12
8.3.40.0110.00418.52
8.3.30.0150.00018.71
8.3.20.0080.00020.21
8.3.10.0030.00523.56
8.3.00.0030.00623.66
8.2.190.0160.00616.63
8.2.180.0070.00716.88
8.2.170.0070.01122.96
8.2.160.0030.01020.35
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0000.00919.23
8.1.280.0110.00725.92
8.1.270.0040.00423.61
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00419.13
7.4.10.0130.01015.65
7.4.00.0110.00415.36
7.3.130.0120.00715.58
7.3.120.0120.01015.54
7.3.110.0130.01015.64
7.3.100.0100.01015.51
7.3.90.0110.00915.41
7.3.80.0120.00915.40
7.3.70.0210.00515.52
7.3.60.0130.01115.47
7.3.50.0150.00915.48
7.3.40.0120.01215.43
7.3.30.0130.00815.43
7.3.20.0430.01116.41
7.3.10.0300.00916.44
7.3.00.0240.00816.60
7.2.260.0110.01115.56
7.2.250.0140.00915.76
7.2.240.0160.00815.76
7.2.230.0070.01615.66
7.2.220.0080.01515.63
7.2.210.0130.01315.70
7.2.200.0200.00815.71
7.2.190.0150.01415.80
7.2.180.0110.01015.70
7.2.170.0160.00915.50
7.2.160.0060.01415.73
7.2.150.0310.00714.53
7.2.140.0340.01216.72
7.2.130.0200.00516.68
7.2.120.0090.01116.68
7.2.110.0060.01016.58
7.2.100.0210.01116.68
7.2.90.0190.00715.29
7.2.80.0210.00715.60
7.2.70.0250.00715.30
7.2.60.0110.00915.67
7.2.50.0650.00715.31
7.2.40.0240.00815.20
7.2.30.0150.00715.49
7.2.20.0250.01016.65
7.2.10.0260.00515.39
7.2.00.0250.01017.22
7.1.330.0450.01015.61
7.1.320.0350.01015.62
7.1.310.0290.01015.59
7.1.300.0680.00915.54
7.1.290.0370.00815.55
7.1.280.0260.00715.69
7.1.270.0390.00915.57
7.1.260.0150.00815.63
7.1.250.0270.00515.56
7.1.240.0350.00815.44
7.1.230.0390.00815.53
7.1.220.0190.00815.55
7.1.210.0320.00615.56
7.1.200.0180.00814.66
7.1.190.0360.00214.02
7.1.180.0360.00814.01
7.1.170.0200.00214.14
7.1.160.0120.00915.53
7.1.150.0230.00813.98
7.1.140.0360.00713.96
7.1.130.0220.00514.20
7.1.120.0230.01215.37
7.1.110.0230.00714.17
7.1.100.0250.01016.21
7.1.90.0410.00515.56
7.1.80.0140.00615.40
7.1.70.0130.00715.84
7.1.60.0120.00816.67
7.1.50.0280.00920.93
7.1.40.0340.00414.12
7.1.30.0560.01015.46
7.1.20.0060.00614.14
7.1.10.0400.00614.06
7.1.00.0320.02816.89
7.0.330.0380.01015.20
7.0.320.0140.00915.18
7.0.310.0330.00313.85
7.0.300.0130.00815.10
7.0.290.0380.00915.13
7.0.280.0230.00915.05
7.0.270.0230.00815.29
7.0.260.0320.01115.36
7.0.250.0310.01115.25
7.0.240.0130.01013.89
7.0.230.0180.00815.39
7.0.220.0200.01015.24
7.0.210.0380.00915.15
7.0.200.0240.00815.76
7.0.190.0130.00715.10
7.0.180.0080.01115.46
7.0.170.1200.00715.21
7.0.160.0390.00715.36
7.0.150.0100.00513.96
7.0.140.0320.00813.84
7.0.130.0360.00514.03
7.0.120.0310.00613.82
7.0.110.0270.01115.35
7.0.100.0180.00713.86
7.0.90.0330.00715.33
7.0.80.0210.00615.19
7.0.70.0530.00615.21
7.0.60.0310.03217.39
7.0.50.0290.02316.13
7.0.40.0080.03516.16
7.0.30.0230.02416.17
7.0.20.0160.03016.13
7.0.10.0120.03115.41
7.0.00.0060.02116.19
5.6.400.0120.01214.83
5.6.390.0160.00515.19
5.6.380.0110.01115.06
5.6.370.0150.01014.88
5.6.360.0120.01314.96
5.6.350.0180.00514.88
5.6.340.0100.00213.35
5.6.330.0060.00513.22
5.6.320.0080.00413.30
5.6.310.0110.00613.34
5.6.300.0120.00413.35
5.6.290.0110.01115.11
5.6.280.0160.00915.01
5.6.270.0190.00815.13
5.6.260.0100.00914.45
5.6.250.0140.00815.08
5.6.240.0140.00615.17
5.6.230.0100.01115.07
5.6.220.0120.01015.09
5.6.210.0140.01716.93
5.6.200.0130.03416.21
5.6.190.0110.02916.90
5.6.180.0200.02616.85
5.6.170.0150.03016.74
5.6.160.0080.02716.89
5.6.150.0080.03216.22
5.6.140.0080.02316.00
5.6.130.0110.02115.99
5.6.120.0120.02616.95
5.6.110.0120.02917.01
5.6.100.0130.02417.02
5.6.90.0090.02617.03
5.6.80.0080.03616.73
5.6.70.0150.00515.03
5.6.60.0080.01114.93
5.6.50.0140.00514.76
5.6.40.0100.01015.03
5.6.30.0100.00714.80
5.6.20.0070.01014.89
5.6.10.0070.00913.24
5.6.00.0100.01215.13
5.5.380.0160.01014.96
5.5.370.0100.01214.84
5.5.360.0110.00813.52
5.5.350.0110.03316.72
5.5.340.0070.02916.06
5.5.330.0130.02116.84
5.5.320.0230.02916.84
5.5.310.0180.03116.77
5.5.300.0130.02316.00
5.5.290.0100.02115.92
5.5.280.0060.03416.95
5.5.270.0090.01716.87
5.5.260.0090.02416.88
5.5.250.0080.03416.71
5.5.240.0100.03216.76
5.5.230.0100.01014.84
5.5.220.0110.00814.82
5.5.210.0080.01114.92
5.5.200.0140.00214.95
5.5.190.0080.01015.04
5.5.180.0080.00815.00
5.5.170.0080.00914.97
5.5.160.0110.00814.93
5.5.150.0140.00614.95
5.5.140.0070.01114.96
5.5.130.0080.00814.93
5.5.120.0100.00515.07
5.5.110.0090.01014.89
5.5.100.0110.00714.79
5.5.90.0060.00914.82
5.5.80.0100.00614.76
5.5.70.0130.00515.10
5.5.60.0090.00914.88
5.5.50.0100.00914.63
5.5.40.0090.00814.80
5.5.30.0110.00714.99
5.5.20.0060.01114.79
5.5.10.0090.00914.76
5.5.00.0070.00814.94

preferences:
31.61 ms | 401 KiB | 5 Q