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 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.0040.01116.75
8.3.50.0070.00716.25
8.3.40.0040.01118.47
8.3.30.0070.00718.69
8.3.20.0040.00420.33
8.3.10.0060.00323.53
8.3.00.0040.00423.48
8.2.180.0140.00718.48
8.2.170.0110.00422.96
8.2.160.0060.00920.39
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00019.70
8.2.120.0070.00026.35
8.2.110.0000.01022.11
8.2.100.0000.01217.79
8.2.90.0040.00417.91
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0000.00717.80
8.2.50.0000.00818.07
8.2.40.0000.00720.50
8.2.30.0050.00220.50
8.2.20.0020.00517.53
8.2.10.0000.00718.00
8.2.00.0040.00418.04
8.1.280.0150.00625.92
8.1.270.0080.00023.84
8.1.260.0100.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00322.02
8.1.230.0090.00320.77
8.1.220.0040.00417.74
8.1.210.0080.00418.77
8.1.200.0040.00417.25
8.1.190.0080.00017.23
8.1.180.0090.00018.10
8.1.170.0050.00318.49
8.1.160.0000.00720.70
8.1.150.0000.00718.89
8.1.140.0030.00519.48
8.1.130.0030.00317.55
8.1.120.0000.00717.42
8.1.110.0040.00417.43
8.1.100.0070.00017.30
8.1.90.0050.00217.43
8.1.80.0000.00817.30
8.1.70.0040.00417.43
8.1.60.0040.00417.55
8.1.50.0030.00617.49
8.1.40.0080.00017.45
8.1.30.0040.00417.49
8.1.20.0040.00417.40
8.1.10.0000.00917.35
8.1.00.0040.00417.43
8.0.300.0000.00720.14
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00517.13
8.0.260.0000.00817.16
8.0.250.0000.00817.02
8.0.240.0070.00017.04
8.0.230.0000.00716.99
8.0.220.0080.00016.81
8.0.210.0040.00416.89
8.0.200.0000.00716.97
8.0.190.0040.00416.86
8.0.180.0040.00416.83
8.0.170.0050.00216.91
8.0.160.0030.00516.82
8.0.150.0070.00016.87
8.0.140.0040.00416.89
8.0.130.0000.00613.32
8.0.120.0000.00816.75
8.0.110.0040.00417.02
8.0.100.0040.00416.96
8.0.90.0040.00416.95
8.0.80.0060.00916.84
8.0.70.0040.00416.98
8.0.60.0000.00716.83
8.0.50.0050.00316.80
8.0.30.0120.00717.18
8.0.20.0070.01117.40
8.0.10.0000.00816.95
8.0.00.0150.00516.73
7.4.330.0000.00516.67
7.4.320.0040.00416.45
7.4.300.0040.00416.53
7.4.290.0040.00416.44
7.4.280.0060.00316.43
7.4.270.0080.00016.46
7.4.260.0090.00016.40
7.4.250.0030.00516.36
7.4.240.0040.00316.45
7.4.230.0040.00416.34
7.4.220.0070.01116.49
7.4.210.0070.00716.54
7.4.200.0000.00816.65
7.4.160.0080.00816.54
7.4.150.0130.00317.40
7.4.140.0140.00717.86
7.4.130.0110.00816.50
7.4.120.0070.01116.34
7.4.110.0200.00716.41
7.4.100.0120.00616.70
7.4.90.0140.00316.52
7.4.80.0040.01419.39
7.4.70.0060.01016.34
7.4.60.0100.00716.33
7.4.50.0110.00716.41
7.4.40.0100.00616.46
7.4.30.0120.00616.41
7.4.10.0130.00314.89
7.4.00.0050.01214.98
7.3.330.0020.00413.27
7.3.320.0030.00313.17
7.3.310.0000.00716.39
7.3.300.0000.00616.18
7.3.290.0080.00816.25
7.3.280.0060.01116.32
7.3.270.0140.00317.40
7.3.260.0050.01316.27
7.3.240.0110.00816.51
7.3.230.0060.01216.52
7.3.210.0090.00916.55
7.3.200.0130.00319.39
7.3.190.0070.01616.38
7.3.180.0050.01016.55
7.3.170.0090.01216.28
7.3.160.0060.00916.45
7.3.130.0040.00814.93
7.3.120.0090.00614.76
7.3.110.0110.00614.64
7.3.100.0070.00314.51
7.3.90.0090.00314.43
7.3.80.0030.00914.65
7.3.70.0000.00814.80
7.3.60.0070.00314.84
7.3.50.0000.00814.72
7.3.40.0060.00614.59
7.3.30.0060.00814.78
7.3.20.0070.00316.68
7.3.10.0040.01216.75
7.3.00.0000.01716.67
7.2.330.0090.01216.58
7.2.320.0100.00716.76
7.2.310.0100.00716.66
7.2.300.0090.01216.56
7.2.290.0060.01016.34
7.2.260.0130.00715.07
7.2.250.0040.01515.03
7.2.240.0070.00714.86
7.2.230.0110.00714.82
7.2.220.0100.00614.92
7.2.210.0090.00614.88
7.2.200.0100.00714.79
7.2.190.0060.00615.02
7.2.180.0090.00014.68
7.2.170.0000.01514.90
7.2.160.0040.00414.85
7.2.150.0040.00416.52
7.2.140.0060.01016.75
7.2.130.0000.01416.77
7.2.120.0000.01416.64
7.2.110.0110.00416.56
7.2.100.0040.01116.50
7.2.90.0130.00317.04
7.2.80.0120.00316.73
7.2.70.0070.00716.63
7.2.60.0060.00916.68
7.2.50.0030.01016.92
7.2.40.0100.00716.69
7.2.30.0040.01116.55
7.2.20.0030.00916.76
7.2.10.0070.00416.87
7.2.00.0050.00718.06
7.1.330.0090.00615.65
7.1.320.0000.00915.36
7.1.310.0110.00315.70
7.1.300.0040.00415.54
7.1.290.0090.00015.61
7.1.280.0000.00815.41
7.1.270.0080.00415.66
7.1.260.0030.01015.80
7.1.250.0030.01015.86
7.1.240.0000.01215.62
7.1.230.0030.01015.69
7.1.220.0070.00715.61
7.1.210.0100.00615.66
7.1.200.0060.00515.71
7.1.190.0030.01015.61
7.1.180.0100.00615.71
7.1.170.0000.01015.62
7.1.160.0090.00015.40
7.1.150.0030.00815.43
7.1.140.0030.00615.73
7.1.130.0090.00015.28
7.1.120.0000.00815.68
7.1.110.0080.00815.75
7.1.100.0050.00916.88
7.1.90.0000.01315.41
7.1.80.0090.00615.65
7.1.70.0070.00416.41
7.1.60.0100.00617.55
7.1.50.0050.00925.12
7.1.40.0090.00315.61
7.1.30.0070.00715.48
7.1.20.0050.00915.70
7.1.10.0060.00615.69
7.1.00.0040.04118.87
7.0.330.0030.01015.30
7.0.320.0090.00615.14
7.0.310.0030.01015.35
7.0.300.0070.00415.36
7.0.290.0030.01415.04
7.0.280.0030.00915.38
7.0.270.0100.00315.39
7.0.260.0140.00015.30
7.0.250.0040.00715.37
7.0.240.0040.00815.25
7.0.230.0030.01015.03
7.0.220.0080.00415.29
7.0.210.0070.00715.40
7.0.200.0060.00515.88
7.0.190.0060.00615.09
7.0.180.0000.01415.11
7.0.170.0060.00315.14
7.0.160.0040.00415.05
7.0.150.0040.00815.21
7.0.140.0000.01415.31
7.0.130.0030.01015.28
7.0.120.0090.00415.12
7.0.110.0060.01015.30
7.0.100.0000.01615.38
7.0.90.0030.00615.36
7.0.80.0000.01215.42
7.0.70.0060.00615.45
7.0.60.0050.04518.45
7.0.50.0050.02316.66
7.0.40.0020.05016.87
7.0.30.0180.04016.79
7.0.20.0200.02816.75
7.0.10.0030.04016.84
7.0.00.0070.02316.83
5.6.400.0060.00313.80
5.6.390.0070.00714.37
5.6.380.0110.00414.33
5.6.370.0030.01414.40
5.6.360.0000.01414.56
5.6.350.0000.00914.36
5.6.340.0030.00914.60
5.6.330.0030.00714.44
5.6.320.0070.00414.13
5.6.310.0030.01014.56
5.6.300.0040.00814.48
5.6.290.0070.01014.41
5.6.280.0040.04317.52
5.6.270.0090.00614.34
5.6.260.0100.00714.15
5.6.250.0060.01214.27
5.6.240.0090.00314.05
5.6.230.0000.01314.25
5.6.220.0060.00614.14
5.6.210.0050.04317.29
5.6.200.0060.02316.29
5.6.190.0080.03817.30
5.6.180.0230.04317.26
5.6.170.0210.04017.37
5.6.160.0070.04717.29
5.6.150.0060.02816.17
5.6.140.0110.04116.23
5.6.130.0080.04716.29
5.6.120.0130.03817.60
5.6.110.0050.04517.51
5.6.100.0030.04917.60
5.6.90.0100.04617.63
5.6.80.0050.04817.26
5.6.70.0000.01714.11
5.6.60.0090.00614.22
5.6.50.0030.00914.38
5.6.40.0070.00314.17
5.6.30.0060.00914.48
5.6.20.0040.00713.98
5.6.10.0070.00714.09
5.6.00.0070.00714.22
5.5.380.0030.01014.18
5.5.370.0040.01114.20
5.5.360.0030.00914.57
5.5.350.0070.03717.20
5.5.340.0080.04216.01
5.5.330.0070.02517.30
5.5.320.0150.03317.34
5.5.310.0150.02617.27
5.5.300.0080.04016.10
5.5.290.0070.02716.15
5.5.280.0080.03517.39
5.5.270.0050.02717.61
5.5.260.0070.04617.49
5.5.250.0130.03517.34
5.5.240.0080.03517.35
5.5.230.0030.00813.97
5.5.220.0110.00614.20
5.5.210.0100.00714.19
5.5.200.0080.00514.28
5.5.190.0040.01214.23
5.5.180.0060.00913.98
5.5.170.0000.01313.96
5.5.160.0040.01114.08
5.5.150.0060.00914.01
5.5.140.0070.00713.93
5.5.130.0030.01214.29
5.5.120.0090.00314.18
5.5.110.0000.01714.30
5.5.100.0070.00714.12
5.5.90.0060.00614.14
5.5.80.0060.00613.72
5.5.70.0070.00714.29
5.5.60.0040.01113.95
5.5.50.0080.00414.14
5.5.40.0060.01014.22
5.5.30.0060.01214.13
5.5.20.0060.01214.13
5.5.10.0030.01014.20
5.5.00.0060.01214.24

preferences:
48.55 ms | 400 KiB | 5 Q