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.60.0120.00916.63
8.3.50.0130.00722.00
8.3.40.0110.00319.09
8.3.30.0140.00019.39
8.3.20.0040.00420.21
8.3.10.0000.00823.47
8.3.00.0030.00519.02
8.2.180.0110.00418.41
8.2.170.0070.01022.96
8.2.160.0060.00920.35
8.2.150.0040.00424.18
8.2.140.0110.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0060.00322.12
8.2.100.0060.00617.84
8.2.90.0000.00719.10
8.2.80.0060.00319.28
8.2.70.0050.00317.63
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0000.00819.45
8.2.20.0000.00817.68
8.2.10.0000.00819.91
8.2.00.0040.00419.82
8.1.280.0170.00025.92
8.1.270.0050.00320.38
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.60
8.1.230.0110.00020.85
8.1.220.0000.00818.77
8.1.210.0030.00718.86
8.1.200.0080.00417.22
8.1.190.0040.00417.41
8.1.180.0030.00518.10
8.1.170.0050.00318.72
8.1.160.0000.00718.81
8.1.150.0020.00518.88
8.1.140.0040.00417.55
8.1.130.0070.00018.88
8.1.120.0000.00717.36
8.1.110.0050.00217.43
8.1.100.0000.00717.46
8.1.90.0030.00317.34
8.1.80.0000.00817.46
8.1.70.0000.00717.47
8.1.60.0080.00017.48
8.1.50.0030.00617.45
8.1.40.0050.00317.51
8.1.30.0000.00817.56
8.1.20.0030.00517.65
8.1.10.0060.00317.39
8.1.00.0000.00817.51
8.0.300.0070.00020.05
8.0.290.0040.00417.16
8.0.280.0000.00718.43
8.0.270.0040.00417.16
8.0.260.0060.00018.75
8.0.250.0030.00616.92
8.0.240.0050.00217.05
8.0.230.0030.00316.99
8.0.220.0030.00316.81
8.0.210.0000.00816.90
8.0.200.0030.00317.00
8.0.190.0000.00916.89
8.0.180.0000.00816.98
8.0.170.0000.00816.98
8.0.160.0040.00417.00
8.0.150.0040.00416.79
8.0.140.0000.00716.93
8.0.130.0040.00413.38
8.0.120.0050.00316.92
8.0.110.0070.00016.87
8.0.100.0000.00817.01
8.0.90.0040.00416.95
8.0.80.0030.01316.96
8.0.70.0000.00716.99
8.0.60.0040.00416.95
8.0.50.0000.00716.82
8.0.30.0080.00817.22
8.0.20.0090.01317.40
8.0.10.0070.00016.89
8.0.00.0130.00916.92
7.4.330.0020.00215.03
7.4.320.0000.00616.51
7.4.300.0030.00316.45
7.4.290.0000.00616.59
7.4.280.0050.00316.43
7.4.270.0070.00016.52
7.4.260.0000.00816.44
7.4.250.0060.00316.46
7.4.240.0070.00016.46
7.4.230.0030.00316.58
7.4.220.0130.00716.53
7.4.210.0070.00916.58
7.4.200.0040.00416.59
7.4.160.0030.01316.45
7.4.150.0070.01317.40
7.4.140.0050.01517.86
7.4.130.0110.00816.56
7.4.120.0100.00816.60
7.4.110.0090.01416.39
7.4.100.0180.00616.57
7.4.90.0170.00016.43
7.4.80.0090.00919.39
7.4.70.0160.00416.53
7.4.60.0100.01016.54
7.4.50.0050.00016.63
7.4.40.0030.01616.69
7.4.30.0120.01216.58
7.4.00.0060.00615.08
7.3.330.0000.00513.42
7.3.320.0000.00513.39
7.3.310.0050.00316.45
7.3.300.0030.00316.39
7.3.290.0000.00716.44
7.3.280.0120.00616.43
7.3.270.0070.01017.40
7.3.260.0180.00616.39
7.3.250.0100.00816.46
7.3.240.0110.00616.60
7.3.230.0160.00316.39
7.3.210.0030.01516.33
7.3.200.0070.01016.51
7.3.190.0060.01316.39
7.3.180.0070.00816.50
7.3.170.0060.00916.43
7.3.160.0070.01016.41
7.3.00.0100.00316.75
7.2.330.0100.00716.83
7.2.320.0100.00716.77
7.2.310.0130.00316.66
7.2.300.0060.01016.85
7.2.290.0070.01016.75
7.2.130.0060.00616.71
7.2.120.0060.00917.05
7.2.110.0030.00617.00
7.2.100.0090.00616.93
7.2.90.0070.00716.80
7.2.80.0040.00816.87
7.2.70.0040.00816.66
7.2.60.0140.00416.91
7.2.50.0070.00716.82
7.2.40.0110.00417.10
7.2.30.0030.00916.82
7.2.20.0090.00316.86
7.2.10.0000.01216.79
7.2.00.0030.01018.24
7.1.250.0030.01315.88
7.1.240.0100.00015.87
7.1.230.0030.01315.88
7.1.220.0080.00315.91
7.1.210.0000.01515.48
7.1.200.0030.00615.76
7.1.190.0000.01015.71
7.1.180.0000.01015.84
7.1.170.0000.01015.79
7.1.160.0100.00315.86
7.1.150.0000.01016.03
7.1.140.0110.00015.60
7.1.130.0030.01015.86
7.1.120.0070.00715.90
7.1.110.0030.00715.50
7.1.100.0100.01116.84
7.1.90.0000.01415.95
7.1.80.0030.00915.60
7.1.70.0030.00916.42
7.1.60.0110.00817.48
7.1.50.0060.00816.31
7.1.40.0070.00315.45
7.1.30.0060.00615.69
7.1.20.0030.01215.70
7.1.10.0040.00715.84
7.1.00.0060.04019.02
7.0.330.0000.01215.38
7.0.320.0040.00415.47
7.0.310.0000.00715.20
7.0.300.0000.01415.36
7.0.290.0000.01015.55
7.0.280.0080.00315.36
7.0.270.0040.00415.44
7.0.260.0030.01315.30
7.0.250.0030.01315.41
7.0.240.0100.00315.36
7.0.230.0100.00315.51
7.0.220.0060.00315.57
7.0.210.0000.01015.19
7.0.200.0920.00514.82
7.0.190.0060.00315.24
7.0.180.0030.00615.24
7.0.170.0030.00615.32
7.0.160.0030.00615.42
7.0.150.0030.00915.43
7.0.140.0040.00715.36
7.0.130.0060.00615.52
7.0.120.0000.01515.65
7.0.110.0030.01015.22
7.0.100.0100.00315.41
7.0.90.0030.00615.24
7.0.80.0060.00615.35
7.0.70.0100.00315.62
7.0.60.0030.02917.55
7.0.50.0050.04216.57
7.0.40.0030.04016.68
7.0.30.0230.03216.86
7.0.20.0130.03716.81
7.0.10.0090.02016.75
7.0.00.0030.03416.84
5.6.380.0000.01414.68
5.6.370.0030.00714.29
5.6.360.0030.01014.43
5.6.350.0060.00914.73
5.6.340.0030.00914.41
5.6.330.0030.00714.20
5.6.320.0030.00614.84
5.6.310.0030.00614.58
5.6.300.0040.00814.24
5.6.290.0040.00714.28
5.6.280.0020.04117.87
5.6.270.0030.00714.10
5.6.260.0060.00614.59
5.6.250.0090.00314.48
5.6.240.0060.00614.48
5.6.230.0040.00414.22
5.6.220.0050.00214.24
5.6.210.0080.02817.40
5.6.200.0030.02816.25
5.6.190.0100.04217.75
5.6.180.0220.04317.22
5.6.170.0150.02017.48
5.6.160.0050.02917.58
5.6.150.0040.04016.28
5.6.140.0030.03216.30
5.6.130.0050.02816.27
5.6.120.0050.03317.72
5.6.110.0080.04417.75
5.6.100.0080.04317.81
5.6.90.0050.03517.68
5.6.80.0100.01817.18
5.6.70.0040.00414.24
5.6.60.0050.00514.46
5.6.50.0030.00714.31
5.6.40.0070.00314.39
5.6.30.0090.00314.05
5.6.20.0040.01114.26
5.6.10.0000.01214.31
5.6.00.0040.00814.43
5.5.380.0030.00511.07
5.5.370.0060.00311.22
5.5.360.0080.00311.09
5.5.350.0150.03515.82
5.5.340.0090.02514.69
5.5.330.0000.02715.97
5.5.320.0200.04215.87
5.5.310.0190.03015.87
5.5.300.0020.02414.73
5.5.290.0020.02514.67
5.5.280.0070.04215.88
5.5.270.0130.01716.17
5.5.260.0080.03516.01
5.5.250.0070.04515.90
5.5.240.0000.02415.78
5.5.230.0000.01111.38
5.5.220.0030.00611.17
5.5.210.0030.00310.92
5.5.200.0000.01010.83
5.5.190.0000.00911.28
5.5.180.0030.00311.10
5.5.170.0040.00411.21
5.5.160.0080.00411.13
5.5.150.0030.00710.98
5.5.140.0080.00411.21
5.5.130.0030.01011.14
5.5.120.0040.00711.06
5.5.110.0030.00310.96
5.5.100.0060.00311.05
5.5.90.0000.01211.29
5.5.80.0030.00511.05
5.5.70.0050.00511.07
5.5.60.0060.00011.03
5.5.50.0050.00311.38
5.5.40.0030.00711.32
5.5.30.0030.01011.08
5.5.20.0040.00711.13
5.5.10.0070.00711.37
5.5.00.0000.00911.07
5.4.450.0160.03015.17
5.4.440.0450.02915.51
5.4.430.0070.03015.40
5.4.420.0080.02915.44
5.4.410.0070.03015.31
5.4.400.0030.03315.11
5.4.390.0080.02615.02
5.4.380.0080.02715.13
5.4.370.0080.02815.09
5.4.360.0070.02815.07
5.4.350.0000.03515.08
5.4.340.0120.02514.91
5.4.330.0090.00311.20
5.4.320.0100.02714.95
5.4.310.0040.03414.96
5.4.300.0080.02915.31
5.4.290.0100.02815.04
5.4.280.0020.03314.99
5.4.270.0080.02715.13
5.4.260.0090.02715.12
5.4.250.0120.02515.01
5.4.240.0020.03415.04
5.4.230.0040.03015.09
5.4.220.0010.03315.13
5.4.210.0030.03515.04
5.4.200.0030.02913.86
5.4.190.0120.02515.03
5.4.180.0070.03215.00
5.4.170.0130.02615.01
5.4.160.0040.03015.12
5.4.150.0060.02815.14
5.4.140.0090.02813.83
5.4.130.0050.02713.97
5.4.120.0080.02613.86
5.4.110.0070.03013.63
5.4.100.0120.02213.90
5.4.90.0070.02713.58
5.4.80.0080.02713.78
5.4.70.0030.03113.74
5.4.60.0030.03113.79
5.4.50.0030.03213.67
5.4.40.0050.03013.70
5.4.30.0030.02913.78
5.4.20.0030.03213.84
5.4.10.0080.02513.72
5.4.00.0050.03113.52
5.3.290.0130.02512.64
5.3.280.0120.02312.66
5.3.270.0050.03212.65
5.3.260.0100.02712.60
5.3.250.0090.02712.60
5.3.240.0070.02812.58
5.3.230.0100.02512.57
5.3.220.0060.02812.50
5.3.210.0120.02312.53
5.3.200.0050.03012.60
5.3.190.0080.02712.53
5.3.180.0110.02312.67
5.3.170.0120.02112.61
5.3.160.0060.02912.60
5.3.150.0020.03112.70
5.3.140.0100.02612.64
5.3.130.0060.02812.57
5.3.120.0050.03212.68
5.3.110.0080.02812.61
5.3.100.0080.02812.29
5.3.90.0090.02312.48
5.3.80.0020.03012.38
5.3.70.0110.02112.24
5.3.60.0050.02812.27
5.3.50.0030.02812.39
5.3.40.0050.02812.22
5.3.30.0160.01812.28
5.3.20.0070.02712.16
5.3.10.0060.02311.89
5.3.00.0040.03011.87
5.2.170.0080.02210.54
5.2.160.0020.02610.55
5.2.150.0060.02110.58
5.2.140.0070.02110.53
5.2.130.0020.02910.46
5.2.120.0050.02310.49
5.2.110.0050.02210.58
5.2.100.0030.02410.58
5.2.90.0050.02310.53
5.2.80.0020.02510.48
5.2.70.0060.02010.55
5.2.60.0050.02210.46
5.2.50.0030.02310.44
5.2.40.0060.02210.55
5.2.30.0100.01710.54
5.2.20.0050.02310.39
5.2.10.0090.02310.40
5.2.00.0050.02210.34
5.1.60.0070.01710.00
5.1.50.0030.0199.97
5.1.40.0040.0179.89
5.1.30.0050.01910.15
5.1.20.0020.02410.15
5.1.10.0050.01810.02
5.1.00.0020.0229.96
5.0.50.0080.0129.30
5.0.40.0020.0159.14
5.0.30.0020.0259.06
5.0.20.0050.0139.15
5.0.10.0030.0169.03
5.0.00.0050.0229.01
4.4.90.0030.0117.93
4.4.80.0020.0127.94
4.4.70.0020.0137.86
4.4.60.0030.0107.90
4.4.50.0030.0117.93
4.4.40.0050.0157.86
4.4.30.0030.0127.92
4.4.20.0010.0137.93
4.4.10.0070.0087.94
4.4.00.0020.0207.96
4.3.110.0020.0147.89
4.3.100.0040.0127.86
4.3.90.0000.0147.87
4.3.80.0000.0217.86
4.3.70.0060.0087.90
4.3.60.0020.0137.88
4.3.50.0000.0137.87
4.3.40.0030.0187.86
4.3.30.0020.0137.27
4.3.20.0020.0137.19
4.3.10.0020.0137.17
4.3.00.0070.0118.53

preferences:
30.62 ms | 401 KiB | 5 Q