3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); if (!isset($_SESSION["username"]) && !isset($_SESSION["s1"]) && !isset($_SESSION["s2"])) { header("Location:input.php"); } else { ini_set('display_errors', 'On'); $greeting = "Welcome " .$_SESSION["username"]. ", let's string your strings " .$_SESSION["s1"]. " and " .$_SESSION["s2"]. "!"; if (!isset($_GET["conxy"])) { $conxvar = ""; // function to conx+y with GET and append parameter to URL } else { $conxvar = "The strings x+y have been concatenated: ". $_SESSION["s1"].$_SESSION["s2"]; echo $conxvar; } if (!isset($_GET["conyx"])) { $conyvar = ""; // function to conx+y with GET and append parameter to URL } else { $conyvar = "The strings y+x have been concatenated: ". $_SESSION["s2"].$_SESSION["s1"]; echo $conyvar; } if (!isset($_GET["conyx"])) { $subvar = ""; // function to check substring with GET and append parameter to URL } else { $compareX = strpos($_SESSION["s2"], $_SESSION["s1"]); $compareY = strpos($_SESSION["s1"], $_SESSION["s2"]); if ($compareX !== false) { $subvar = "String ".$_SESSION["s1"]. " is a substring of " .$_SESSION["s2"]; } else { $subvar = "String ".$_SESSION["s1"]. " is NOT a substring of " .$_SESSION["s2"]; } if ($compareY !== false) { $subvar += " and string ".$_SESSION['s2']. " is a substring of " .$_SESSION['s1']; } else { $subvar += " and string ".$_SESSION['s2']. " is NOT a substring of " .$_SESSION['s1']; } echo $subvar; } }

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)
8.3.120.0060.00319.00
8.3.110.0060.01020.94
8.3.100.0000.01124.06
8.3.90.0030.01326.77
8.3.80.0040.00419.36
8.3.70.0070.01116.58
8.3.60.0100.01018.08
8.3.50.0120.00722.05
8.3.40.0120.00918.76
8.3.30.0110.00318.77
8.3.20.0080.00018.72
8.3.10.0040.00421.04
8.3.00.0040.00421.98
8.2.240.0000.00817.06
8.2.230.0040.01122.58
8.2.220.0040.00437.54
8.2.210.0000.00726.77
8.2.200.0080.00018.88
8.2.190.0120.00316.58
8.2.180.0150.00618.52
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.98
8.2.110.0070.00320.43
8.2.100.0060.00617.78
8.2.90.0080.00019.30
8.2.80.0030.00617.97
8.2.70.0040.00817.38
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0000.00721.28
8.2.20.0000.00717.65
8.2.10.0020.00517.77
8.2.00.0040.00417.68
8.1.300.0090.00618.47
8.1.290.0040.00730.84
8.1.280.0040.01125.92
8.1.270.0070.00023.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0120.00622.51
8.1.230.0040.00721.00
8.1.220.0000.00818.77
8.1.210.0030.00519.18
8.1.200.0030.00617.35
8.1.190.0000.00817.63
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0000.00818.89
8.1.150.0040.00418.70
8.1.140.0000.00717.43
8.1.130.0000.00717.77
8.1.120.0040.00417.54
8.1.110.0050.00317.53
8.1.100.0050.00317.49
8.1.90.0040.00417.43
8.1.80.0040.00417.47
8.1.70.0000.00817.41
8.1.60.0060.00317.50
8.1.50.0040.00417.38
8.1.40.0000.00717.58
8.1.30.0000.00817.62
8.1.20.0000.00917.63
8.1.10.0050.00317.45
8.1.00.0040.00417.46
8.0.300.0040.00420.15
8.0.290.0050.00317.16
8.0.280.0030.00318.52
8.0.270.0030.00317.25
8.0.260.0070.00016.80
8.0.250.0070.00016.95
8.0.240.0070.00316.95
8.0.230.0000.00716.95
8.0.220.0000.00716.91
8.0.210.0030.00516.89
8.0.200.0000.00816.86
8.0.190.0050.00317.00
8.0.180.0030.00516.81
8.0.170.0030.00516.92
8.0.160.0040.00416.97
8.0.150.0000.00716.87
8.0.140.0000.00716.86
8.0.130.0000.00613.27
8.0.120.0040.00416.81
8.0.110.0000.00716.96
8.0.100.0000.00716.96
8.0.90.0000.00816.95
8.0.80.0040.01116.96
8.0.70.0000.00716.85
8.0.60.0040.00416.75
8.0.50.0000.00716.86
8.0.30.0090.01016.99
8.0.20.0130.00517.40
8.0.10.0050.00216.84
8.0.00.0100.00816.89
7.4.330.0000.00614.74
7.4.320.0230.01316.59
7.4.300.0030.00316.52
7.4.290.0070.00016.61
7.4.280.0030.00616.59
7.4.270.0000.00716.60
7.4.260.0350.00313.29
7.4.250.0040.00416.58
7.4.240.0030.00316.44
7.4.230.0030.00316.61
7.4.220.0090.00916.64
7.4.210.0070.00816.65
7.4.200.0040.00416.32
7.4.190.0030.00616.70
7.4.160.0030.01316.44
7.4.150.0290.02317.40
7.4.140.0080.01317.86
7.4.130.0070.01016.38
7.4.120.0030.01516.61
7.4.110.0180.00316.63
7.4.100.0100.01316.51
7.4.90.0170.00716.60
7.4.80.0080.00819.39
7.4.70.0060.00916.31
7.4.60.0130.00316.53
7.4.50.0050.00016.36
7.4.40.0090.00622.77
7.4.30.0080.00816.43
7.4.00.0060.00915.11
7.3.330.0030.00313.20
7.3.320.0000.00613.13
7.3.310.0050.00316.22
7.3.300.0070.00016.24
7.3.290.0040.01116.20
7.3.280.0070.01216.32
7.3.270.0030.01717.40
7.3.260.0120.00718.24
7.3.250.0070.01116.27
7.3.240.0030.01316.27
7.3.230.0130.00316.39
7.3.210.0100.01016.43
7.3.200.0060.01019.39
7.3.190.0060.01616.29
7.3.180.0000.01616.10
7.3.170.0030.01516.27
7.3.160.0090.00616.16
7.3.120.0070.00714.86
7.2.330.0060.01316.70
7.2.320.0130.00316.49
7.2.310.0070.01016.49
7.2.300.0120.00916.66
7.2.290.0060.01016.62
7.2.00.0060.00619.39
7.1.100.0000.01218.08
7.1.70.0040.00417.17
7.1.60.0090.01619.40
7.1.50.0070.01516.76
7.1.00.0070.03322.33
7.0.200.0030.01016.46
7.0.140.0070.07022.04
7.0.70.0030.05721.73
7.0.60.0030.04721.83
7.0.50.0070.04021.96
7.0.40.0070.08020.07
7.0.30.0000.04320.04
7.0.20.0030.04320.14
7.0.10.0070.03719.95
7.0.00.0100.07720.17
5.6.280.0000.07721.03
5.6.220.0070.08020.57
5.6.210.0100.04720.62
5.6.200.0000.08021.05
5.6.190.0000.07721.06
5.6.180.0000.09721.12
5.6.170.0000.09021.04
5.6.160.0070.05021.05
5.6.150.0030.05020.97
5.6.140.0070.07720.92
5.6.130.0030.07721.12
5.6.120.0130.07321.02
5.6.110.0070.05321.11
5.6.100.0030.05021.03
5.6.90.0130.03720.86
5.6.80.0070.07020.43
5.6.70.0100.04320.55
5.6.60.0070.04320.45
5.6.50.0100.05720.48
5.6.40.0000.08720.41
5.6.30.0170.07320.29
5.6.20.0100.07020.31
5.6.10.0170.07720.41
5.6.00.0030.05320.37
5.5.360.0070.08320.36
5.5.350.0130.07020.41
5.5.340.0070.08320.86
5.5.330.0100.07020.77
5.5.320.0070.07020.86
5.5.310.0030.07020.93
5.5.300.0030.05020.91
5.5.290.0030.08320.86
5.5.280.0170.07720.87
5.5.270.0030.05320.76
5.5.260.0030.06320.82
5.5.250.0030.05320.70
5.5.240.0100.07720.30
5.5.230.0030.05320.32
5.5.220.0070.03320.28
5.5.210.0000.06720.12
5.5.200.0030.08320.28
5.5.190.0070.06020.26
5.5.180.0070.03320.12
5.5.160.0030.08320.27
5.5.150.0070.08020.23
5.5.140.0070.07020.29
5.5.130.0000.08020.20
5.5.120.0100.07720.09
5.5.110.0100.07019.97
5.5.100.0100.07720.09
5.5.90.0100.07720.16
5.5.80.0070.05020.12
5.5.70.0030.08720.14
5.5.60.0030.07720.12
5.5.50.0030.08020.09
5.5.40.0070.07319.96
5.5.30.0100.07020.10
5.5.20.0030.08319.96
5.5.10.0000.07720.07
5.5.00.0070.08020.04
5.4.450.0030.04319.49
5.4.440.0100.08319.45
5.4.430.0000.04719.42
5.4.420.0000.04019.28
5.4.410.0000.08319.19
5.4.400.0000.06318.98
5.4.390.0030.05019.17
5.4.380.0000.03719.07
5.4.370.0030.07718.98
5.4.360.0100.07319.03
5.4.350.0130.06719.25
5.4.340.0000.06318.96
5.4.320.0070.07318.94
5.4.310.0030.06319.23
5.4.300.0130.07018.80
5.4.290.0070.06718.94
5.4.280.0030.08018.90
5.4.270.0100.04319.02
5.4.260.0030.07719.14
5.4.250.0070.05319.07
5.4.240.0070.07719.06
5.4.230.0030.07318.89
5.4.220.0130.07319.11
5.4.210.0000.08018.91
5.4.200.0000.07319.03
5.4.190.0000.08319.08
5.4.180.0030.06018.79
5.4.170.0030.08019.08
5.4.160.0100.05019.21
5.4.150.0070.08019.10
5.4.140.0030.07716.12
5.4.130.0070.06716.36
5.4.120.0100.06716.36
5.4.110.0000.07716.38
5.4.100.0000.07316.41
5.4.90.0000.08016.21
5.4.80.0000.07016.39
5.4.70.0130.06016.20
5.4.60.0030.07016.36
5.4.50.0070.07016.23
5.4.40.0000.05316.26
5.4.30.0030.07716.23
5.4.20.0030.05716.37
5.4.10.0070.06716.38
5.4.00.0100.06715.72
5.3.290.0030.06014.62
5.3.280.0000.08314.56
5.3.270.0070.07314.57
5.3.260.0000.04014.46
5.3.250.0030.06714.48
5.3.240.0000.08314.62
5.3.230.0030.07314.61
5.3.220.0100.06714.40
5.3.210.0100.07014.53
5.3.200.0070.07314.45
5.3.190.0000.05714.52
5.3.180.0070.06314.42
5.3.170.0070.05714.41
5.3.160.0070.05314.49
5.3.150.0000.08014.44
5.3.140.0000.06714.53
5.3.130.0070.06314.49
5.3.120.0070.06714.55
5.3.110.0070.07314.42
5.3.100.0070.06013.92
5.3.90.0000.05014.02
5.3.80.0170.06313.96
5.3.70.0030.03714.02
5.3.60.0070.06013.94
5.3.50.0030.07313.97
5.3.40.0030.07713.94
5.3.30.0000.07313.91
5.3.20.0030.06713.71
5.3.10.0030.07313.58
5.3.00.0030.07013.63
5.2.170.0000.06712.33
5.2.160.0030.06012.33
5.2.150.0070.04312.33
5.2.140.0030.05712.33
5.2.130.0070.05712.33
5.2.120.0000.06712.33
5.2.110.0030.04312.33
5.2.100.0030.06712.33
5.2.90.0070.03712.33
5.2.80.0070.06012.33
5.2.70.0030.06012.33
5.2.60.0030.06312.33
5.2.50.0030.05712.33
5.2.40.0030.05312.33
5.2.30.0030.06312.33
5.2.20.0000.06712.33
5.2.10.0070.04712.33
5.2.00.0030.06312.33
5.1.60.0000.05712.33
5.1.50.0030.05312.33
5.1.40.0000.03712.33
5.1.30.0000.03012.33
5.1.20.0070.02712.33
5.1.10.0000.05312.33
5.1.00.0030.05712.33
5.0.50.0030.03012.33
5.0.40.0070.04012.33
5.0.30.0100.05712.33
5.0.20.0030.04012.33
5.0.10.0000.02312.33
5.0.00.0000.04312.33
4.4.90.0030.03712.33
4.4.80.0000.03712.33
4.4.70.0000.04012.33
4.4.60.0000.03712.33
4.4.50.0000.03312.33
4.4.40.0030.05012.33
4.4.30.0000.02312.33
4.4.20.0030.03012.33
4.4.10.0000.03012.33
4.4.00.0000.04012.33
4.3.110.0000.03712.33
4.3.100.0000.03712.33
4.3.90.0000.02712.33
4.3.80.0000.04712.33
4.3.70.0000.02012.33
4.3.60.0030.02712.33
4.3.50.0030.03312.33
4.3.40.0000.05012.33
4.3.30.0000.03312.33
4.3.20.0000.02712.33
4.3.10.0030.03312.33
4.3.00.0000.03712.33

preferences:
62.8 ms | 403 KiB | 5 Q