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.2.00.0060.00619.63
7.1.100.0090.00618.28
7.1.70.0080.00017.18
7.1.60.0130.01319.50
7.1.50.0030.02016.86
7.1.00.0030.07722.32
7.0.200.0190.00414.73
7.0.140.0070.07021.97
7.0.80.0730.07019.97
7.0.70.0530.08719.99
7.0.60.0630.07719.78
7.0.50.0530.06720.23
7.0.40.0130.07320.05
7.0.30.0070.06020.14
7.0.20.0130.08020.12
7.0.10.0130.07020.14
7.0.00.0200.07320.09
5.6.280.0100.06720.89
5.6.230.0000.09020.59
5.6.220.0070.05720.61
5.6.210.0100.03720.49
5.6.200.0070.03721.05
5.6.190.0000.08321.13
5.6.180.0030.04721.04
5.6.170.0100.07721.04
5.6.160.0030.09021.11
5.6.150.0130.08320.97
5.6.140.0230.07021.11
5.6.130.0100.04321.00
5.6.120.0070.08321.01
5.6.110.0100.08021.01
5.6.100.0000.08020.91
5.6.90.0070.08721.14
5.6.80.0070.06720.48
5.6.70.0100.04720.33
5.6.60.0170.06020.39
5.6.50.0070.08320.48
5.6.40.0170.07020.36
5.6.30.0100.07720.43
5.6.20.0000.06720.31
5.6.10.0030.08320.32
5.6.00.0170.06720.47
5.5.370.0030.06720.34
5.5.360.0030.08720.33
5.5.350.0000.09320.45
5.5.340.0100.07320.91
5.5.330.0100.04720.73
5.5.320.0100.08020.91
5.5.310.0170.07320.83
5.5.300.0030.04320.87
5.5.290.0130.07020.91
5.5.280.0100.06320.87
5.5.270.0070.08320.91
5.5.260.0030.06320.79
5.5.250.0100.08020.70
5.5.240.0030.04320.18
5.5.230.0130.05020.18
5.5.220.0170.07320.13
5.5.210.0170.04720.28
5.5.200.0030.08020.24
5.5.190.0100.04720.24
5.5.180.0070.04720.15
5.5.160.0200.06320.08
5.5.150.0130.06719.98
5.5.140.0100.06320.14
5.5.130.0100.05720.26
5.5.120.0070.06720.20
5.5.110.0030.08020.26
5.5.100.0170.06320.16
5.5.90.0070.08019.95
5.5.80.0100.06320.04
5.5.70.0100.07319.91
5.5.60.0070.07720.13
5.5.50.0070.05320.13
5.5.40.0130.06320.07
5.5.30.0100.07019.98
5.5.20.0100.07720.04
5.5.10.0000.05020.04
5.5.00.0030.04320.03
5.4.450.0130.07019.27
5.4.440.0030.07319.55
5.4.430.0030.08719.51
5.4.420.0070.04019.30
5.4.410.0100.04019.31
5.4.400.0000.08018.96
5.4.390.0030.08019.25
5.4.380.0030.05018.78
5.4.370.0070.07718.81
5.4.360.0070.06719.07
5.4.350.0070.04319.13
5.4.340.0070.08019.12
5.4.320.0070.08018.78
5.4.310.0030.08319.12
5.4.300.0070.07719.11
5.4.290.0030.05018.96
5.4.280.0070.05319.13
5.4.270.0170.05718.98
5.4.260.0100.07719.14
5.4.250.0070.07019.04
5.4.240.0100.06718.98
5.4.230.0070.07719.22
5.4.220.0070.07018.78
5.4.210.0000.07718.97
5.4.200.0100.07018.95
5.4.190.0300.06019.02
5.4.180.0000.08319.09
5.4.170.0070.07718.97
5.4.160.0000.08318.76
5.4.150.0070.07019.20
5.4.140.0100.06716.35
5.4.130.0070.03716.05
5.4.120.0070.07316.36
5.4.110.0030.07316.31
5.4.100.0100.06716.34
5.4.90.0070.07316.30
5.4.80.0030.04716.41
5.4.70.0070.07016.19
5.4.60.0100.06716.21
5.4.50.0030.04316.32
5.4.40.0030.05316.32
5.4.30.0000.04716.33
5.4.20.0100.06716.30
5.4.10.0030.07716.20
5.4.00.0170.06315.71
5.3.290.0130.04714.65
5.3.280.0100.07714.55
5.3.270.0130.07314.54
5.3.260.0130.03014.59
5.3.250.0030.06314.57
5.3.240.0170.06714.54
5.3.230.0030.07714.45
5.3.220.0030.07714.43
5.3.210.0100.04314.42
5.3.200.0170.06014.50
5.3.190.0100.07014.50
5.3.180.0000.06714.55
5.3.170.0070.07314.52
5.3.160.0100.07014.39
5.3.150.0130.05314.52
5.3.140.0100.06714.52
5.3.130.0130.06714.41
5.3.120.0030.07314.54
5.3.110.0070.07714.54
5.3.100.0070.06313.99
5.3.90.0070.06713.84
5.3.80.0070.05313.96
5.3.70.0030.04713.99
5.3.60.0070.03313.95
5.3.50.0130.05713.90
5.3.40.0030.07713.95
5.3.30.0100.06713.90
5.3.20.0100.07013.51
5.3.10.0030.07013.63
5.3.00.0000.07713.58
5.2.170.0030.06311.10
5.2.160.0070.04310.93
5.2.150.0070.06311.21
5.2.140.0000.05711.13
5.2.130.0100.03311.09
5.2.120.0070.05710.89
5.2.110.0100.05711.09
5.2.100.0100.06011.08
5.2.90.0030.06311.06
5.2.80.0030.06010.94
5.2.70.0070.04711.09
5.2.60.0100.05710.99
5.2.50.0130.04311.00
5.2.40.0100.05010.98
5.2.30.0000.04311.04
5.2.20.0130.05310.95
5.2.10.0070.06010.88
5.2.00.0070.06010.79
5.1.60.0070.0539.83
5.1.50.0030.05710.02
5.1.40.0070.04310.00
5.1.30.0000.05310.34
5.1.20.0000.04010.29
5.1.10.0030.05310.16
5.1.00.0100.05010.06
5.0.50.0070.0378.63
5.0.40.0000.0408.43
5.0.30.0100.0608.21
5.0.20.0100.0208.20
5.0.10.0000.0478.27
5.0.00.0070.0638.23
4.4.90.0030.0377.70
4.4.80.0000.0337.70
4.4.70.0030.0337.70
4.4.60.0030.0207.70
4.4.50.0000.0307.70
4.4.40.0030.0537.70
4.4.30.0030.0337.70
4.4.20.0030.0337.70
4.4.10.0030.0377.70
4.4.00.0030.0377.70
4.3.110.0000.0377.70
4.3.100.0100.0277.70
4.3.90.0030.0337.70
4.3.80.0030.0537.70
4.3.70.0000.0377.70
4.3.60.0030.0377.70
4.3.50.0030.0237.70
4.3.40.0030.0507.70
4.3.30.0000.0377.70
4.3.20.0000.0337.70
4.3.10.0000.0377.70
4.3.00.0000.0337.70

preferences:
36.91 ms | 400 KiB | 5 Q