3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (empty($_SESSION)) session_start(); if (empty($_SESSION['lastAccess'])) $_SESSION['lastAccess'] = time(); else { $_SESSION['lastAccess'] -= time(); } if ($_SESSION['lastAccess'] < time()+5) { session_destroy(); echo('session timeout'); }

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)
7.4.10.0040.01215.13
7.4.00.0070.00714.91
7.3.130.0060.01215.09
7.3.120.0070.00714.87
7.3.110.0030.01214.74
7.3.100.0070.00714.69
7.3.90.0030.01315.09
7.3.80.0120.00414.93
7.3.70.0090.00614.95
7.3.60.0060.01014.91
7.3.50.0070.01014.96
7.3.40.0100.00014.75
7.3.30.0120.00014.61
7.3.20.0060.00616.68
7.3.10.0070.01116.85
7.3.00.0000.01016.46
7.2.260.0100.00715.36
7.2.250.0070.01015.33
7.2.240.0110.00414.68
7.2.230.0040.01114.85
7.2.220.0000.01114.97
7.2.210.0040.01115.14
7.2.200.0060.00914.81
7.2.190.0090.00614.99
7.2.180.0070.00715.16
7.2.170.0100.00315.04
7.2.160.0060.00614.88
7.2.150.0090.00617.02
7.2.140.0100.01016.95
7.2.130.0070.01016.78
7.2.120.0030.01217.05
7.2.110.0100.00616.77
7.2.100.0060.00817.09
7.2.90.0030.01317.04
7.2.80.0150.00016.79
7.2.70.0120.00317.04
7.2.60.0070.01116.81
7.2.50.0030.01416.96
7.2.40.0070.00717.19
7.2.30.0090.00616.80
7.2.20.0000.01116.71
7.2.10.0060.00916.80
7.2.00.0060.00818.10
7.1.330.0040.01115.93
7.1.320.0040.01215.84
7.1.310.0060.00315.83
7.1.300.0070.00715.71
7.1.290.0040.00815.68
7.1.280.0040.00416.01
7.1.270.0030.01015.54
7.1.260.0110.00615.73
7.1.250.0060.00815.48
7.1.240.0000.01815.79
7.1.230.0060.01015.77
7.1.220.0060.00915.82
7.1.210.0000.01715.57
7.1.200.0030.00915.88
7.1.190.0110.00316.04
7.1.180.0120.00415.93
7.1.170.0080.00815.84
7.1.160.0110.00415.69
7.1.150.0000.01315.77
7.1.140.0070.00715.88
7.1.130.0000.01215.69
7.1.120.0040.00815.87
7.1.110.0040.00415.80
7.1.100.0100.00616.97
7.1.90.0090.00915.95
7.1.80.0040.01115.79
7.1.70.0030.01116.47
7.1.60.0070.01017.69
7.1.50.0070.01316.39
7.1.40.0130.00315.71
7.1.30.0110.00015.71
7.1.20.0070.01015.73
7.1.10.0060.01015.68
7.1.00.0080.03719.11
7.0.330.0030.01015.25
7.0.320.0150.00015.60
7.0.310.0060.00615.66
7.0.300.0070.00715.31
7.0.290.0060.00915.51
7.0.280.0040.01115.41
7.0.270.0110.00315.34
7.0.260.0090.00615.33
7.0.250.0060.00915.33
7.0.240.0100.00315.16
7.0.230.0000.01615.68
7.0.220.0000.01615.41
7.0.210.0070.00315.57
7.0.200.0070.00915.19
7.0.190.0080.00315.23
7.0.180.0100.00715.38
7.0.170.0060.00615.39
7.0.160.0000.00915.38
7.0.150.0070.00715.38
7.0.140.0060.03918.74
7.0.130.0110.00415.38
7.0.120.0070.00715.30
7.0.110.0080.03217.74
7.0.100.0050.02417.72
7.0.90.0130.02517.53
7.0.80.0220.03717.71
7.0.70.0350.05017.53
7.0.60.0370.04517.76
7.0.50.0370.03217.84
7.0.40.0030.04916.85
7.0.30.0100.04016.61
7.0.20.0070.04316.93
7.0.10.0100.04316.74
7.0.00.0070.03816.75
5.6.400.0100.00714.43
5.6.390.0130.00314.66
5.6.380.0090.00314.79
5.6.370.0000.01114.62
5.6.360.0100.00714.57
5.6.350.0030.01314.59
5.6.340.0050.00514.12
5.6.330.0080.00314.12
5.6.320.0060.01114.64
5.6.310.0000.01014.32
5.6.300.0060.00614.60
5.6.290.0000.01414.51
5.6.280.0020.05217.71
5.6.270.0040.01214.77
5.6.260.0060.02617.54
5.6.250.0110.02217.53
5.6.240.0050.02817.69
5.6.230.0050.04017.44
5.6.220.0070.04017.49
5.6.210.0040.04117.54
5.6.200.0050.04617.76
5.6.190.0070.04317.74
5.6.180.0140.03917.71
5.6.170.0080.03817.64
5.6.160.0050.04217.90
5.6.150.0080.04517.73
5.6.140.0040.04917.79
5.6.130.0060.02917.82
5.6.120.0100.04217.88
5.6.110.0080.04317.72
5.6.100.0050.05217.60
5.6.90.0050.04417.97
5.6.80.0070.04417.54
5.6.70.0100.03317.40
5.6.60.0070.04217.41
5.6.50.0060.04817.49
5.6.40.0120.03017.28
5.6.30.0050.03217.48
5.6.20.0070.03217.38
5.6.10.0070.04117.37
5.6.00.0090.04317.47
5.5.380.0050.03817.33
5.5.370.0070.04417.37
5.5.360.0090.04317.32
5.5.350.0120.04517.35
5.5.340.0140.03717.51
5.5.330.0050.03617.61
5.5.320.0090.03917.78
5.5.310.0050.04617.55
5.5.300.0070.04117.66
5.5.290.0080.04517.36
5.5.280.0100.04217.55
5.5.270.0070.04717.65
5.5.260.0050.04717.51
5.5.250.0060.04417.54
5.5.240.0030.03117.19
5.5.230.0100.03917.39
5.5.220.0080.04017.36
5.5.210.0120.03917.24
5.5.200.0030.03017.07
5.5.190.0070.03717.24
5.5.180.0090.03917.13
5.5.170.0000.01214.22
5.5.160.0070.03917.38
5.5.150.0110.03917.45
5.5.140.0050.04417.25
5.5.130.0020.04517.28
5.5.120.0100.02017.05
5.5.110.0070.04117.21
5.5.100.0100.04017.22
5.5.90.0110.02817.11
5.5.80.0130.04017.28
5.5.70.0120.03817.26
5.5.60.0100.03217.18
5.5.50.0070.04617.27
5.5.40.0120.03017.17
5.5.30.0140.03717.20
5.5.20.0070.03917.21
5.5.10.0080.04217.21
5.5.00.0050.04217.26
5.4.450.0030.03915.79
5.4.440.0050.02615.73
5.4.430.0020.03815.67
5.4.420.0070.04115.80
5.4.410.0070.04015.59
5.4.400.0110.03515.52
5.4.390.0080.04015.48
5.4.380.0080.04315.51
5.4.370.0050.02915.65
5.4.360.0130.03215.57
5.4.350.0120.03615.53
5.4.340.0060.04015.56
5.4.330.0060.00312.04
5.4.320.0020.02715.52
5.4.310.0050.04215.63
5.4.300.0070.03815.52
5.4.290.0030.04715.58
5.4.280.0050.02215.57
5.4.270.0070.03415.49
5.4.260.0070.03615.52
5.4.250.0020.04315.49
5.4.240.0090.03615.50
5.4.230.0100.02415.55
5.4.220.0090.04115.51
5.4.210.0050.04315.60
5.4.200.0100.03815.53
5.4.190.0080.03715.65
5.4.180.0100.04215.51
5.4.170.0030.04415.57
5.4.160.0030.04215.60
5.4.150.0070.04215.64
5.4.140.0130.03214.28
5.4.130.0050.04114.25
5.4.120.0070.04114.28
5.4.110.0120.03514.27
5.4.100.0080.03714.27
5.4.90.0090.03514.21
5.4.80.0030.03614.27
5.4.70.0050.03314.20
5.4.60.0120.03714.12
5.4.50.0090.03914.07
5.4.40.0060.04114.29
5.4.30.0070.04014.14
5.4.20.0080.03714.14
5.4.10.0050.04014.10
5.4.00.0050.04113.84
5.3.290.0000.04714.56
5.3.280.0030.05714.48
5.3.270.0070.07714.67
5.3.260.0130.06714.48
5.3.250.0030.04314.49
5.3.240.0100.06714.49
5.3.230.0070.06014.52
5.3.220.0130.06314.44
5.3.210.0070.06714.51
5.3.200.0070.07714.63
5.3.190.0000.08314.46
5.3.180.0030.08714.48
5.3.170.0070.07314.39
5.3.160.0000.05014.51
5.3.150.0100.06314.58
5.3.140.0100.06014.46
5.3.130.0230.05714.39
5.3.120.0100.07714.34
5.3.110.0070.06014.55
5.3.100.0170.06714.11
5.3.90.0100.07014.02
5.3.80.0170.06313.84
5.3.70.0130.06313.90
5.3.60.0030.07713.88
5.3.50.0130.06013.79
5.3.40.0170.06313.82
5.3.30.0200.06013.79
5.3.20.0000.08013.53
5.3.10.0030.03313.48
5.3.00.0070.03013.53
5.2.170.0030.06712.43
5.2.160.0070.04712.43
5.2.150.0000.07312.43
5.2.140.0030.03712.43
5.2.130.0000.04712.43
5.2.120.0030.05712.43
5.2.110.0130.05312.43
5.2.100.0100.04712.43
5.2.90.0030.06012.43
5.2.80.0100.05312.43
5.2.70.0000.03712.43
5.2.60.0100.05712.43
5.2.50.0030.05312.43
5.2.40.0030.04712.43
5.2.30.0030.06312.43
5.2.20.0070.05312.43
5.2.10.0030.06012.43
5.2.00.0030.06012.43
5.1.60.0000.03312.43
5.1.50.0000.05312.43
5.1.40.0070.03712.43
5.1.30.0070.04712.43
5.1.20.0030.06012.43
5.1.10.0030.06012.43
5.1.00.0030.05712.43
5.0.50.0000.04712.43
5.0.40.0030.04312.43
5.0.30.0000.04312.43
5.0.20.0100.03312.43
5.0.10.0030.02712.43
5.0.00.0030.04312.43
4.4.90.0000.02012.43
4.4.80.0070.03012.43
4.4.70.0000.03312.43
4.4.60.0000.02312.43
4.4.50.0030.02712.43
4.4.40.0030.05312.43
4.4.30.0000.02012.43
4.4.20.0070.01312.43
4.4.10.0070.03012.43
4.4.00.0070.03012.43
4.3.110.0000.03312.43
4.3.100.0030.03712.43
4.3.90.0030.03312.43
4.3.80.0000.05312.43
4.3.70.0070.03012.43
4.3.60.0030.02712.43
4.3.50.0070.03012.43
4.3.40.0030.03712.43
4.3.30.0030.03312.43
4.3.20.0000.02712.43
4.3.10.0000.03712.43
4.3.00.0030.02712.43

preferences:
44.23 ms | 401 KiB | 5 Q