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 = 'password0x270x270x270x27'; $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.0080.01118.43
8.3.50.0040.01118.08
8.3.40.0110.00418.76
8.3.30.0120.00418.65
8.3.20.0040.00419.38
8.3.10.0080.00021.85
8.3.00.0080.00019.68
8.2.180.0100.00716.75
8.2.170.0040.01219.08
8.2.160.0070.01422.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00818.09
8.2.120.0000.00826.35
8.2.110.0030.00622.20
8.2.100.0030.00917.79
8.2.90.0030.00617.84
8.2.80.0000.00819.19
8.2.70.0050.00318.05
8.2.60.0000.00918.28
8.2.50.0030.00618.10
8.2.40.0040.00421.14
8.2.30.0050.00319.18
8.2.20.0030.00517.74
8.2.10.0040.00418.10
8.2.00.0040.00418.02
8.1.280.0110.00325.92
8.1.270.0040.00423.80
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00723.79
8.1.230.0040.00720.95
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0000.00917.22
8.1.180.0080.00018.10
8.1.170.0060.00318.50
8.1.160.0080.00018.86
8.1.150.0080.00018.84
8.1.140.0000.00819.58
8.1.130.0070.00017.65
8.1.120.0060.00317.51
8.1.110.0040.00417.41
8.1.100.0050.00317.50
8.1.90.0070.00017.45
8.1.80.0080.00017.48
8.1.70.0000.00717.34
8.1.60.0000.00817.53
8.1.50.0050.00317.55
8.1.40.0030.00517.41
8.1.30.0040.00417.62
8.1.20.0070.00017.56
8.1.10.0040.00417.50
8.1.00.0000.01317.55
8.0.300.0070.00020.16
8.0.290.0070.00016.75
8.0.280.0000.00818.49
8.0.270.0030.00317.17
8.0.260.0060.00017.16
8.0.250.0000.00616.97
8.0.240.0040.00416.91
8.0.230.0000.00816.95
8.0.220.0040.00416.91
8.0.210.0040.00416.87
8.0.200.0030.00316.97
8.0.190.0100.00016.86
8.0.180.0000.00716.95
8.0.170.0000.00716.93
8.0.160.0040.00416.84
8.0.150.0030.00316.83
8.0.140.0030.00516.90
8.0.130.0000.00613.29
8.0.120.0050.00316.74
8.0.110.0050.00316.82
8.0.100.0050.00316.87
8.0.90.0030.00616.75
8.0.80.0120.00316.93
8.0.70.0000.00816.90
8.0.60.0040.00416.78
8.0.50.0000.00716.91
8.0.30.0080.00816.94
8.0.20.0120.00817.40
8.0.10.0000.00816.81
8.0.00.0040.01516.80
7.4.330.0030.00315.08
7.4.320.0000.00616.60
7.4.300.0030.00316.63
7.4.290.0070.00016.64
7.4.280.0000.00716.49
7.4.270.0070.00016.54
7.4.260.0100.00016.43
7.4.250.0000.00716.55
7.4.240.0020.00516.40
7.4.230.0070.00016.58
7.4.220.0070.01516.46
7.4.210.0050.01216.52
7.4.200.0000.00816.62
7.4.160.0090.00916.51
7.4.150.0110.01117.40
7.4.140.0090.01317.86
7.4.130.0080.00916.63
7.4.120.0120.00616.37
7.4.110.0180.00416.38
7.4.100.0060.01016.69
7.4.90.0030.01616.49
7.4.80.0140.00319.39
7.4.70.0140.00916.56
7.4.60.0060.01016.58
7.4.50.0000.01116.61
7.4.40.0060.01316.26
7.4.30.0120.00616.60
7.4.00.0040.01114.92
7.3.330.0020.00513.19
7.3.320.0000.00613.38
7.3.310.0000.00816.45
7.3.300.0000.00716.36
7.3.290.0030.00316.32
7.3.280.0080.00816.38
7.3.270.0120.00617.40
7.3.260.0060.01716.66
7.3.250.0090.01016.29
7.3.240.0060.01116.54
7.3.230.0150.00316.56
7.3.210.0030.01316.54
7.3.200.0070.01116.20
7.3.190.0060.01016.43
7.3.180.0060.00916.36
7.3.170.0150.00416.30
7.3.160.0160.00316.53
7.3.120.0090.00914.98
7.3.110.0070.00715.15
7.3.100.0040.01214.74
7.3.90.0070.00714.96
7.3.80.0080.00414.82
7.3.70.0060.00614.82
7.3.60.0030.00914.73
7.3.50.0060.00614.84
7.3.40.0000.01714.88
7.3.30.0080.00814.96
7.3.20.0030.01416.75
7.3.10.0110.00316.69
7.3.00.0000.01116.67
7.2.330.0100.00716.77
7.2.320.0100.01016.43
7.2.310.0110.00916.61
7.2.300.0060.01116.46
7.2.290.0130.00316.75
7.2.240.0110.00015.12
7.2.230.0000.00915.15
7.2.220.0060.00615.34
7.2.210.0070.00714.77
7.2.200.0090.00614.95
7.2.190.0080.00814.82
7.2.180.0090.00615.01
7.2.170.0040.01115.13
7.2.160.0060.01214.87
7.2.150.0080.00317.06
7.2.140.0090.00617.04
7.2.130.0060.01117.03
7.2.120.0030.00916.96
7.2.110.0040.01217.00
7.2.100.0090.00616.84
7.2.90.0030.01016.93
7.2.80.0000.01716.71
7.2.70.0070.00316.88
7.2.60.0060.00917.08
7.2.50.0070.00717.15
7.2.40.0060.01016.76
7.2.30.0070.00316.98
7.2.20.0030.01217.05
7.2.10.0040.00817.18
7.2.00.0030.01118.15
7.1.330.0120.00315.81
7.1.320.0080.00815.71
7.1.310.0030.01016.06
7.1.300.0030.00715.88
7.1.290.0070.00715.75
7.1.280.0100.00315.83
7.1.270.0040.00715.77
7.1.260.0040.01116.04
7.1.250.0070.00715.90
7.1.200.0080.00415.58
7.1.100.0000.01117.90
7.1.70.0050.00217.20
7.1.60.0170.00719.47
7.1.00.0100.07322.28
7.0.200.0330.00714.43
7.0.60.0700.00020.13
7.0.50.0870.00020.34
7.0.40.0830.00020.33
7.0.30.0770.00020.34
7.0.20.0830.00020.34
7.0.10.0770.00020.29
7.0.00.0830.00020.31
5.6.280.0030.07320.98
5.6.210.0770.00020.59
5.6.200.0770.00021.04
5.6.190.0730.00021.09
5.6.180.0770.00021.21
5.6.170.0770.00021.05
5.6.160.1130.00021.08
5.6.150.0800.00021.12
5.6.140.0730.00021.02
5.6.130.0800.00021.05
5.6.120.0730.00021.08
5.6.110.0830.00021.05
5.6.100.1030.00020.98
5.6.90.1070.00021.04
5.6.80.0800.00020.45
5.6.70.1130.00020.43
5.6.60.0830.00020.55
5.6.50.0870.00020.46
5.6.40.0830.00020.38
5.6.30.0730.00020.54
5.6.20.0870.00020.32
5.6.10.0730.00020.41
5.6.00.0770.00020.55
5.5.350.0800.00020.45
5.5.340.0730.00020.96
5.5.330.0730.00021.05
5.5.320.0730.00021.02
5.5.310.0970.00020.88
5.5.300.0730.00021.05
5.5.290.0900.00020.81
5.5.280.0770.00020.80
5.5.270.0900.00020.95
5.5.260.0830.00020.76
5.5.250.0800.00020.63
5.5.240.0830.00020.22
5.5.230.1000.00020.24
5.5.220.0830.00020.32
5.5.210.0700.00020.21
5.5.200.0630.00020.10
5.5.190.0770.00020.16
5.5.180.0900.00020.20
5.5.160.0730.00020.18
5.5.150.0700.00020.31
5.5.140.0700.00020.21
5.5.130.0730.00020.17
5.5.120.0930.00020.21
5.5.110.0800.00020.19
5.5.100.0730.00020.13
5.5.90.1030.00020.20
5.5.80.0870.00020.26
5.5.70.0970.00020.04
5.5.60.0800.00020.06
5.5.50.0830.00020.12
5.5.40.0870.00020.07
5.5.30.0800.00020.00
5.5.20.0800.00020.14
5.5.10.0830.00020.07
5.5.00.0770.00020.09

preferences:
65.24 ms | 401 KiB | 5 Q