3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (empty($_SESSION['lastAccess'])) $_SESSION['lastAccess'] = time(); else { $_SESSION['lastAccess'] -= time(); } var_dump($_SESSION['lastAccess']); if ($_SESSION['lastAccess'] > 5) { 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.3.00.0030.01016.68
7.2.130.0000.01417.10
7.2.120.0080.00416.90
7.2.110.0030.01016.64
7.2.100.0090.00616.88
7.2.90.0090.00616.95
7.2.80.0070.00717.04
7.2.70.0030.01217.16
7.2.60.0060.00916.77
7.2.50.0070.00716.92
7.2.40.0060.01017.08
7.2.30.0090.00616.95
7.2.20.0060.00616.69
7.2.10.0060.00916.97
7.2.00.0050.01118.05
7.1.250.0000.01515.76
7.1.240.0070.00715.48
7.1.230.0000.01115.39
7.1.220.0000.01215.55
7.1.210.0100.00715.55
7.1.200.0040.00415.39
7.1.190.0100.00015.68
7.1.180.0000.01115.56
7.1.170.0030.00915.59
7.1.160.0030.00915.85
7.1.150.0050.00515.75
7.1.140.0060.00615.52
7.1.130.0080.00815.89
7.1.120.0030.01015.79
7.1.110.0000.01315.89
7.1.100.0060.01017.00
7.1.90.0100.00315.70
7.1.80.0090.00015.94
7.1.70.0040.00716.44
7.1.60.0120.00717.63
7.1.50.0160.00316.42
7.1.40.0030.00515.97
7.1.30.0000.01515.82
7.1.20.0040.00415.68
7.1.10.0130.00315.71
7.1.00.0090.03819.11
7.0.330.0000.01314.96
7.0.320.0060.00615.17
7.0.310.0000.01215.24
7.0.300.0070.00015.50
7.0.290.0030.00915.20
7.0.280.0070.00715.54
7.0.270.0030.01015.26
7.0.260.0000.01115.49
7.0.250.0000.01415.41
7.0.240.0060.00915.20
7.0.230.0120.00315.51
7.0.220.0080.00815.32
7.0.210.0030.00915.24
7.0.200.0060.00715.04
7.0.190.0000.01515.31
7.0.180.0040.01115.18
7.0.170.0040.01115.37
7.0.160.0060.00615.37
7.0.150.0060.00715.38
7.0.140.0080.02818.68
7.0.130.0030.00915.14
7.0.120.0060.00615.09
7.0.110.0070.00715.41
7.0.100.0080.02017.70
7.0.90.0050.02717.63
7.0.80.0100.02717.68
7.0.70.0100.02017.71
7.0.60.0070.02417.65
7.0.50.0030.02417.87
7.0.40.0070.02216.83
7.0.30.0060.02316.79
7.0.20.0030.03316.72
7.0.10.0040.02316.75
7.0.00.0030.03716.79
5.6.380.0060.00614.32
5.6.370.0000.00814.38
5.6.360.0030.00914.39
5.6.350.0000.01414.08
5.6.340.0060.01014.46
5.6.330.0040.00414.23
5.6.320.0030.01014.41
5.6.310.0070.00714.66
5.6.300.0110.00414.35
5.6.290.0090.00614.53
5.6.280.0030.04017.79
5.6.270.0060.00614.26
5.6.260.0060.00614.50
5.6.250.0080.02017.35
5.6.240.0060.02117.42
5.6.230.0100.03517.60
5.6.220.0070.04817.48
5.6.210.0040.02617.41
5.6.200.0060.02417.74
5.6.190.0070.02217.47
5.6.180.0060.03317.65
5.6.170.0070.02217.75
5.6.160.0120.01517.69
5.6.150.0030.04117.69
5.6.140.0040.03017.60
5.6.130.0080.02317.71
5.6.120.0000.02917.66
5.6.110.0070.02117.60
5.6.100.0000.04917.86
5.6.90.0070.02217.59
5.6.80.0080.02517.39
5.6.70.0090.02917.35
5.6.60.0030.03017.30
5.6.50.0090.03317.28
5.6.40.0050.03417.27
5.6.30.0030.03517.39
5.6.20.0130.03817.30
5.6.10.0050.03517.29
5.6.00.0030.04817.27
5.5.380.0000.02815.78
5.5.370.0050.02415.81
5.5.360.0060.01915.61
5.5.350.0060.02515.71
5.5.340.0030.02715.88
5.5.330.0050.02115.99
5.5.320.0030.02615.96
5.5.310.0030.03815.97
5.5.300.0000.03016.11
5.5.290.0030.02216.03
5.5.280.0020.02515.86
5.5.270.0060.02215.95
5.5.260.0070.03515.94
5.5.250.0050.02915.85
5.5.240.0090.02215.66
5.5.230.0050.03715.75
5.5.220.0100.03615.63
5.5.210.0100.03715.51
5.5.200.0050.04315.38
5.5.190.0050.03815.71
5.5.180.0080.04215.54
5.5.170.0030.00711.19
5.5.160.0090.03415.67
5.5.150.0090.04315.71
5.5.140.0020.04815.72
5.5.130.0000.04615.67
5.5.120.0020.04515.53
5.5.110.0100.03215.61
5.5.100.0070.03915.46
5.5.90.0060.04415.47
5.5.80.0050.04115.61
5.5.70.0100.03015.53
5.5.60.0000.03715.54
5.5.50.0070.04315.34
5.5.40.0050.03715.41
5.5.30.0060.03315.51
5.5.20.0070.03315.46
5.5.10.0070.04115.42
5.5.00.0050.04315.50
5.4.450.0030.02315.11
5.4.440.0060.02115.22
5.4.430.0070.02815.04
5.4.420.0080.03715.29
5.4.410.0000.02515.06
5.4.400.0020.04315.21
5.4.390.0110.03215.08
5.4.380.0070.04114.91
5.4.370.0030.04314.86
5.4.360.0100.03314.95
5.4.350.0070.03914.83
5.4.340.0060.03014.99
5.4.330.0000.01010.73
5.4.320.0010.04315.05
5.4.310.0050.04115.06
5.4.300.0050.02914.89
5.4.290.0050.04215.01
5.4.280.0070.02815.02
5.4.270.0050.04014.97
5.4.260.0030.04614.99
5.4.250.0030.02815.18
5.4.240.0080.03715.01
5.4.230.0070.02615.05
5.4.220.0030.04615.14
5.4.210.0020.04414.83
5.4.200.0120.03715.12
5.4.190.0070.03914.86
5.4.180.0070.04415.03
5.4.170.0050.04315.07
5.4.160.0090.03514.79
5.4.150.0030.04014.75
5.4.140.0070.03913.54
5.4.130.0090.02513.54
5.4.120.0100.02913.49
5.4.110.0060.03513.62
5.4.100.0080.03713.78
5.4.90.0070.03613.66
5.4.80.0020.04213.63
5.4.70.0050.03613.73
5.4.60.0080.02513.60
5.4.50.0050.02313.77
5.4.40.0030.02713.72
5.4.30.0030.02613.76
5.4.20.0070.03913.66
5.4.10.0070.03813.65
5.4.00.0100.03513.29
5.3.290.0100.03812.54
5.3.280.0050.04012.45
5.3.270.0030.04212.43
5.3.260.0100.03512.59
5.3.250.0080.03812.50
5.3.240.0030.04112.48
5.3.230.0050.02212.50
5.3.220.0100.03412.49
5.3.210.0030.04212.33
5.3.200.0070.03612.41
5.3.190.0090.04012.43
5.3.180.0030.04312.40
5.3.170.0030.03712.43
5.3.160.0020.04012.60
5.3.150.0020.03312.60
5.3.140.0040.02512.52
5.3.130.0030.04012.41
5.3.120.0070.03612.52
5.3.110.0050.02712.44
5.3.100.0060.02812.21
5.3.90.0050.03512.27
5.3.80.0070.03812.16
5.3.70.0050.04212.10
5.3.60.0040.04012.14
5.3.50.0050.03812.19
5.3.40.0070.03812.17
5.3.30.0040.02212.21
5.3.20.0070.02712.06
5.3.10.0090.02511.96
5.3.00.0030.03811.82
5.2.170.0000.03710.71
5.2.160.0070.02510.71
5.2.150.0060.01910.66
5.2.140.0050.03310.68
5.2.130.0050.02110.59
5.2.120.0050.03210.69
5.2.110.0050.03410.66
5.2.100.0040.02010.60
5.2.90.0050.02810.68
5.2.80.0030.02510.66
5.2.70.0060.01510.59
5.2.60.0050.01510.56
5.2.50.0050.02510.62
5.2.40.0050.03310.59
5.2.30.0020.02310.60
5.2.20.0080.02710.61
5.2.10.0050.03110.49
5.2.00.0040.02510.48
5.1.60.0040.03010.03
5.1.50.0040.03010.03
5.1.40.0050.02710.12
5.1.30.0050.03210.27
5.1.20.0030.03210.25
5.1.10.0040.02310.17
5.1.00.0080.02510.14
5.0.50.0050.0259.39
5.0.40.0000.0279.35
5.0.30.0050.0289.23
5.0.20.0080.0159.25
5.0.10.0020.0229.24
5.0.00.0080.0239.19
4.4.90.0020.0108.54
4.4.80.0020.0178.54
4.4.70.0010.0198.54
4.4.60.0050.0188.54
4.4.50.0070.0128.54
4.4.40.0000.0328.54
4.4.30.0030.0138.54
4.4.20.0030.0138.54
4.4.10.0030.0168.54
4.4.00.0030.0298.54
4.3.110.0050.0188.54
4.3.100.0030.0208.54
4.3.90.0020.0108.54
4.3.80.0070.0128.54
4.3.70.0020.0108.54
4.3.60.0030.0188.54
4.3.50.0020.0108.54
4.3.40.0030.0178.54
4.3.30.0020.0228.54
4.3.20.0040.0158.54
4.3.10.0030.0108.54
4.3.00.0020.0128.54

preferences:
53.56 ms | 400 KiB | 5 Q