3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Query(){ # read params $args = func_get_args(); # replace parameter after parameter, escape (SQL injection) and non-numeric encapsule with '' for($i=1; $i < Count($args); $i++){ if(get_magic_quotes_gpc() == 0) $arg = mysql_real_escape_string($args[$i]); else $arg = mysql_real_escape_string(stripslashes($args[$i])); $arg = strtr($arg, array('#'=>'[hash]')); if($arg != 'NULL') $arg = (is_numeric($arg))? $arg : "'".$arg."'"; $args[0] = substr_replace($args[0], $arg, strPos($args[0], '#'),1); } $args[0] .= ';'; return $args[0]; } $ID = 501; $check_sql = Query("update user_info set login_counter=login_counter+1, date_last_login=NOW() where id_twitter = #", $id); ECHO $check_sql;

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.0060.00918.43
8.3.50.0070.01422.12
8.3.40.0070.01118.63
8.3.30.0030.01019.05
8.3.20.0040.00420.13
8.3.10.0040.00420.66
8.3.00.0110.00017.75
8.2.180.0160.00316.75
8.2.170.0090.00622.96
8.2.160.0040.01420.43
8.2.150.0040.00424.18
8.2.140.0030.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00422.00
8.2.110.0030.00721.86
8.2.100.0000.01217.83
8.2.90.0070.00018.97
8.2.80.0030.00617.97
8.2.70.0070.00317.50
8.2.60.0040.00417.89
8.2.50.0060.00318.07
8.2.40.0030.00618.19
8.2.30.0040.00419.51
8.2.20.0000.00717.75
8.2.10.0040.00418.22
8.2.00.0040.00417.80
8.1.280.0160.00025.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.88
8.1.230.0070.00419.01
8.1.220.0040.00417.80
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0050.00318.49
8.1.160.0040.00421.96
8.1.150.0030.00618.89
8.1.140.0000.00717.45
8.1.130.0070.00017.82
8.1.120.0070.00017.48
8.1.110.0040.00417.36
8.1.100.0040.00417.36
8.1.90.0030.00517.46
8.1.80.0000.00717.42
8.1.70.0040.00417.35
8.1.60.0000.00917.47
8.1.50.0050.00317.52
8.1.40.0080.00017.57
8.1.30.0080.00017.66
8.1.20.0000.00717.63
8.1.10.0030.00517.62
8.1.00.0000.00817.42
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.55
8.0.270.0000.00717.13
8.0.260.0060.00017.13
8.0.250.0030.00316.90
8.0.240.0080.00017.05
8.0.230.0040.00417.02
8.0.220.0040.00416.94
8.0.210.0000.00716.97
8.0.200.0030.00316.99
8.0.190.0030.00617.06
8.0.180.0030.00416.95
8.0.170.0000.00816.92
8.0.160.0000.00717.02
8.0.150.0000.00716.90
8.0.140.0020.00516.88
8.0.130.0000.00513.32
8.0.120.0040.00416.76
8.0.110.0000.00817.00
8.0.100.0040.00417.01
8.0.90.0040.00416.94
8.0.80.0060.00916.84
8.0.70.0030.00517.01
8.0.60.0000.00716.91
8.0.50.0080.00016.85
8.0.30.0110.01017.19
8.0.20.0140.00717.40
8.0.10.0000.00816.99
8.0.00.0070.01016.70
7.4.330.0000.00515.00
7.4.320.0030.00316.56
7.4.300.0060.00016.59
7.4.290.0040.00416.52
7.4.280.0030.00416.48
7.4.270.0030.00316.60
7.4.260.0000.00716.37
7.4.250.0080.00016.57
7.4.240.0000.00716.51
7.4.230.0070.00016.41
7.4.220.0110.01516.54
7.4.210.0060.01316.63
7.4.200.0070.00016.34
7.4.160.0120.00316.48
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0080.00916.49
7.4.120.0070.01016.46
7.4.110.0090.00916.54
7.4.100.0100.00716.37
7.4.90.0060.01216.44
7.4.80.0180.00319.39
7.4.70.0090.00616.58
7.4.60.0080.00816.57
7.4.50.0030.00516.55
7.4.40.0030.01316.52
7.4.30.0120.00416.64
7.4.00.0070.01114.96
7.3.330.0060.00013.20
7.3.320.0000.00513.24
7.3.310.0000.00816.33
7.3.300.0030.00316.38
7.3.290.0080.00816.35
7.3.280.0070.00816.36
7.3.270.0130.00417.40
7.3.260.0120.00616.40
7.3.250.0100.00716.43
7.3.240.0070.01016.59
7.3.230.0150.00416.56
7.3.210.0130.00316.47
7.3.200.0030.01419.39
7.3.190.0090.00916.44
7.3.180.0090.00616.63
7.3.170.0090.01216.43
7.3.160.0130.00916.39
7.2.330.0030.01316.39
7.2.320.0120.00916.33
7.2.310.0070.01016.60
7.2.300.0060.01216.63
7.2.290.0060.01516.61
7.2.60.0120.00016.83
7.2.00.0030.01219.40
7.1.200.0040.01115.74
7.1.100.0040.00418.14
7.1.70.0100.00017.23
7.1.60.0060.01219.61
7.1.50.0260.01334.89
7.1.00.0030.07722.32
7.0.200.0000.00916.55
7.0.140.0030.07322.10
7.0.60.0000.04320.01
7.0.50.0100.08317.88
7.0.40.0100.08320.24
7.0.30.0470.05020.16
7.0.20.0170.05020.13
7.0.10.0130.08020.30
7.0.00.0130.08020.09
5.6.280.0000.07721.03
5.6.210.0030.08720.76
5.6.200.0030.07018.19
5.6.190.0100.05320.61
5.6.180.0200.03720.54
5.6.170.0300.07320.50
5.6.160.0130.08020.54
5.6.150.0070.07018.29
5.6.140.0070.07718.27
5.6.130.0030.08318.28
5.6.120.0130.05021.03
5.6.110.0200.05721.15
5.6.100.0000.06321.01
5.6.90.0030.04020.88
5.6.80.0130.05720.36
5.6.70.0130.08020.50
5.5.350.0100.06720.43
5.5.340.0000.09318.03
5.5.330.0030.04720.44
5.5.320.0430.05720.27
5.5.310.0230.04320.27
5.5.300.0070.08017.99
5.5.290.0000.04317.99
5.5.280.0100.08020.73
5.5.270.0000.07720.93
5.5.260.0070.08320.87
5.5.250.0170.07020.62
5.5.240.0000.07720.13
5.4.450.0230.05719.31
5.4.440.0700.05319.55
5.4.430.0770.06019.47
5.4.420.0100.05319.57
5.4.410.1000.05019.06
5.4.400.0130.05319.06
5.4.390.0100.06319.38
5.4.380.0370.06318.58
5.4.370.0470.05318.74
5.4.360.0430.07718.70
5.4.350.0430.07718.57
5.4.340.0400.05318.71
5.4.320.0080.03812.50
5.4.310.0110.03412.50
5.4.300.0060.03812.50
5.4.290.0050.04512.50
5.4.280.0090.03312.40
5.4.270.0050.03712.40
5.4.260.0080.03612.40
5.4.250.0080.03412.40
5.4.240.0060.03612.40
5.4.230.0070.03612.39
5.4.220.0050.03812.39
5.4.210.0030.04212.39
5.4.200.0040.04112.39
5.4.190.0090.04612.39
5.4.180.0060.03612.39
5.4.170.0050.03712.39
5.4.160.0050.03812.39
5.4.150.0040.04012.38
5.4.140.0050.04012.07
5.4.130.0040.04112.06
5.4.120.0050.03712.01
5.4.110.0080.04212.02
5.4.100.0100.04012.01
5.4.90.0070.03412.01
5.4.80.0070.04012.01
5.4.70.0090.03212.01
5.4.60.0070.04012.01
5.4.50.0050.03612.01
5.4.40.0080.03212.00
5.4.30.0070.03611.99
5.4.20.0060.03811.99
5.4.10.0050.03611.99
5.4.00.0060.04111.48
5.3.290.0080.04812.80
5.3.280.0100.03912.71
5.3.270.0140.04612.73
5.3.260.0090.03712.72
5.3.250.0090.03612.72
5.3.240.0050.04212.72
5.3.230.0070.03812.71
5.3.220.0080.03612.68
5.3.210.0060.04112.68
5.3.200.0080.03512.68
5.3.190.0070.03812.68
5.3.180.0050.04312.67
5.3.170.0040.03812.67
5.3.160.0090.03812.67
5.3.150.0080.04812.68
5.3.140.0090.03312.66
5.3.130.0060.03912.66
5.3.120.0070.04012.66
5.3.110.0080.03912.66
5.3.100.0060.04212.12
5.3.90.0060.03712.10
5.3.80.0080.04012.09
5.3.70.0080.03712.09
5.3.60.0080.03412.08
5.3.50.0070.03612.03
5.3.40.0050.03912.03
5.3.30.0080.03411.98
5.3.20.0020.03911.77
5.3.10.0040.03711.73
5.3.00.0030.04211.72
5.2.170.0040.0329.22
5.2.160.0040.0389.22
5.2.150.0030.0329.23
5.2.140.0010.0349.22
5.2.130.0050.0369.18
5.2.120.0050.0279.18
5.2.110.0040.0299.19
5.2.100.0040.0289.18
5.2.90.0030.0309.18
5.2.80.0040.0319.18
5.2.70.0030.0319.18
5.2.60.0070.0329.13
5.2.50.0040.0329.10
5.2.40.0060.0309.08
5.2.30.0060.0289.05
5.2.20.0040.0299.04
5.2.10.0020.0338.95
5.2.00.0100.0318.81
5.1.60.0020.0268.09
5.1.50.0040.0248.09
5.1.40.0020.0278.07
5.1.30.0030.0308.42
5.1.20.0020.0308.45
5.1.10.0060.0288.16
5.1.00.0080.0318.16
5.0.50.0040.0246.66
5.0.40.0040.0246.52
5.0.30.0060.0376.33
5.0.20.0050.0246.30
5.0.10.0020.0236.28
5.0.00.0030.0316.27
4.4.90.0040.0154.78
4.4.80.0020.0174.75
4.4.70.0060.0194.76
4.4.60.0020.0184.75
4.4.50.0020.0244.77
4.4.40.0030.0254.71
4.4.30.0030.0224.76
4.4.20.0030.0164.84
4.4.10.0030.0164.85
4.4.00.0050.0244.76
4.3.110.0040.0234.66
4.3.100.0040.0154.66
4.3.90.0040.0144.63
4.3.80.0020.0324.58
4.3.70.0020.0164.63
4.3.60.0030.0154.62
4.3.50.0020.0174.63
4.3.40.0060.0234.54
4.3.30.0010.0173.33
4.3.20.0040.0153.31
4.3.10.0050.0133.27
4.3.00.0030.0237.39

preferences:
47.89 ms | 401 KiB | 5 Q