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 = '{$help}}'; $password = escape_string($SERVER_[aa]); $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.0100.01018.43
8.3.50.0060.01217.93
8.3.40.0150.00018.49
8.3.30.0100.00319.17
8.3.20.0040.00420.16
8.3.10.0030.00523.34
8.3.00.0080.00022.30
8.2.180.0100.01018.77
8.2.170.0070.00722.96
8.2.160.0070.00722.25
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00021.07
8.2.110.0040.00719.27
8.2.100.0040.00817.75
8.2.90.0000.00819.28
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0080.00516.80
8.2.50.0040.00418.07
8.2.40.0040.00421.11
8.2.30.0090.00018.16
8.2.20.0020.00517.68
8.2.10.0000.00718.07
8.2.00.0000.00718.04
8.1.280.0100.01025.92
8.1.270.0030.00520.38
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.83
8.1.230.0080.00417.48
8.1.220.0030.00517.76
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00718.46
8.1.160.0030.00522.00
8.1.150.0000.00718.94
8.1.140.0000.00817.44
8.1.130.0000.00817.69
8.1.120.0000.00717.51
8.1.110.0040.00417.44
8.1.100.0030.00317.44
8.1.90.0030.00317.42
8.1.80.0040.00417.41
8.1.70.0070.00017.34
8.1.60.0080.00017.47
8.1.50.0080.00017.41
8.1.40.0000.00817.42
8.1.30.0040.00417.41
8.1.20.0040.00417.54
8.1.10.0050.00217.49
8.1.00.0000.00817.53
8.0.300.0000.00818.77
8.0.290.0050.00216.75
8.0.280.0000.00718.53
8.0.270.0030.00517.20
8.0.260.0070.00017.24
8.0.250.0000.00716.99
8.0.240.0030.00516.99
8.0.230.0040.00416.88
8.0.220.0030.00316.92
8.0.210.0000.00716.85
8.0.200.0020.00516.97
8.0.190.0050.00216.88
8.0.180.0000.00916.98
8.0.170.0000.00816.90
8.0.160.0000.00716.96
8.0.150.0000.00716.92
8.0.140.0040.00416.90
8.0.130.0060.00013.37
8.0.120.0000.00716.94
8.0.110.0040.00416.88
8.0.100.0040.00416.88
8.0.90.0020.00517.01
8.0.80.0120.00616.92
8.0.70.0040.00416.81
8.0.60.0040.00416.80
8.0.50.0020.00516.88
8.0.30.0080.01217.02
8.0.20.0120.00917.40
8.0.10.0040.00416.93
8.0.00.0110.00616.73
7.4.330.0000.00515.08
7.4.320.0070.00016.49
7.4.300.0000.00716.59
7.4.290.0000.00716.59
7.4.280.0080.00016.51
7.4.270.0030.00316.54
7.4.260.0070.00016.61
7.4.250.0030.00316.46
7.4.240.0020.00516.51
7.4.230.0030.00316.34
7.4.220.0060.01216.61
7.4.210.0060.00916.63
7.4.200.0000.00816.37
7.4.160.0060.00916.39
7.4.150.0030.01417.40
7.4.140.0120.00917.86
7.4.130.0120.00716.55
7.4.120.0100.00816.67
7.4.110.0140.01016.61
7.4.100.0130.01016.53
7.4.90.0120.00616.38
7.4.80.0060.01019.39
7.4.70.0130.00716.36
7.4.60.0070.00716.42
7.4.50.0000.00916.46
7.4.40.0060.01616.70
7.4.30.0090.01316.39
7.4.00.0090.00914.89
7.3.330.0000.00613.40
7.3.320.0000.00613.25
7.3.310.0000.00716.27
7.3.300.0070.00016.29
7.3.290.0080.00716.40
7.3.280.0110.00716.44
7.3.270.0100.00717.40
7.3.260.0170.00016.53
7.3.250.0120.00516.41
7.3.240.0130.00316.55
7.3.230.0030.01416.65
7.3.210.0030.01416.40
7.3.200.0100.00616.50
7.3.190.0080.00816.48
7.3.180.0060.00916.54
7.3.170.0090.01316.40
7.3.160.0090.00916.46
7.3.120.0090.00915.02
7.3.110.0120.00314.97
7.3.100.0090.00914.81
7.3.90.0090.00914.86
7.3.80.0100.00714.79
7.3.70.0070.00714.90
7.3.60.0030.01014.88
7.3.50.0090.00614.77
7.3.40.0000.00914.61
7.3.30.0060.00314.74
7.3.20.0030.01016.73
7.3.10.0040.01116.80
7.3.00.0030.00716.67
7.2.330.0130.00716.79
7.2.320.0090.00916.68
7.2.310.0140.00416.85
7.2.300.0030.02116.66
7.2.290.0120.00616.79
7.2.250.0070.01115.09
7.2.240.0060.01314.98
7.2.230.0090.00614.98
7.2.220.0120.00614.96
7.2.210.0040.01514.91
7.2.200.0030.01215.23
7.2.190.0030.01015.12
7.2.180.0000.01514.77
7.2.170.0030.01015.06
7.2.160.0060.00315.02
7.2.150.0110.00416.95
7.2.140.0070.00716.59
7.2.130.0030.01117.01
7.2.120.0030.00816.79
7.2.110.0030.01216.79
7.2.100.0110.00716.95
7.2.90.0090.00316.80
7.2.80.0000.01116.96
7.2.70.0080.00616.91
7.2.60.0080.00716.79
7.2.50.0030.01016.79
7.2.40.0030.01017.13
7.2.30.0090.00916.94
7.2.20.0100.00316.90
7.2.10.0130.00316.68
7.2.00.0030.01018.20
7.1.330.0140.00415.91
7.1.320.0060.00615.92
7.1.310.0080.00415.88
7.1.300.0000.01215.55
7.1.290.0070.01016.00
7.1.280.0070.00316.04
7.1.270.0090.00315.82
7.1.260.0100.00315.98
7.1.250.0040.01116.01
7.1.240.0040.00715.86
7.1.230.0070.00716.02
7.1.220.0110.00415.62
7.1.210.0090.00615.93
7.1.200.0060.00715.63
7.1.190.0030.00615.76
7.1.180.0090.00315.56
7.1.170.0120.00015.87
7.1.160.0120.00015.60
7.1.150.0080.00615.88
7.1.140.0100.00315.40
7.1.130.0060.00915.91
7.1.120.0000.01216.05
7.1.110.0070.00715.93
7.1.100.0040.00616.81
7.1.90.0060.00915.68
7.1.80.0030.00615.92
7.1.70.0030.00716.62
7.1.60.0050.01317.65
7.1.50.0110.00716.45
7.1.40.0100.00615.88
7.1.30.0000.01315.59
7.1.20.0000.01015.87
7.1.10.0060.00915.84
7.1.00.0020.04319.19
7.0.330.0070.00715.28
7.0.320.0030.01315.57
7.0.310.0040.01115.47
7.0.300.0060.00615.48
7.0.290.0040.00815.28
7.0.280.0000.00815.50
7.0.270.0060.00615.43
7.0.260.0000.01015.43
7.0.250.0060.00315.49
7.0.240.0030.01015.63
7.0.230.0070.01015.58
7.0.220.0080.00315.17
7.0.210.0060.00915.47
7.0.200.0050.00615.19
7.0.190.0070.00415.39
7.0.180.0040.00715.60
7.0.170.0000.01315.58
7.0.160.0030.01015.63
7.0.150.0100.00315.26
7.0.140.0120.00615.48
7.0.130.0000.01115.59
7.0.120.0000.01215.38
7.0.110.0060.00615.56
7.0.100.0070.00715.23
7.0.90.0040.00415.48
7.0.80.0150.00015.14
7.0.70.0060.00315.33
7.0.60.0080.04017.58
7.0.50.0020.02616.60
7.0.40.0030.02716.80
7.0.30.0360.03316.79
7.0.20.0150.04216.76
7.0.10.0030.04216.95
7.0.00.0070.04316.81
5.6.400.0060.00614.51
5.6.390.0000.01214.17
5.6.380.0090.00614.65
5.6.370.0060.00914.41
5.6.360.0070.00714.38
5.6.350.0070.00713.91
5.6.340.0030.00614.36
5.6.330.0090.00614.64
5.6.320.0030.00914.05
5.6.310.0050.00514.57
5.6.300.0070.00714.37
5.6.290.0000.01014.35
5.6.280.0070.03717.82
5.6.270.0100.00714.32
5.6.260.0000.01214.41
5.6.250.0040.01214.54
5.6.240.0070.00714.47
5.6.230.0040.01414.33
5.6.220.0070.00714.51
5.6.210.0120.04017.48
5.6.200.0060.02016.16
5.6.190.0140.03717.55
5.6.180.0040.04417.43
5.6.170.0150.02317.49
5.6.160.0070.03017.47
5.6.150.0030.04616.31
5.6.140.0050.02516.21
5.6.130.0120.03816.23
5.6.120.0070.03517.69
5.6.110.0050.03417.68
5.6.100.0110.03817.71
5.6.90.0070.04317.79
5.6.80.0030.03817.33
5.6.70.1610.01517.44
5.6.60.0050.00514.06
5.6.50.0100.00714.56
5.6.40.0040.00814.39
5.6.30.0070.00714.25
5.6.20.0100.00714.39
5.6.10.0090.00314.38
5.6.00.0070.00714.28
5.5.380.0040.01014.30
5.5.370.0040.00714.31
5.5.360.0000.01314.23
5.5.350.0220.04017.41
5.5.340.0140.03916.10
5.5.330.0050.04317.14
5.5.320.0200.02117.25
5.5.310.0100.02617.29
5.5.300.0080.04416.20
5.5.290.0050.02516.11
5.5.280.0060.03017.57
5.5.270.0090.03417.58
5.5.260.0050.03817.53
5.5.250.0050.04717.44
5.5.240.0100.03517.14
5.5.230.0050.00914.31
5.5.220.0050.00814.41
5.5.210.0060.00614.27
5.5.200.0090.00314.46
5.5.190.0100.00314.17
5.5.180.0100.00314.36
5.5.170.0030.01014.38
5.5.160.0000.01114.34
5.5.150.0060.00314.34
5.5.140.0070.00714.24
5.5.130.0060.00614.31
5.5.120.0060.01013.98
5.5.110.0080.00414.30
5.5.100.0000.01514.16
5.5.90.0060.01014.17
5.5.80.0040.01214.52
5.5.70.0040.01113.81
5.5.60.0100.00314.43
5.5.50.0060.00914.42
5.5.40.0070.00714.33
5.5.30.0100.00314.07
5.5.20.0060.00614.32
5.5.10.0030.00814.20
5.5.00.0070.00714.30
5.4.450.0370.03515.62
5.4.440.0250.03715.60
5.4.430.0320.03015.61
5.4.420.0330.03615.44
5.4.410.0330.03315.40
5.4.400.0370.03415.42
5.4.390.0420.03315.34
5.4.380.0380.02815.42
5.4.370.0350.02815.36
5.4.360.0320.02815.35
5.4.350.0400.02815.22
5.4.340.0350.03015.48
5.4.330.0000.01111.59
5.4.320.0290.03015.45
5.4.310.0390.02815.37
5.4.300.0370.03015.48
5.4.290.0280.02815.45
5.4.280.0480.02715.35
5.4.270.0320.03215.44
5.4.260.0280.02715.37
5.4.250.0330.03015.42
5.4.240.0300.02915.47
5.4.230.0260.03215.35
5.4.220.0390.03015.32
5.4.210.0390.02615.47
5.4.200.0320.03314.20
5.4.190.0370.02615.26
5.4.180.0370.02915.29
5.4.170.0350.02815.36
5.4.160.0350.02915.43
5.4.150.0320.03515.28
5.4.140.0310.03014.04
5.4.130.0270.03213.95
5.4.120.0300.02814.00
5.4.110.0320.03013.97
5.4.100.0350.02714.00
5.4.90.0330.03014.02
5.4.80.0460.02614.01
5.4.70.0370.02813.96
5.4.60.0300.02513.95
5.4.50.0320.02714.03
5.4.40.0310.03514.04
5.4.30.0370.02613.98
5.4.20.0420.03613.98
5.4.10.0350.03013.94
5.4.00.0320.03213.74
5.3.290.0800.04714.88
5.3.280.0800.05714.50
5.3.270.0770.05014.57
5.3.260.0630.06014.61
5.3.250.0630.05314.59
5.3.240.0630.06014.52
5.3.230.0600.04714.49
5.3.220.0600.05714.66
5.3.210.0770.04714.57
5.3.200.0670.05314.47
5.3.190.0670.05314.62
5.3.180.0730.05014.61
5.3.170.0630.05014.53
5.3.160.0670.05014.58
5.3.150.0770.04714.56
5.3.140.0670.04314.55
5.3.130.0600.05014.77
5.3.120.0530.06714.55
5.3.110.0700.06314.44
5.3.100.0670.05013.90
5.3.90.0600.04014.16
5.3.80.0530.04713.93
5.3.70.0470.05314.10
5.3.60.0700.04014.09
5.3.50.0730.05013.86
5.3.40.0470.05713.88
5.3.30.0630.06713.99
5.3.20.0570.05313.84
5.3.10.0670.04713.72
5.3.00.0730.06013.56
5.2.170.0470.04311.01
5.2.160.0500.04011.05
5.2.150.0400.04311.23
5.2.140.0570.04311.19
5.2.130.0600.04311.06
5.2.120.0670.05311.02
5.2.110.0630.04711.18
5.2.100.0430.04311.13
5.2.90.0470.03711.13
5.2.80.0470.04011.32
5.2.70.0370.05011.11
5.2.60.0570.04311.05
5.2.50.0500.04711.17
5.2.40.0430.04010.91
5.2.30.0530.03311.02
5.2.20.0530.05710.96
5.2.10.0570.03310.80
5.2.00.0470.04310.88
5.1.60.0400.04010.02
5.1.50.0470.03310.04
5.1.40.0470.0379.91
5.1.30.0470.03310.42
5.1.20.0530.05010.29
5.1.10.0470.03310.12
5.1.00.0570.0309.99
5.0.50.0200.0338.40
5.0.40.0200.0338.38
5.0.30.0270.0408.24
5.0.20.0270.0278.20
5.0.10.0270.0278.26
5.0.00.0330.0438.40
4.4.90.0170.0275.88
4.4.80.0200.0235.84
4.4.70.0270.0205.76
4.4.60.0270.0205.76
4.4.50.0230.0205.78
4.4.40.0270.0475.78
4.4.30.0230.0205.77
4.4.20.0300.0175.91
4.4.10.0170.0275.82
4.4.00.0300.0305.80
4.3.110.0200.0305.82
4.3.100.0230.0175.69
4.3.90.0270.0135.75
4.3.80.0300.0335.68
4.3.70.0170.0205.68
4.3.60.0200.0205.84
4.3.50.0230.0205.73
4.3.40.0130.0405.73
4.3.30.0170.0234.54
4.3.20.0030.0204.53
4.3.10.0000.0234.54
4.3.00.0170.0277.18

preferences:
70.4 ms | 400 KiB | 5 Q