3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); if ((!isset($_SESSION["username"]) && !isset($_SESSION["s1"]) && !isset($_SESSION["s2"]))) { $_SESSION["firstrun"] = "true"; $_POST = array(); } ?> <!DOCTYPE html> <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="jquery-1.11.0.js"></script> </head> <script> $(function() { $('#enter').click(function() { console.log("clicky"); //Debug //Get value from the inputs var user_input = $("#username").val(); var s1_input = $("#s1").val(); var s2_input = $("#s2").val(); //Make a jquery post to the session.php with the users data and then redirect to the next page jQuery.post("session.php", {username:user_input, s1:s1_input, s2:s2_input}, function(data){ if (data == "true") { window.location.replace("strings.php"); // Javascript redirect } }); }); }); </script> <body> Enter a username: <input type="text" name="username" id="username" value=""/> <br/> <br/> Pick a string: <input type="text" name="s1" id="s1" value=""/> <br/> <br/> Pick another string: <input type="text" name="s2" id="s2" value=""/> <br/> <br/> <input type="button" name="enter" id="enter" value="Go play with strings!"/> <br/> <br/> </body> </html>

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.60.0110.00418.43
8.3.50.0130.00716.51
8.3.40.0040.01118.67
8.3.30.0150.00618.83
8.3.20.0050.00318.69
8.3.10.0030.00620.48
8.3.00.0060.00317.63
8.2.180.0070.01016.63
8.2.170.0130.00722.96
8.2.160.0100.00322.05
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.95
8.2.110.0050.00520.95
8.2.100.0080.00417.97
8.2.90.0000.00719.43
8.2.80.0080.00018.05
8.2.70.0040.00417.63
8.2.60.0000.00918.05
8.2.50.0030.00618.07
8.2.40.0040.00418.25
8.2.30.0050.00218.26
8.2.20.0030.00617.76
8.2.10.0000.00717.88
8.2.00.0050.00317.88
8.1.280.0160.00625.92
8.1.270.0040.00423.99
8.1.260.0130.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.67
8.1.230.0120.00021.04
8.1.220.0040.00418.77
8.1.210.0040.00418.80
8.1.200.0000.00917.38
8.1.190.0000.00917.52
8.1.180.0040.00418.10
8.1.170.0000.00818.89
8.1.160.0000.00718.97
8.1.150.0040.00418.71
8.1.140.0050.00217.44
8.1.130.0000.00717.89
8.1.120.0070.00017.54
8.1.110.0050.00217.46
8.1.100.0040.00417.48
8.1.90.0030.00417.43
8.1.80.0000.00817.51
8.1.70.0050.00317.41
8.1.60.0070.00417.67
8.1.50.0040.00417.36
8.1.40.0070.00417.59
8.1.30.0000.00817.73
8.1.20.0030.00617.57
8.1.10.0000.00817.48
8.1.00.0040.00417.54
8.0.300.0090.00019.98
8.0.290.0000.00816.88
8.0.280.0000.00818.33
8.0.270.0070.00017.32
8.0.260.0000.00716.72
8.0.250.0050.00317.06
8.0.240.0030.00716.97
8.0.230.0000.00716.95
8.0.220.0030.00316.80
8.0.210.0000.00716.91
8.0.200.0030.00316.98
8.0.190.0060.00316.94
8.0.180.0000.00716.93
8.0.170.0030.00516.91
8.0.160.0070.00016.97
8.0.150.0040.00416.75
8.0.140.0070.00716.83
8.0.130.0000.00713.38
8.0.120.0000.00716.91
8.0.110.0040.00416.77
8.0.100.0040.00416.70
8.0.90.0030.00316.89
8.0.80.0060.00916.92
8.0.70.0040.00416.72
8.0.60.0070.00016.80
8.0.50.0070.00016.92
8.0.30.0070.01116.97
8.0.20.0120.00617.23
8.0.10.0000.00716.96
8.0.00.0050.01316.73
7.4.330.0050.00014.83
7.4.320.0060.00016.65
7.4.300.0020.00516.53
7.4.290.0040.00416.52
7.4.280.0060.00316.42
7.4.270.0000.00716.44
7.4.260.0000.00513.15
7.4.250.0000.00716.64
7.4.240.0030.00616.66
7.4.230.0000.00716.42
7.4.220.0090.01116.38
7.4.210.0100.00616.49
7.4.200.0070.00016.64
7.4.190.0070.00016.70
7.4.160.0060.01616.42
7.4.150.0000.01617.07
7.4.140.0090.00817.18
7.4.130.0140.00516.43
7.4.120.0120.00816.57
7.4.110.0140.00316.49
7.4.100.0120.01216.42
7.4.90.0160.00616.55
7.4.80.0060.01218.80
7.4.70.0150.00616.46
7.4.60.0110.00816.65
7.4.50.0030.00316.23
7.4.40.0100.00322.27
7.4.30.0100.00716.49
7.4.00.0040.01414.96
7.3.330.0030.00313.06
7.3.320.0050.00013.04
7.3.310.0000.00716.27
7.3.300.0030.00316.26
7.3.290.0070.00716.28
7.3.280.0060.01216.29
7.3.270.0150.00417.07
7.3.260.0090.01118.24
7.3.250.0160.00416.50
7.3.240.0120.00916.46
7.3.230.0120.00616.39
7.3.210.0100.00716.43
7.3.200.0110.00719.39
7.3.190.0070.01116.34
7.3.180.0120.01216.59
7.3.170.0090.00916.57
7.3.160.0080.01216.62
7.3.120.0120.00314.92
7.2.330.0120.00816.69
7.2.320.0090.00916.52
7.2.310.0160.00916.73
7.2.300.0070.01416.59
7.2.290.0080.00816.69
7.2.00.0060.01319.48
7.1.100.0030.00917.80
7.1.70.0000.00917.27
7.1.60.0070.01719.40
7.1.50.0060.00616.63
7.1.00.0000.04322.57
7.0.200.0030.00716.77
7.0.140.0100.06321.97
7.0.60.0200.05320.07
7.0.50.0070.06717.89
7.0.40.0030.04317.73
7.0.30.0070.08317.79
7.0.20.0130.07317.79
7.0.10.0100.07317.71
7.0.00.0030.05717.75
5.6.280.0000.07720.90
5.6.210.1030.05020.63
5.6.200.0170.06318.22
5.6.190.0100.03718.14
5.6.180.0030.04718.21
5.6.170.0100.08018.20
5.6.160.0070.08718.11
5.6.150.0070.08318.21
5.6.140.0100.03318.15
5.6.130.0070.07318.15
5.6.120.0070.07018.22
5.6.110.0030.08318.18
5.6.100.0100.08018.17
5.6.90.0030.06018.14
5.6.80.0130.07317.61
5.6.70.0100.07717.50
5.6.60.0000.05017.52
5.6.50.0000.04317.50
5.6.40.0030.04717.45
5.6.30.0130.05317.51
5.6.20.0070.05317.47
5.6.10.0030.05317.48
5.6.00.0130.07317.52
5.5.350.0200.05720.33
5.5.340.0100.08017.98
5.5.330.0030.07017.98
5.5.320.0100.06317.92
5.5.310.0100.07717.92
5.5.300.0100.07717.98
5.5.290.0070.07717.91
5.5.280.0030.08317.91
5.5.270.0130.07317.95
5.5.260.0130.04717.96
5.5.250.0100.04717.75
5.5.240.0030.05017.39
5.5.230.0000.07017.33
5.5.220.1100.04720.24
5.5.210.1200.06720.22
5.5.200.1200.05020.19
5.5.190.0030.04717.35
5.5.180.0200.04017.30
5.5.160.0030.07317.36
5.5.150.0030.04317.38
5.5.140.0030.04017.36
5.5.130.0170.07017.35
5.5.120.0000.05717.36
5.5.110.0070.08017.23
5.5.100.0070.05717.23
5.5.90.0030.07717.26
5.5.80.0170.07017.25
5.5.70.0100.07317.21
5.5.60.0100.06317.16
5.5.50.0130.04317.20
5.5.40.0000.06317.22
5.5.30.0130.07017.24
5.5.20.0100.04317.11
5.5.10.0030.07017.19
5.5.00.0000.06317.18
5.4.450.0130.06019.30
5.4.440.0230.07019.53
5.4.430.0030.08719.14
5.4.420.0030.04319.35
5.4.410.0070.07719.40
5.4.400.0100.06319.13
5.4.390.0030.05319.03
5.4.380.0070.05319.12
5.4.370.0000.06719.03
5.4.360.0030.04019.20
5.4.350.0200.07019.01
5.4.340.0030.07718.98
5.4.320.0130.07018.89
5.4.310.0100.03318.82
5.4.300.0070.06719.12
5.4.290.0000.05719.03
5.4.280.0070.05318.98
5.4.270.0130.07019.08
5.4.260.0100.07318.99
5.4.250.0030.04719.02
5.4.240.0000.05319.08
5.4.230.0200.05018.98
5.4.220.0200.06719.03
5.4.210.0070.04719.11
5.4.200.0070.07718.82
5.4.190.0130.04319.04
5.4.180.0170.07018.98
5.4.170.0030.05318.89
5.4.160.0030.04718.87
5.4.150.0030.05019.07
5.4.140.0030.07316.18
5.4.130.0070.04316.28
5.4.120.0070.07316.16
5.4.110.0030.08016.25
5.4.100.0070.07016.29
5.4.90.0000.07716.29
5.4.80.0030.05716.24
5.4.70.0070.06016.31
5.4.60.0070.04316.38
5.4.50.0100.06316.23
5.4.40.0030.04316.35
5.4.30.0170.06316.25
5.4.20.0070.06316.43
5.4.10.0030.08016.23
5.4.00.0100.05015.70
5.3.290.0070.04314.75
5.3.280.0100.06014.52
5.3.270.0030.05714.52
5.3.260.0070.08314.57
5.3.250.0100.07014.43
5.3.240.0030.06314.58
5.3.230.0130.04314.37
5.3.220.0070.06014.53
5.3.210.0070.05014.51
5.3.200.0070.07314.52
5.3.190.0070.05314.52
5.3.180.0070.03714.47
5.3.170.0030.07314.64
5.3.160.0030.08314.64
5.3.150.0100.07714.50
5.3.140.0030.04714.47
5.3.130.0070.07314.47
5.3.120.0100.03314.46
5.3.110.0030.05014.38
5.3.100.0030.07714.02
5.3.90.0030.08013.84
5.3.80.0070.07313.83
5.3.70.0070.07713.95
5.3.60.0070.06013.82
5.3.50.0030.07713.76
5.3.40.0000.05313.92
5.3.30.0100.03713.88
5.3.20.0100.06013.68
5.3.10.0030.03713.62
5.3.00.0030.04313.59
5.2.170.0030.04011.12
5.2.160.0030.06711.03
5.2.150.0100.05711.03
5.2.140.0030.03711.13
5.2.130.0100.02311.10
5.2.120.0000.06710.98
5.2.110.0100.05711.25
5.2.100.0030.05011.05
5.2.90.0070.06011.07
5.2.80.0030.04311.07
5.2.70.0000.04311.05
5.2.60.0000.06710.94
5.2.50.0070.05010.98
5.2.40.0100.03011.00
5.2.30.0070.02710.93
5.2.20.0030.03710.93
5.2.10.0070.04310.88
5.2.00.0000.04010.66
5.1.60.0100.04710.07
5.1.50.0070.05310.05
5.1.40.0030.05710.05
5.1.30.0030.05710.38
5.1.20.0070.05310.30
5.1.10.0000.04310.04
5.1.00.0000.06010.10
5.0.50.0070.0208.52
5.0.40.0030.0408.43
5.0.30.0000.0678.38
5.0.20.0030.0438.23
5.0.10.0100.0238.37
5.0.00.0070.0478.23
4.4.90.0000.0307.62
4.4.80.0000.0237.62
4.4.70.0000.0407.62
4.4.60.0000.0377.62
4.4.50.0000.0407.62
4.4.40.0000.0437.62
4.4.30.0030.0307.62
4.4.20.0030.0337.62
4.4.10.0030.0337.63
4.4.00.0100.0437.66
4.3.110.0070.0307.68
4.3.100.0030.0377.69
4.3.90.0070.0307.69
4.3.80.0030.0477.75
4.3.70.0000.0377.77
4.3.60.0000.0307.77
4.3.50.0000.0277.79
4.3.40.0030.0377.81
4.3.30.0000.0307.82
4.3.20.0000.0407.82
4.3.10.0030.0337.82
4.3.00.0000.0377.84

preferences:
43.4 ms | 401 KiB | 5 Q