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(); } var_dump($_SESSION['lastAccess']); echo(time()-5); 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.3.10.0040.00916.50
7.3.00.0000.01216.21
7.2.130.0060.01216.63
7.2.120.0090.00616.96
7.2.110.0000.00816.69
7.2.100.0060.00916.93
7.2.90.0040.00416.84
7.2.80.0040.00416.95
7.2.70.0030.00716.95
7.2.60.0070.00516.98
7.2.50.0180.00016.82
7.2.40.0070.00716.83
7.2.30.0030.01016.94
7.2.20.0060.00617.11
7.2.10.0030.00616.86
7.2.00.0060.00718.13
7.1.250.0030.00515.97
7.1.200.0030.00915.54
7.1.100.0030.00918.14
7.1.70.0000.00717.17
7.1.60.0090.01519.50
7.1.50.0070.01117.04
7.1.00.0000.07722.45
7.0.200.1320.00414.91
7.0.140.0130.05722.09
7.0.80.0100.05719.98
7.0.70.0230.04719.91
7.0.60.0200.05719.83
7.0.50.0100.04020.34
7.0.40.0070.07720.15
7.0.30.0130.03319.95
7.0.20.0070.07320.10
7.0.10.0030.06720.14
7.0.00.0100.04020.04
5.6.280.0030.07021.09
5.6.230.0070.04020.59
5.6.220.0030.04320.62
5.6.210.0070.03720.68
5.6.200.0070.04721.10
5.6.190.0030.04321.00
5.6.180.0070.04020.94
5.6.170.0100.03721.07
5.6.160.0100.06721.01
5.6.150.0030.07021.04
5.6.140.0070.07321.05
5.6.130.0130.04020.99
5.6.120.0100.06021.07
5.6.110.0070.06020.99
5.6.100.0100.06021.03
5.6.90.0030.05021.15
5.6.80.0070.04020.42
5.6.70.0030.08020.45
5.6.60.0070.07720.41
5.6.50.0170.07020.49
5.6.40.0030.08320.37
5.6.30.0070.07320.30
5.6.20.0170.05720.43
5.6.10.0100.04720.43
5.6.00.0100.07720.41
5.5.370.0100.04320.36
5.5.360.0000.04720.38
5.5.350.0070.07720.44
5.5.340.0200.05720.92
5.5.330.0070.04020.83
5.5.320.0070.07020.86
5.5.310.0070.04720.90
5.5.300.0030.05720.91
5.5.290.0030.06020.86
5.5.280.0030.05020.92
5.5.270.0030.04320.89
5.5.260.0030.05720.88
5.5.250.0000.04320.68
5.5.240.0030.03320.21
5.5.230.0030.08020.28
5.5.220.0100.07720.20
5.5.210.0230.06320.14
5.5.200.0070.07320.22
5.5.190.0100.04720.03
5.5.180.0100.07320.14
5.5.160.0030.08320.21
5.5.150.0130.06720.07
5.5.140.0100.07720.24
5.5.130.0100.07720.10
5.5.120.0070.07720.23
5.5.110.0100.08020.12
5.5.100.0030.08020.07
5.5.90.0030.07720.10
5.5.80.0070.05020.04
5.5.70.0170.03320.11
5.5.60.0130.04720.06
5.5.50.0100.06720.14
5.5.40.0070.08020.14
5.5.30.0000.08020.07
5.5.20.0130.07319.88
5.5.10.0130.07720.05
5.5.00.0030.07020.01
5.4.450.0070.04019.42
5.4.440.0070.05319.18
5.4.430.0000.04319.33
5.4.420.0030.04319.11
5.4.410.0070.05019.23
5.4.400.0100.06019.12
5.4.390.0030.08019.14
5.4.380.0100.06319.03
5.4.370.0000.08719.23
5.4.360.0130.07319.10
5.4.350.0100.04319.10
5.4.340.0200.04019.14
5.4.320.0170.07019.14
5.4.310.0070.08018.78
5.4.300.0000.08718.90
5.4.290.0100.07319.04
5.4.280.0100.07318.98
5.4.270.0100.07319.14
5.4.260.0030.08019.04
5.4.250.0100.06719.22
5.4.240.0030.05019.02
5.4.230.0070.07719.09
5.4.220.0070.04318.80
5.4.210.0070.05719.04
5.4.200.0030.05319.05
5.4.190.0030.08319.00
5.4.180.0170.07319.16
5.4.170.0070.08019.13
5.4.160.0200.06719.03
5.4.150.0070.06319.04
5.4.140.0100.06316.27
5.4.130.0000.08016.27
5.4.120.0070.07316.33
5.4.110.0030.07716.30
5.4.100.0130.07716.23
5.4.90.0100.07316.21
5.4.80.0030.06316.19
5.4.70.0100.06716.20
5.4.60.0200.06316.41
5.4.50.0000.07716.35
5.4.40.0130.06716.45
5.4.30.0070.06316.27
5.4.20.0070.07016.28
5.4.10.0070.07016.28
5.4.00.0070.08015.82
5.3.290.0070.08014.61
5.3.280.0100.06714.45
5.3.270.0100.07014.46
5.3.260.0100.07014.56
5.3.250.0100.06714.59
5.3.240.0070.08314.59
5.3.230.0030.08014.60
5.3.220.0170.04714.42
5.3.210.0000.08014.40
5.3.200.0000.08314.43
5.3.190.0030.08314.50
5.3.180.0030.07014.56
5.3.170.0000.06014.54
5.3.160.0130.05714.42
5.3.150.0100.07014.49
5.3.140.0130.06714.51
5.3.130.0130.07314.56
5.3.120.0170.06714.53
5.3.110.0200.06714.54
5.3.100.0030.06013.87
5.3.90.0030.07713.87
5.3.80.0000.08313.83
5.3.70.0030.08314.00
5.3.60.0170.06713.99
5.3.50.0030.07713.76
5.3.40.0030.07013.89
5.3.30.0030.06013.91
5.3.20.0030.07313.66
5.3.10.0070.07313.66
5.3.00.0070.06713.41
5.2.170.0030.06311.61
5.2.160.0000.06011.61
5.2.150.0030.05711.61
5.2.140.0030.04011.61
5.2.130.0100.05711.61
5.2.120.0100.05311.61
5.2.110.0070.06011.61
5.2.100.0100.05311.61
5.2.90.0130.05311.61
5.2.80.0070.05711.61
5.2.70.0030.06711.61
5.2.60.0030.07011.61
5.2.50.0070.06011.61
5.2.40.0070.04711.61
5.2.30.0000.05711.61
5.2.20.0070.05711.61
5.2.10.0070.05711.61
5.2.00.0030.06011.61
5.1.60.0070.05011.61
5.1.50.0100.02711.61
5.1.40.0000.05711.61
5.1.30.0030.06011.61
5.1.20.0070.05311.61
5.1.10.0030.04311.61
5.1.00.0100.05011.61
5.0.50.0030.04711.61
5.0.40.0070.04311.61
5.0.30.0070.06011.61
5.0.20.0100.04011.61
5.0.10.0070.04011.61
5.0.00.0030.05311.61
4.4.90.0070.02311.61
4.4.80.0000.03311.61
4.4.70.0000.04011.61
4.4.60.0070.02711.61
4.4.50.0000.03711.61
4.4.40.0030.05011.61
4.4.30.0100.03011.61
4.4.20.0100.02711.61
4.4.10.0030.03711.61
4.4.00.0000.05011.61
4.3.110.0000.03711.61
4.3.100.0030.03311.61
4.3.90.0070.03311.61
4.3.80.0000.03711.61
4.3.70.0000.03011.61
4.3.60.0030.03311.61
4.3.50.0000.03311.61
4.3.40.0070.03011.61
4.3.30.0000.02011.61
4.3.20.0000.02311.61
4.3.10.0000.01711.61
4.3.00.0000.02711.61

preferences:
33 ms | 401 KiB | 5 Q