3v4l.org

run code in 300+ PHP versions simultaneously
<?php // We didn't check $_POST['password'], it could be anything the user wanted! For example: $username = 'aidan'; $password = "' OR ''='"; $username1 = mysql_real_escape_string('aidan'); $password1 = mysql_real_escape_string("' OR ''='"); // Query database to check if there are any matching users $query = "SELECT * FROM users WHERE user='$username' AND password='$password'"; // This means the query sent to MySQL would be: echo $query; ?>

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.0150.00316.88
8.3.50.0080.01221.95
8.3.40.0110.00419.02
8.3.30.0140.00019.01
8.3.20.0040.00420.14
8.3.10.0080.00021.62
8.3.00.0110.00017.34
8.2.180.0060.01218.29
8.2.170.0130.00322.96
8.2.160.0040.01122.11
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00326.16
8.2.120.0050.00319.54
8.2.110.0100.00019.39
8.2.100.0060.00617.63
8.2.90.0000.00719.05
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0030.00619.94
8.2.30.0060.00317.98
8.2.20.0040.00417.62
8.2.10.0000.00818.09
8.2.00.0070.00017.68
8.1.280.0100.01025.92
8.1.270.0030.00620.50
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00322.19
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00320.37
8.1.160.0020.00521.96
8.1.150.0000.00718.83
8.1.140.0050.00217.36
8.1.130.0030.00317.82
8.1.120.0000.00717.39
8.1.110.0000.00717.42
8.1.100.0050.00317.40
8.1.90.0070.00017.40
8.1.80.0040.00317.40
8.1.70.0000.00717.28
8.1.60.0030.00617.51
8.1.50.0050.00217.54
8.1.40.0040.00417.57
8.1.30.0060.00317.67
8.1.20.0030.00617.64
8.1.10.0000.00817.53
8.1.00.0110.00017.44
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0040.00417.19
8.0.260.0000.00717.31
8.0.250.0000.00617.03
8.0.240.0040.00416.88
8.0.230.0040.00416.86
8.0.220.0050.00316.95
8.0.210.0000.00716.79
8.0.200.0040.00416.94
8.0.190.0040.00416.93
8.0.180.0030.00516.80
8.0.170.0060.00316.93
8.0.160.0000.00716.84
8.0.150.0030.00616.73
8.0.140.0000.00716.86
8.0.130.0000.00513.29
8.0.120.0050.00316.91
8.0.110.0050.00216.90
8.0.100.0060.00316.77
8.0.90.0030.00517.02
8.0.80.0040.01116.96
8.0.70.0040.00416.87
8.0.60.0000.00816.96
8.0.50.0050.00216.93
8.0.30.0100.01316.82
8.0.20.0170.00217.40
8.0.10.0050.00316.87
8.0.00.0070.01016.94
7.4.330.0050.00015.03
7.4.320.0030.00316.45
7.4.300.0000.00816.53
7.4.290.0060.00316.52
7.4.280.0040.00416.55
7.4.270.0040.00416.50
7.4.260.0070.00016.50
7.4.250.0040.00416.58
7.4.240.0030.00416.56
7.4.230.0070.00016.32
7.4.220.0100.01016.61
7.4.210.0100.01016.68
7.4.200.0000.00716.40
7.4.160.0040.01216.50
7.4.150.0160.00917.40
7.4.140.0080.01117.86
7.4.130.0080.01016.44
7.4.120.0010.01816.48
7.4.110.0150.00616.52
7.4.100.0100.00716.55
7.4.90.0100.01016.43
7.4.80.0120.01019.39
7.4.70.0130.00316.63
7.4.60.0090.00616.56
7.4.50.0050.00316.59
7.4.40.0130.00616.57
7.4.30.0100.01416.48
7.4.10.0170.00014.95
7.4.00.0050.01014.93
7.3.330.0030.00613.02
7.3.320.0130.00013.02
7.3.310.0040.00416.13
7.3.300.0000.00616.18
7.3.290.0070.00016.12
7.3.280.0070.00816.21
7.3.270.0070.01117.40
7.3.260.0100.00716.69
7.3.250.0090.00816.45
7.3.240.0100.00716.55
7.3.230.0140.00316.59
7.3.210.0100.01016.45
7.3.200.0070.01019.39
7.3.190.0130.00716.32
7.3.180.0040.01216.54
7.3.170.0030.01316.27
7.3.160.0110.01116.53
7.3.130.0000.01314.95
7.3.120.0080.00914.71
7.3.110.0060.01314.74
7.3.100.0020.01414.72
7.3.90.0090.00514.90
7.3.80.0070.00714.78
7.3.70.0040.00914.69
7.3.60.0060.00814.59
7.3.50.0050.00914.69
7.3.40.0030.00914.62
7.3.30.0030.01214.60
7.3.20.0070.00716.63
7.3.10.0060.00416.56
7.3.00.0040.00816.39
7.2.330.0090.01216.62
7.2.320.0090.01216.43
7.2.310.0040.01516.49
7.2.300.0130.00316.42
7.2.290.0150.00616.46
7.2.260.0080.01214.86
7.2.250.0060.01214.63
7.2.240.0060.01214.82
7.2.230.0110.00414.93
7.2.220.0080.00514.62
7.2.210.0060.00814.78
7.2.200.0090.00514.71
7.2.190.0000.01614.75
7.2.180.0030.01014.81
7.2.170.0050.01014.99
7.2.160.0100.00714.77
7.2.150.0080.00616.81
7.2.140.0070.00716.62
7.2.130.0060.00616.88
7.2.120.0000.01016.77
7.2.110.0000.01416.53
7.2.100.0050.00516.70
7.2.90.0000.01416.66
7.2.80.0060.01016.83
7.2.70.0100.00616.93
7.2.60.0070.01016.76
7.2.50.0100.00716.80
7.2.40.0110.00416.54
7.2.30.0100.00716.85
7.2.20.0110.00316.57
7.2.10.0030.01416.57
7.2.00.0070.00517.99
7.1.330.0030.01115.57
7.1.320.0070.00715.47
7.1.310.0060.00615.57
7.1.300.0060.00715.61
7.1.290.0080.00915.68
7.1.280.0080.00315.60
7.1.270.0030.00615.55
7.1.260.0090.00315.58
7.1.250.0000.01315.57
7.1.240.0080.00315.72
7.1.230.0060.00615.68
7.1.220.0040.01215.70
7.1.210.0000.01215.71
7.1.200.0020.00815.66
7.1.190.0030.00815.62
7.1.180.0070.01015.61
7.1.170.0070.01015.59
7.1.160.0030.00615.62
7.1.150.0060.01015.53
7.1.140.0120.00615.77
7.1.130.0040.00815.35
7.1.120.0030.01115.78
7.1.110.0060.00915.39
7.1.100.0030.00816.70
7.1.90.0000.01015.76
7.1.80.0040.01115.75
7.1.70.0040.00816.41
7.1.60.0020.01817.53
7.1.50.0010.00816.08
7.1.40.0000.00815.67
7.1.30.0070.00715.49
7.1.20.0040.01115.65
7.1.10.0040.00415.51
7.1.00.0020.04319.00
7.0.330.0040.00415.20
7.0.320.0100.00615.33
7.0.310.0030.01015.13
7.0.300.0030.00615.11
7.0.290.0000.01215.29
7.0.280.0070.01015.36
7.0.270.0040.01115.02
7.0.260.0060.01115.23
7.0.250.0060.00315.36
7.0.240.0040.00815.47
7.0.230.0040.00415.33
7.0.220.0030.01015.46
7.0.210.0000.01415.44
7.0.200.0130.00915.12
7.0.190.0060.00315.48
7.0.180.0110.00315.35
7.0.170.0080.00615.30
7.0.160.0040.01115.42
7.0.150.0030.00715.29
7.0.140.0050.03718.76
7.0.130.0060.00615.38
7.0.120.0040.00815.33
7.0.110.0080.00814.97
7.0.100.0060.00915.13
7.0.90.0030.00915.02
7.0.80.0070.00715.44
7.0.70.0080.04517.62
7.0.60.0050.04917.64
7.0.50.0090.04116.52
7.0.40.0070.04217.01
7.0.30.0180.03316.90
7.0.20.0220.03216.81
7.0.10.0250.03516.90
7.0.00.0100.03316.90
5.6.400.0040.01414.33
5.6.390.0080.00313.94
5.6.380.0050.00514.18
5.6.370.0090.00314.25
5.6.360.0070.00713.98
5.6.350.0040.00814.21
5.6.340.0070.00714.13
5.6.330.0030.00614.15
5.6.320.0030.01014.22
5.6.310.0030.01013.85
5.6.300.0000.01413.86
5.6.290.0040.00414.19
5.6.280.0060.03817.64
5.6.270.0060.00614.26
5.6.260.0100.00714.24
5.6.250.0090.00614.14
5.6.240.0030.01014.32
5.6.230.0030.01314.26
5.6.220.0060.00914.02
5.6.210.0080.04117.41
5.6.200.0080.03616.20
5.6.190.0060.04617.29
5.6.180.0100.02217.19
5.6.170.0230.04417.35
5.6.160.0080.04117.37
5.6.150.0050.02316.34
5.6.140.0050.02316.32
5.6.130.0080.04316.30
5.6.120.0070.04217.72
5.6.110.0120.03817.58
5.6.100.0090.04317.71
5.6.90.0050.04517.57
5.6.80.0100.03717.15
5.6.70.0150.03017.30
5.6.60.0070.01013.96
5.6.50.0110.00414.03
5.6.40.0030.01013.92
5.6.30.0070.01314.09
5.6.20.0090.00614.18
5.6.10.0070.01114.14
5.6.00.0060.00913.85
5.5.380.0060.00613.96
5.5.370.0060.00613.86
5.5.360.0030.00914.09
5.5.350.0030.04017.21
5.5.340.0080.02516.02
5.5.330.0070.04217.12
5.5.320.0050.04517.20
5.5.310.0190.04417.14
5.5.300.0080.04216.08
5.5.290.0050.02716.11
5.5.280.0050.04117.42
5.5.270.0030.02817.53
5.5.260.0110.04117.41
5.5.250.0070.03917.34
5.5.240.0100.04217.12
5.5.230.0040.01113.96
5.5.220.0040.00813.97
5.5.210.0110.00013.84
5.5.200.0080.00814.25
5.5.190.0100.00913.79
5.5.180.0070.00713.84
5.5.170.0030.01313.79
5.5.160.0030.01213.92
5.5.150.0060.00613.93
5.5.140.0030.00913.80
5.5.130.0040.00714.10
5.5.120.0030.00913.86
5.5.110.0060.00913.71
5.5.100.0100.00713.86
5.5.90.0090.00614.07
5.5.80.0100.00714.18
5.5.70.0000.01713.95
5.5.60.0070.01014.14
5.5.50.0030.00613.97
5.5.40.0030.00613.80
5.5.30.0030.00714.13
5.5.20.0030.01313.70
5.5.10.0040.01214.20
5.5.00.0070.01113.96
5.4.450.0360.03816.48
5.4.440.0430.03116.37
5.4.430.0440.02116.63
5.4.420.0370.02916.47
5.4.410.0400.03416.48
5.4.400.0120.02516.23
5.4.390.0100.02716.08
5.4.380.0130.02816.19
5.4.370.0120.03816.17
5.4.360.0110.02716.14
5.4.350.0130.02816.08
5.4.340.0100.03216.06
5.4.330.0060.00613.63
5.4.320.0170.02216.13
5.4.310.0150.02316.06
5.4.300.0120.03016.08
5.4.290.0070.03016.05
5.4.280.0190.03216.06
5.4.270.0130.03016.11
5.4.260.0070.03316.15
5.4.250.0100.03516.06
5.4.240.0130.02716.15
5.4.230.0140.02916.15
5.4.220.0130.03016.15
5.4.210.0110.02816.07
5.4.200.0070.02815.13
5.4.190.0120.03016.06
5.4.180.0130.03116.09
5.4.170.0110.03016.18
5.4.160.0100.02816.16
5.4.150.0150.02516.19
5.4.140.0170.02514.85
5.4.130.0070.03014.94
5.4.120.0100.02914.95
5.4.110.0160.02414.95
5.4.100.0090.03114.99
5.4.90.0110.02714.84
5.4.80.0080.02814.98
5.4.70.0130.03014.88
5.4.60.0080.03014.84
5.4.50.0080.03014.89
5.4.40.0080.02714.86
5.4.30.0080.02714.88
5.4.20.0070.03214.84
5.4.10.0090.02914.84
5.4.00.0100.02814.67
5.3.290.0170.05014.66
5.3.280.0200.04714.57
5.3.270.0000.07014.52
5.3.260.0130.05714.57
5.3.250.0170.05014.61
5.3.240.0230.04314.63
5.3.230.0230.04314.64
5.3.220.0170.05014.53
5.3.210.0100.05714.55
5.3.200.0130.05014.59
5.3.190.0230.05314.59
5.3.180.0170.05014.62
5.3.170.0200.04314.54
5.3.160.0100.05314.54
5.3.150.0130.05314.56
5.3.140.0100.05314.60
5.3.130.0070.06014.50
5.3.120.0170.05014.52
5.3.110.0170.05014.56
5.3.100.0100.05314.06
5.3.90.0130.05314.07
5.3.80.0230.04314.00
5.3.70.0200.04313.98
5.3.60.0200.04313.94
5.3.50.0100.05313.98
5.3.40.0100.05313.96
5.3.30.0200.05013.91
5.3.20.0100.05313.58
5.3.10.0070.05313.73
5.3.00.0170.05313.61
5.2.170.0130.04011.11
5.2.160.0130.05711.09
5.2.150.0200.03311.18
5.2.140.0130.04011.13
5.2.130.0030.04711.18
5.2.120.0130.03711.24
5.2.110.0130.04011.05
5.2.100.0130.04311.14
5.2.90.0170.05311.14
5.2.80.0100.06011.08
5.2.70.0130.04011.25
5.2.60.0100.04311.18
5.2.50.0070.04711.16
5.2.40.0130.03711.02
5.2.30.0070.04310.89
5.2.20.0070.04310.99
5.2.10.0100.04010.85
5.2.00.0130.03710.84
5.1.60.0200.02310.03
5.1.50.0030.0409.97
5.1.40.0070.03710.09
5.1.30.0070.04010.38
5.1.20.0100.03710.33
5.1.10.0170.03010.04
5.1.00.0100.03710.12
5.0.50.0100.0278.67
5.0.40.0130.0278.47
5.0.30.0070.0438.20
5.0.20.0100.0378.23
5.0.10.0030.0338.29
5.0.00.0070.0438.20
4.4.90.0030.0236.01
4.4.80.0000.0275.85
4.4.70.0070.0235.95
4.4.60.0030.0235.91
4.4.50.0070.0205.89
4.4.40.0130.0305.91
4.4.30.0000.0275.91
4.4.20.0000.0275.94
4.4.10.0000.0276.02
4.4.00.0100.0305.95
4.3.110.0070.0205.82
4.3.100.0000.0275.90
4.3.90.0100.0175.90
4.3.80.0030.0375.80
4.3.70.0070.0205.88
4.3.60.0030.0235.84
4.3.50.0070.0205.83
4.3.40.0030.0375.79
4.3.30.0030.0234.68
4.3.20.0030.0234.53
4.3.10.0030.0204.52
4.3.00.0070.0276.94

preferences:
32.68 ms | 401 KiB | 5 Q