3v4l.org

run code in 300+ PHP versions simultaneously
<?php include("config.sys.php"); mysql_connect($hostname, $username, $password) || die("Error!"); mysql_select_db($dbname); mysql_query('SET NAMES utf8'); $snn = array("vk", "mailru", "ok"); foreach ($snn as $snname) { $dbtable = "game_" . $snname; mysql_query("set @i=0"); mysql_query("update $dbtable set srank=(@i:=@i+1) order by topscore desc"); // echo mysql_error(); }

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.0100.01016.63
8.3.50.0120.00318.17
8.3.40.0070.00718.92
8.3.30.0110.00418.97
8.3.20.0040.00420.29
8.3.10.0060.00821.85
8.3.00.0130.00619.38
8.2.180.0180.00316.72
8.2.170.0110.00422.96
8.2.160.0110.00320.35
8.2.150.0060.00324.18
8.2.140.0090.00924.66
8.2.130.0030.00617.36
8.2.120.0110.00726.35
8.2.110.0000.00919.27
8.2.100.0000.01217.75
8.2.90.0080.00019.21
8.2.80.0080.00017.97
8.2.70.0030.00517.25
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00419.43
8.2.30.0040.00420.66
8.2.20.0000.00917.79
8.2.10.0030.00518.02
8.2.00.0000.00718.19
8.1.280.0120.00325.92
8.1.270.0030.00624.02
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0030.00917.66
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0090.00018.53
8.1.160.0000.00722.04
8.1.150.0000.00718.85
8.1.140.0050.00319.46
8.1.130.0070.00017.63
8.1.120.0000.00717.47
8.1.110.0000.00817.45
8.1.100.0040.00417.30
8.1.90.0000.00717.41
8.1.80.0000.00817.31
8.1.70.0000.00717.44
8.1.60.0040.00417.49
8.1.50.0000.00817.50
8.1.40.0030.00817.59
8.1.30.0080.00017.65
8.1.20.0000.00717.52
8.1.10.0000.00817.61
8.1.00.0040.00717.57
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.45
8.0.270.0000.00717.24
8.0.260.0000.00717.25
8.0.250.0000.00716.98
8.0.240.0030.00517.04
8.0.230.0040.00416.98
8.0.220.0000.00716.98
8.0.210.0030.00317.07
8.0.200.0000.00717.09
8.0.190.0040.00417.07
8.0.180.0000.00717.03
8.0.170.0030.00517.10
8.0.160.0070.00017.09
8.0.150.0080.00016.82
8.0.140.0040.00417.02
8.0.130.0030.00313.42
8.0.120.0030.00516.84
8.0.110.0030.00617.09
8.0.100.0000.00717.03
8.0.90.0000.00717.06
8.0.80.0030.01116.95
8.0.70.0040.00417.08
8.0.60.0070.00016.93
8.0.50.0000.00717.15
8.0.30.0120.00717.30
8.0.20.0100.00817.40
8.0.10.0030.00517.08
8.0.00.0100.00916.83
7.4.330.0000.00516.83
7.4.320.0000.00616.61
7.4.300.0000.00616.67
7.4.290.0080.00016.59
7.4.280.0000.01016.52
7.4.270.0070.00016.53
7.4.260.0060.00316.54
7.4.250.0020.00516.61
7.4.240.0020.00616.55
7.4.230.0070.00016.51
7.4.220.0150.00916.65
7.4.210.0000.01616.62
7.4.200.0050.00216.50
7.4.160.0060.00916.45
7.4.150.0070.01417.40
7.4.140.0110.01017.86
7.4.130.0070.01016.45
7.4.120.0100.00916.53
7.4.110.0150.00316.77
7.4.100.0090.01316.57
7.4.90.0030.01416.60
7.4.80.0040.01319.39
7.4.70.0060.01316.39
7.4.60.0100.00716.52
7.4.50.0000.01416.48
7.4.40.0060.01016.46
7.4.30.0130.00916.49
7.4.00.0130.00014.84
7.3.330.0030.00313.21
7.3.320.0000.00613.29
7.3.310.0070.00016.41
7.3.300.0070.00016.34
7.3.290.0080.00916.30
7.3.280.0050.01116.38
7.3.270.0110.01117.40
7.3.260.0140.00316.35
7.3.250.0140.00416.43
7.3.240.0080.01016.47
7.3.230.0100.00616.39
7.3.210.0040.01716.40
7.3.200.0030.01916.42
7.3.190.0150.00616.52
7.3.180.0090.00616.36
7.3.170.0110.00616.56
7.3.160.0100.01316.48
7.3.10.0090.00316.39
7.3.00.0100.00316.66
7.2.330.0130.00416.67
7.2.320.0130.00616.68
7.2.310.0060.01016.52
7.2.300.0080.01016.55
7.2.290.0180.00016.49
7.2.130.0030.01016.90
7.2.120.0080.00416.74
7.2.110.0000.00916.87
7.2.100.0000.01016.91
7.2.90.0030.00916.75
7.2.80.0060.00616.96
7.2.70.0040.00716.91
7.2.60.0050.00716.62
7.2.50.0060.00616.84
7.2.40.0080.00416.99
7.2.30.0060.00616.64
7.2.20.0110.00316.69
7.2.10.0040.00816.59
7.2.00.0060.00718.17
7.1.250.0090.00015.75
7.1.200.0080.00815.77
7.1.100.0070.00417.86
7.1.70.0060.00916.97
7.1.60.0120.01219.36
7.1.50.0030.00916.81
7.1.00.0000.08022.58
7.0.200.0000.00716.62
7.0.60.0030.07019.80
7.0.50.0030.05317.80
7.0.40.0030.04720.31
7.0.30.0230.06020.21
7.0.20.0200.06320.31
7.0.10.0100.09020.21
7.0.00.0130.07720.05
5.6.280.0070.06021.09
5.6.210.0030.07020.62
5.6.200.0070.04718.13
5.6.190.0100.06320.43
5.6.180.0430.04020.68
5.6.170.0230.06320.45
5.6.160.0100.03720.50
5.6.150.0100.04718.18
5.6.140.0070.05018.19
5.6.130.0030.08318.22
5.6.120.0030.08720.89
5.6.110.0000.08320.97
5.6.100.0030.04021.13
5.6.90.0030.04721.00
5.6.80.0000.04320.36
5.5.350.0130.03320.39
5.5.340.0170.07017.93
5.5.330.0070.05320.41
5.5.320.0030.05020.36
5.5.310.0200.03720.13
5.5.300.0070.08317.98
5.5.290.0000.04318.03
5.5.280.0000.04320.86
5.5.270.0030.08020.96
5.5.260.0030.05720.87
5.5.250.0070.07020.77
5.5.240.0100.08020.25

preferences:
60.11 ms | 401 KiB | 5 Q