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'] < time()+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.10.0040.00716.30
7.3.00.0100.00316.89
7.2.130.0030.00616.68
7.2.120.0070.00716.99
7.2.110.0030.00716.57
7.2.100.0000.01016.96
7.2.90.0030.00816.98
7.2.80.0070.00316.97
7.2.70.0080.00316.97
7.2.60.0090.00616.87
7.2.50.0060.00317.07
7.2.40.0110.00416.88
7.2.30.0070.00716.93
7.2.20.0030.00616.76
7.2.10.0030.01016.79
7.2.00.0100.00518.11
7.1.250.0070.00315.72
7.1.100.0110.00518.30
7.1.70.0000.00816.86
7.1.60.0090.01219.50
7.1.50.0060.01916.96
7.1.00.0000.08022.29
7.0.200.0180.00014.74
7.0.140.0070.05322.15
7.0.90.0030.04719.91
7.0.80.0030.04319.87
7.0.70.0130.05319.97
7.0.60.0230.06719.95
7.0.50.0100.03720.30
7.0.40.0030.04320.12
7.0.30.0070.03320.00
7.0.20.0100.03720.14
7.0.10.0070.04020.08
7.0.00.0070.03720.12
5.6.280.0030.07321.09
5.6.240.0030.04020.65
5.6.230.0100.05320.59
5.6.220.0000.04320.64
5.6.210.0100.05020.71
5.6.200.0030.04321.08
5.6.190.0030.05320.96
5.6.180.0070.05721.04
5.6.170.0100.04020.95
5.6.160.0070.04020.95
5.6.150.0000.04321.03
5.6.140.0170.03021.02
5.6.130.0100.04721.01
5.6.120.0100.03021.04
5.6.110.0100.03721.01
5.6.100.0030.03721.02
5.6.90.0030.08721.05
5.6.80.0070.06720.52
5.6.70.0130.07320.35
5.6.60.0170.06320.41
5.6.50.0130.04320.48
5.6.40.0000.07020.46
5.6.30.0030.03720.39
5.6.20.0000.08320.43
5.6.10.0030.08320.38
5.6.00.0100.04720.44
5.5.380.0070.04020.39
5.5.370.0100.03720.47
5.5.360.0030.04020.41
5.5.350.0030.04320.39
5.5.340.0030.04020.80
5.5.330.0030.04020.86
5.5.320.0000.03720.77
5.5.310.0070.03720.64
5.5.300.0030.04020.88
5.5.290.0030.04020.77
5.5.280.0070.04720.82
5.5.270.0030.04320.72
5.5.260.0030.05020.89
5.5.250.0070.07020.70
5.5.240.0000.04020.27
5.5.230.0100.05020.13
5.5.220.0100.05320.24
5.5.210.0130.07020.26
5.5.200.0170.06320.11
5.5.190.0030.04720.25
5.5.180.0100.04020.14
5.5.160.0100.07720.14
5.5.150.0100.08020.10
5.5.140.0030.07320.11
5.5.130.0030.05720.13
5.5.120.0170.07019.98
5.5.110.0000.05320.07
5.5.100.0100.04320.16
5.5.90.0070.07720.07
5.5.80.0100.06720.05
5.5.70.0130.06719.96
5.5.60.0070.04320.05
5.5.50.0130.06720.14
5.5.40.0130.06720.03
5.5.30.0130.04020.07
5.5.20.0100.07720.14
5.5.10.0030.08020.13
5.5.00.0030.05020.00
5.4.450.0130.03019.22
5.4.440.0030.04719.27
5.4.430.0030.05719.46
5.4.420.0070.05019.30
5.4.410.0100.06319.23
5.4.400.0070.04318.96
5.4.390.0100.04019.02
5.4.380.0000.06019.07
5.4.370.0030.03319.15
5.4.360.0070.03019.12
5.4.350.0030.07719.09
5.4.340.0030.04319.14
5.4.320.0030.05319.03
5.4.310.0070.07019.23
5.4.300.0200.06318.96
5.4.290.0070.07319.03
5.4.280.0030.08018.96
5.4.270.0100.04019.02
5.4.260.0070.07718.94
5.4.250.0170.05719.02
5.4.240.0030.08019.05
5.4.230.0100.07019.08
5.4.220.0170.06719.22
5.4.210.0130.06318.93
5.4.200.0030.04719.02
5.4.190.0030.07719.11
5.4.180.0270.05719.11
5.4.170.0200.06318.89
5.4.160.0130.06318.88
5.4.150.0030.07719.09
5.4.140.0130.04016.38
5.4.130.0100.06316.36
5.4.120.0030.07016.32
5.4.110.0030.06716.36
5.4.100.0000.06316.26
5.4.90.0030.07016.44
5.4.80.0030.07716.42
5.4.70.0070.06716.25
5.4.60.0030.04716.29
5.4.50.0070.06716.30
5.4.40.0070.04716.45
5.4.30.0100.06316.24
5.4.20.0070.05016.41
5.4.10.0130.06016.28
5.4.00.0000.05715.71
5.3.290.0030.03714.61
5.3.280.0070.04314.41
5.3.270.0030.06314.52
5.3.260.0100.05014.59
5.3.250.0100.06014.46
5.3.240.0130.07314.57
5.3.230.0030.06714.59
5.3.220.0070.06314.54
5.3.210.0100.06714.52
5.3.200.0070.07714.38
5.3.190.0030.04014.55
5.3.180.0000.06714.52
5.3.170.0130.04714.50
5.3.160.0100.05014.38
5.3.150.0130.06714.38
5.3.140.0030.04314.55
5.3.130.0130.05014.53
5.3.120.0000.07014.51
5.3.110.0070.04314.38
5.3.100.0170.06314.04
5.3.90.0000.08013.87
5.3.80.0030.06713.96
5.3.70.0030.06713.78
5.3.60.0000.03713.75
5.3.50.0000.06313.93
5.3.40.0100.05013.80
5.3.30.0030.07713.81
5.3.20.0030.07313.56
5.3.10.0100.07013.64
5.3.00.0070.07713.63
5.2.170.0030.06011.00
5.2.160.0030.06311.18
5.2.150.0000.06310.97
5.2.140.0130.06011.09
5.2.130.0000.05310.95
5.2.120.0070.06311.01
5.2.110.0070.03711.08
5.2.100.0100.05310.93
5.2.90.0130.02710.95
5.2.80.0100.04711.05
5.2.70.0130.05711.04
5.2.60.0070.03010.96
5.2.50.0030.03310.80
5.2.40.0000.06710.98
5.2.30.0070.06010.81
5.2.20.0000.06010.92
5.2.10.0000.03310.80
5.2.00.0030.02710.61
5.1.60.0030.05010.27
5.1.50.0070.05010.27
5.1.40.0000.03710.27
5.1.30.0000.06010.38
5.1.20.0000.03310.27
5.1.10.0130.05010.27
5.1.00.0070.04710.27
5.0.50.0000.04710.27
5.0.40.0030.04010.27
5.0.30.0000.04310.27
5.0.20.0100.03310.27
5.0.10.0000.03310.27
5.0.00.0000.03310.27
4.4.90.0000.03010.27
4.4.80.0030.03010.27
4.4.70.0000.04010.27
4.4.60.0030.03710.27
4.4.50.0030.03310.27
4.4.40.0030.02710.27
4.4.30.0000.03310.27
4.4.20.0030.03310.27
4.4.10.0070.03010.27
4.4.00.0000.04010.27
4.3.110.0030.02710.27
4.3.100.0030.03010.27
4.3.90.0030.01710.27
4.3.80.0070.05010.27
4.3.70.0000.01710.27
4.3.60.0030.01310.27
4.3.50.0030.03310.27
4.3.40.0030.03710.27
4.3.30.0070.02310.27
4.3.20.0000.02310.27
4.3.10.0000.01710.27
4.3.00.0000.01710.27

preferences:
38.25 ms | 400 KiB | 5 Q