3v4l.org

run code in 300+ PHP versions simultaneously
<?php function escape_string($s) { $r = ''; for($i=0;@$s[$i];$i++) { if($s[$i]!='\'') if($s[$i]!='"') if($s[$i]!='\\') if($s[$i]!="\n") if($s[$i]!="\r") if($s[$i]!="\x1a") { $r .= $s[$i]; continue; } $r .= '?'; } return $r; } $password = '\' or \"1\"=\"1\"'; $password = escape_string($password); $query = "select 1 from auth where password='{$password}'"; 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.40.0140.00718.84
8.3.30.0070.00719.18
8.3.20.0050.00320.38
8.3.10.0040.00421.76
8.3.00.0080.00022.43
8.2.170.0100.00322.96
8.2.160.0070.00722.18
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00417.50
8.2.110.0000.00921.00
8.2.100.0110.00017.91
8.2.90.0070.00020.55
8.2.80.0000.00820.50
8.2.70.0000.00817.75
8.2.60.0070.00318.05
8.2.50.0060.00318.07
8.2.40.0060.00318.22
8.2.30.0040.00418.12
8.2.20.0000.00817.76
8.2.10.0040.00418.00
8.2.00.0060.00317.99
8.1.270.0040.00420.25
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00822.23
8.1.230.0070.00420.90
8.1.220.0000.00817.74
8.1.210.0040.00418.89
8.1.200.0030.00617.23
8.1.190.0100.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00618.50
8.1.160.0000.00718.80
8.1.150.0080.00018.88
8.1.140.0040.00417.32
8.1.130.0030.00317.68
8.1.120.0000.00717.43
8.1.110.0000.00717.36
8.1.100.0030.00317.36
8.1.90.0000.00717.36
8.1.80.0040.00417.34
8.1.70.0000.00817.35
8.1.60.0040.00417.55
8.1.50.0030.00617.49
8.1.40.0000.00717.48
8.1.30.0000.00817.57
8.1.20.0060.00317.54
8.1.10.0030.00617.52
8.1.00.0030.00617.53
8.0.300.0040.00420.05
8.0.290.0050.00216.75
8.0.280.0030.00318.44
8.0.270.0040.00417.25
8.0.260.0070.00017.28
8.0.250.0000.00717.05
8.0.240.0000.00716.88
8.0.230.0070.00017.02
8.0.220.0030.00316.98
8.0.210.0040.00416.98
8.0.200.0030.00316.89
8.0.190.0040.00416.96
8.0.180.0040.00416.94
8.0.170.0040.00416.99
8.0.160.0000.00916.91
8.0.150.0040.00316.93
8.0.140.0040.00416.82
8.0.130.0050.00013.43
8.0.120.0000.00716.91
8.0.110.0020.00516.96
8.0.100.0080.00016.86
8.0.90.0040.00416.82
8.0.80.0090.00617.00
8.0.70.0050.00316.81
8.0.60.0030.00516.98
8.0.50.0000.00716.97
8.0.30.0100.00917.20
8.0.20.0100.00817.40
8.0.10.0000.00717.14
8.0.00.0120.00716.84
7.4.330.0000.00615.04
7.4.320.0000.00716.61
7.4.300.0000.00616.63
7.4.290.0070.00016.58
7.4.280.0040.00416.64
7.4.270.0070.00016.57
7.4.260.0050.00316.47
7.4.250.0030.00516.45
7.4.240.0030.00316.51
7.4.230.0040.00416.71
7.4.220.0090.01016.54
7.4.210.0060.00916.48
7.4.200.0050.00216.43
7.4.160.0110.00416.65
7.4.150.0100.01017.40
7.4.140.0130.00717.86
7.4.130.0110.01016.54
7.4.120.0070.01116.62
7.4.110.0040.01316.61
7.4.100.0180.00016.42
7.4.90.0090.00916.56
7.4.80.0060.01319.39
7.4.70.0070.01016.56
7.4.60.0070.01016.73
7.4.50.0090.00016.77
7.4.40.0100.00716.32
7.4.30.0090.01316.44
7.4.10.0090.00915.18
7.4.00.0050.01214.71
7.3.330.0000.00613.29
7.3.320.0000.00513.45
7.3.310.0000.00716.32
7.3.300.0070.00016.46
7.3.290.0080.00716.41
7.3.280.0110.00816.43
7.3.270.0130.00617.40
7.3.260.0100.01016.52
7.3.250.0100.00816.44
7.3.240.0110.00816.49
7.3.230.0030.01416.47
7.3.210.0060.00916.32
7.3.200.0130.00919.39
7.3.190.0080.00816.27
7.3.180.0030.01316.32
7.3.170.0090.01216.52
7.3.160.0170.00716.49
7.3.130.0090.00914.78
7.3.120.0070.01014.94
7.3.110.0060.01314.94
7.3.100.0120.00315.07
7.3.90.0050.00514.94
7.3.80.0060.00614.89
7.3.70.0000.01314.99
7.3.60.0120.00314.95
7.3.50.0060.00914.55
7.3.40.0030.01214.70
7.3.30.0080.00614.65
7.3.20.0110.00416.62
7.3.10.0060.00616.87
7.3.00.0030.01316.72
7.2.330.0060.01216.88
7.2.320.0100.01016.78
7.2.310.0060.00916.80
7.2.300.0070.01116.62
7.2.290.0100.01316.56
7.2.260.0100.01015.07
7.2.250.0030.00915.14
7.2.240.0000.01415.35
7.2.230.0040.01114.89
7.2.220.0000.01115.38
7.2.210.0030.01015.18
7.2.200.0090.00915.25
7.2.190.0110.00715.20
7.2.180.0100.00714.97
7.2.170.0030.01015.22
7.2.160.0070.00714.80
7.2.150.0040.00717.00
7.2.140.0040.01117.08
7.2.130.0070.00417.02
7.2.120.0030.01316.95
7.2.110.0030.01217.09
7.2.100.0060.00917.16
7.2.90.0100.01016.75
7.2.80.0070.01017.08
7.2.70.0100.00716.87
7.2.60.0100.00317.05
7.2.50.0080.00816.96
7.2.40.0030.01016.88
7.2.30.0080.00417.07
7.2.20.0030.01516.96
7.2.10.0000.01417.05
7.2.00.0040.01116.92
7.1.330.0040.01115.85
7.1.320.0030.01015.77
7.1.310.0000.00915.52
7.1.300.0070.00715.96
7.1.290.0090.00316.02
7.1.280.0090.00315.73
7.1.270.0110.00415.66
7.1.260.0040.00715.80
7.1.250.0030.01015.73
7.1.240.0000.01615.83
7.1.230.0030.01015.74
7.1.220.0070.00315.88
7.1.210.0030.00815.78
7.1.200.0100.00616.01
7.1.190.0120.00315.96
7.1.180.0040.01115.99
7.1.170.0030.01015.93
7.1.160.0000.00815.94
7.1.150.0060.00615.75
7.1.140.0030.00915.93
7.1.130.0090.00615.56
7.1.120.0060.00315.82
7.1.110.0030.00915.73
7.1.100.0000.01515.86
7.1.90.0040.01215.86
7.1.80.0040.01115.74
7.1.70.0040.00716.38
7.1.60.0110.00617.54
7.1.50.0090.01016.30
7.1.40.0030.01115.87
7.1.30.0060.00615.98
7.1.20.0120.00815.96
7.1.10.0030.01315.54
7.1.00.0050.04519.03
7.0.330.0100.00315.23
7.0.320.0070.00415.15
7.0.310.0090.00915.43
7.0.300.0090.00615.17
7.0.290.0040.00415.44
7.0.280.0000.01315.32
7.0.270.0000.01515.39
7.0.260.0030.00615.26
7.0.250.0030.00915.44
7.0.240.0050.00315.43
7.0.230.0070.00615.23
7.0.220.0000.01215.61
7.0.210.0070.00415.37
7.0.200.0050.00616.03
7.0.190.0060.00815.46
7.0.180.0080.00815.45
7.0.170.0070.00715.38
7.0.160.0080.00515.24
7.0.150.0150.00015.55
7.0.140.0140.00415.43
7.0.130.0060.00615.38
7.0.120.0070.01015.26
7.0.110.0090.00315.54
7.0.100.0150.03817.66
7.0.90.0060.02617.73
7.0.80.0070.04217.52
7.0.70.0100.02517.90
7.0.60.0070.04017.57
7.0.50.0030.03417.81
7.0.40.0070.04216.82
7.0.30.0030.04516.84
7.0.20.0050.04016.78
7.0.10.0100.03916.75
7.0.00.0100.02216.79
5.6.400.0030.01014.39
5.6.390.0030.00614.32
5.6.380.0070.00414.55
5.6.370.0030.01314.62
5.6.360.0060.00914.28
5.6.350.0000.01214.49
5.6.340.0040.00414.57
5.6.330.0030.01314.21
5.6.320.0070.00714.60
5.6.310.0090.00614.18
5.6.300.0110.00714.68
5.6.290.0100.01014.73
5.6.280.0060.03917.91
5.6.270.0060.00314.54
5.6.260.0000.00914.69
5.6.250.0080.03917.55
5.6.240.0030.04317.48
5.6.230.0050.04317.49
5.6.220.0100.04017.49
5.6.210.0070.04317.64
5.6.200.0090.04417.74
5.6.190.0100.04317.74
5.6.180.0120.03817.79
5.6.170.0060.02617.54
5.6.160.0110.03417.67
5.6.150.0090.04617.75
5.6.140.0030.05017.59
5.6.130.0030.05317.64
5.6.120.0080.04317.61
5.6.110.0020.05017.70
5.6.100.0080.04317.54
5.6.90.0030.04517.67
5.6.80.0030.03417.31
5.6.70.0120.03717.59
5.6.60.0060.04317.50
5.6.50.0060.04117.32
5.6.40.0080.03717.45
5.6.30.0100.03517.47
5.6.20.0080.04017.30
5.6.10.0100.03917.43
5.6.00.0080.04117.35
5.5.380.0050.04817.53
5.5.370.0110.03917.49
5.5.360.0060.03417.48
5.5.350.0050.04117.47
5.5.340.0130.04217.71
5.5.330.0060.02617.51
5.5.320.0030.04517.64
5.5.310.0070.04117.57
5.5.300.0100.04217.69
5.5.290.0050.05017.41
5.5.280.0020.04717.52
5.5.270.0100.04317.62
5.5.260.0100.04517.66
5.5.250.0100.03817.39
5.5.240.0060.04017.19
5.5.230.0070.04317.16
5.5.220.0080.04117.34
5.5.210.0070.04317.25
5.5.200.0050.03217.36
5.5.190.0070.03917.25
5.5.180.0050.04517.22
5.5.170.0110.00414.50
5.5.160.0080.04017.16
5.5.150.0070.04217.22
5.5.140.0050.04217.21
5.5.130.0100.02317.26
5.5.120.0050.04217.19
5.5.110.0050.04517.40
5.5.100.0110.02017.25
5.5.90.0080.03717.19
5.5.80.0100.03317.23
5.5.70.0050.04317.27
5.5.60.0080.03516.95
5.5.50.0100.03717.31
5.5.40.0080.03716.98
5.5.30.0030.04717.29
5.5.20.0070.03917.04
5.5.10.0000.05017.28
5.5.00.0030.04417.24
5.4.450.0050.04816.42
5.4.440.0070.03816.33
5.4.430.0050.04516.41
5.4.420.0070.03716.49
5.4.410.0070.03016.28
5.4.400.0080.04316.21
5.4.390.0030.03216.25
5.4.380.0100.03716.24
5.4.370.0040.04116.28
5.4.360.0080.03916.21
5.4.350.0020.04716.21
5.4.340.0040.04116.25
5.4.330.0100.00313.46
5.4.320.0070.03916.17
5.4.310.0120.02016.15
5.4.300.0050.04116.15
5.4.290.0060.04116.25
5.4.280.0030.04416.31
5.4.270.0070.03716.23
5.4.260.0030.03416.25
5.4.250.0050.04216.27
5.4.240.0060.03816.29
5.4.230.0090.04016.17
5.4.220.0030.03916.20
5.4.210.0030.03416.29
5.4.200.0120.03316.20
5.4.190.0050.03716.20
5.4.180.0030.04216.29
5.4.170.0100.03816.25
5.4.160.0050.03716.29
5.4.150.0080.03316.24
5.4.140.0050.03514.96
5.4.130.0060.04014.89
5.4.120.0070.03714.92
5.4.110.0100.02014.93
5.4.100.0040.04014.96
5.4.90.0120.03514.96
5.4.80.0100.03314.98
5.4.70.0030.02514.96
5.4.60.0050.04114.85
5.4.50.0050.03614.93
5.4.40.0050.04214.96
5.4.30.0090.03514.86
5.4.20.0030.02814.91
5.4.10.0100.03614.85
5.4.00.0110.03314.54
5.3.290.0030.07314.65
5.3.280.0100.04014.66
5.3.270.0070.07714.70
5.3.260.0070.07014.67
5.3.250.0100.06314.59
5.3.240.0070.07314.61
5.3.230.0100.06714.53
5.3.220.0100.07014.52
5.3.210.0100.07714.70
5.3.200.0130.06714.57
5.3.190.0100.07014.49
5.3.180.0100.06714.59
5.3.170.0100.06714.60
5.3.160.0070.07714.52
5.3.150.0070.05714.63
5.3.140.0130.07014.59
5.3.130.0100.07314.48
5.3.120.0030.07714.55
5.3.110.0000.08314.60
5.3.100.0100.05714.12
5.3.90.0070.07314.12
5.3.80.0070.07014.13
5.3.70.0070.04314.12
5.3.60.0070.07314.12
5.3.50.0100.06714.12
5.3.40.0030.07314.12
5.3.30.0000.07714.12
5.3.20.0070.07014.12
5.3.10.0030.07714.12
5.3.00.0070.07014.12
5.2.170.0030.06714.12
5.2.160.0030.06014.12
5.2.150.0070.03714.12
5.2.140.0100.06014.12
5.2.130.0070.06314.12
5.2.120.0030.06014.12
5.2.110.0070.06014.12
5.2.100.0130.05714.12
5.2.90.0030.06314.12
5.2.80.0000.04314.12
5.2.70.0030.06314.12
5.2.60.0030.06314.12
5.2.50.0030.04014.12
5.2.40.0130.04014.12
5.2.30.0070.05714.12
5.2.20.0000.03714.12
5.2.10.0100.03014.12
5.2.00.0030.05714.12
5.1.60.0100.04714.12
5.1.50.0070.05314.12
5.1.40.0000.05714.12
5.1.30.0100.05014.12
5.1.20.0070.05714.12
5.1.10.0000.03714.12
5.1.00.0030.05714.12
5.0.50.0030.04714.12
5.0.40.0030.04314.12
5.0.30.0000.06714.12
5.0.20.0030.04014.12
5.0.10.0030.04314.12
5.0.00.0030.06314.12
4.4.90.0030.03714.12
4.4.80.0000.02014.12
4.4.70.0030.03714.12
4.4.60.0070.03014.12
4.4.50.0070.03014.12
4.4.40.0070.05014.12
4.4.30.0030.03314.12
4.4.20.0100.02314.12
4.4.10.0000.04014.12
4.4.00.0030.05314.12
4.3.110.0030.03314.12
4.3.100.0070.02714.12
4.3.90.0000.03714.12
4.3.80.0000.05714.12
4.3.70.0000.02714.12
4.3.60.0070.03314.12
4.3.50.0030.03714.12
4.3.40.0000.05014.12
4.3.30.0000.02014.12
4.3.20.0070.03014.12
4.3.10.0070.03014.12
4.3.00.0070.02314.12

preferences:
54.37 ms | 400 KiB | 5 Q