3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Handler implements SessionHandlerInterface { private $savePath; public function open($savePath, $sessionName) { return true; } public function close() { return true; } public function read($id) { return null; // Error: Should return an empty string if no record is found } public function write($id, $data) { return true; } public function destroy($id) { return true; } public function gc($maxlifetime) { return true; } } session_set_save_handler(new Handler()); 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.0150.00018.43
8.3.50.0170.00317.85
8.3.40.0110.00418.84
8.3.30.0100.00618.68
8.3.20.0080.00018.65
8.3.10.0080.00023.66
8.3.00.0040.00422.36
8.2.180.0170.00318.29
8.2.170.0030.01022.96
8.2.160.0110.00320.91
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00022.11
8.2.120.0000.00826.35
8.2.110.0100.00020.91
8.2.100.0120.00017.91
8.2.90.0030.00517.92
8.2.80.0030.00617.97
8.2.70.0050.00317.80
8.2.60.0050.00218.09
8.2.50.0040.00418.10
8.2.40.0030.00521.02
8.2.30.0040.00420.68
8.2.20.0040.00417.93
8.2.10.0050.00217.86
8.2.00.0030.00319.36
8.1.280.0140.00025.92
8.1.270.0110.00422.14
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00318.94
8.1.230.0090.00318.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.10
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.90
8.1.160.0050.00318.83
8.1.150.0040.00418.70
8.1.140.0050.00318.98
8.1.130.0070.00018.92
8.1.120.0040.00417.39
8.1.110.0050.00217.29
8.1.100.0100.00017.21
8.1.90.0000.00717.37
8.1.80.0040.00417.41
8.1.70.0080.00017.33
8.1.60.0040.00417.39
8.1.50.0050.00217.41
8.1.40.0030.00917.48
8.1.30.0080.00017.57
8.1.20.0000.00817.58
8.1.10.0040.00417.35
8.1.00.0070.00017.41
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0030.00317.15
8.0.260.0000.00718.57
8.0.250.0030.00316.91
8.0.240.0060.00017.06
8.0.230.0050.00216.83
8.0.220.0050.00316.91
8.0.210.0000.00716.84
8.0.200.0000.00616.96
8.0.190.0050.00316.96
8.0.180.0030.00516.80
8.0.170.0060.00316.94
8.0.160.0030.00316.93
8.0.150.0000.00716.77
8.0.140.0030.00316.81
8.0.130.0000.00613.31
8.0.120.0000.00716.76
8.0.110.0040.00416.79
8.0.100.0050.00216.68
8.0.90.0000.00816.84
8.0.80.0100.00516.82
8.0.70.0070.00016.79
8.0.60.0040.00416.67
8.0.50.0020.00516.83
8.0.30.0080.00917.09
8.0.20.0100.01017.40
8.0.10.0000.00816.89
8.0.00.0090.00916.79
7.4.330.0020.00215.55
7.4.320.0040.00416.54
7.4.300.0000.00616.33
7.4.290.0070.00016.54
7.4.280.0080.00016.34
7.4.270.0070.00016.46
7.4.260.0030.00316.44
7.4.250.0050.00316.50
7.4.240.0030.00616.45
7.4.230.0030.00316.48
7.4.220.0030.00616.48
7.4.210.0060.01216.56
7.4.200.0070.00016.56
7.4.160.0080.00716.50
7.4.140.0090.01117.86
7.4.130.0090.00916.61
7.4.120.0110.00816.58
7.4.110.0080.00816.36
7.4.100.0150.00316.63
7.4.90.0090.01516.69
7.4.80.0130.00319.39
7.4.70.0170.00616.45
7.4.60.0100.01316.54
7.4.50.0000.01616.50
7.4.40.0120.00816.35
7.4.00.0070.00714.46
7.3.330.0060.00013.13
7.3.320.0030.00313.30
7.3.310.0000.00716.15
7.3.300.0000.00716.34
7.3.290.0090.00616.30
7.3.280.0050.01216.32
7.3.260.0140.00616.37
7.3.240.0120.00916.35
7.3.230.0100.00716.48
7.3.210.0140.00316.43
7.3.200.0100.01316.27
7.3.190.0130.00316.33
7.3.180.0130.00316.44
7.3.170.0060.00916.28
7.3.160.0160.00316.28
7.3.10.0110.00416.18
7.3.00.0060.00916.60
7.2.330.0070.01416.59
7.2.320.0090.00916.54
7.2.310.0110.00716.54
7.2.300.0090.00916.34
7.2.290.0170.00616.67
7.2.130.0030.01016.90
7.2.120.0060.00316.84
7.2.110.0070.00716.71
7.2.100.0090.00016.46
7.2.90.0070.00716.89
7.2.80.0350.00715.42
7.2.70.0390.00615.71
7.2.60.0340.01215.74
7.2.50.0390.00915.83
7.2.40.0590.00915.73
7.2.30.0500.00515.71
7.2.20.0430.01415.62
7.2.10.0570.00815.88
7.2.00.0470.00715.81
7.1.250.0030.00615.61
7.1.200.0740.01013.72
7.1.190.0750.00313.65
7.1.180.0960.00013.86
7.1.170.0660.00713.73
7.1.160.0880.01213.63
7.1.150.1360.00613.43
7.1.140.0850.00713.84
7.1.130.1210.00313.54
7.1.120.1280.01613.80
7.1.110.0990.00313.54
7.1.100.1010.01013.60
7.1.90.0960.00613.80
7.1.80.0910.00713.54
7.1.70.0910.00313.80
7.1.60.1010.01031.68
7.1.50.1120.00731.84
7.1.40.1440.01031.42
7.1.30.1540.00731.88
7.1.20.1260.00331.68
7.1.10.1000.00713.65
7.1.00.1210.00713.66

preferences:
37.64 ms | 400 KiB | 5 Q