3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mysqli::real_escape_string("SELECT _%asdf from user where user=_");

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.01016.75
8.3.50.0100.01021.98
8.3.40.0140.00318.66
8.3.30.0110.00318.73
8.3.20.0040.00420.04
8.3.10.0040.00421.79
8.3.00.0060.00317.46
8.2.180.0150.00618.27
8.2.170.0040.01522.96
8.2.160.0030.01022.08
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.50
8.2.110.0090.00019.39
8.2.100.0110.00017.72
8.2.90.0080.00019.09
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0090.00018.07
8.2.40.0060.00319.32
8.2.30.0070.00020.62
8.2.20.0040.00417.67
8.2.10.0000.00717.96
8.2.00.0000.00818.00
8.1.280.0110.00725.92
8.1.270.0000.00823.82
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00721.26
8.1.230.0040.00817.42
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0100.00217.00
8.1.180.0080.00018.10
8.1.170.0000.00818.81
8.1.160.0040.00421.92
8.1.150.0040.00418.75
8.1.140.0060.00319.43
8.1.130.0030.00317.63
8.1.120.0050.00317.32
8.1.110.0030.00417.33
8.1.100.0040.00417.22
8.1.90.0000.00717.38
8.1.80.0080.00017.26
8.1.70.0000.00717.32
8.1.60.0000.00717.41
8.1.50.0030.00617.44
8.1.40.0040.00417.31
8.1.30.0000.00817.54
8.1.20.0040.00417.40
8.1.10.0070.00017.52
8.1.00.0040.00417.45
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0040.00418.28
8.0.270.0030.00317.09
8.0.260.0060.00017.18
8.0.250.0000.00716.93
8.0.240.0070.00016.84
8.0.230.0000.00716.78
8.0.220.0000.00616.86
8.0.210.0070.00016.92
8.0.200.0000.00616.96
8.0.190.0070.00016.89
8.0.180.0020.00516.91
8.0.170.0040.00416.85
8.0.160.0000.00716.95
8.0.150.0030.00316.72
8.0.140.0000.00716.80
8.0.130.0000.00713.27
8.0.120.0040.00416.77
8.0.110.0060.00316.85
8.0.100.0000.00816.92
8.0.90.0000.00816.94
8.0.80.0080.00616.92
8.0.70.0000.00716.88
8.0.60.0030.00316.79
8.0.50.0040.00416.77
8.0.30.0100.00816.95
8.0.20.0110.00717.40
8.0.10.0070.00016.89
8.0.00.0090.00816.76
7.4.330.0000.00515.08
7.4.320.0060.00016.41
7.4.300.0030.00316.54
7.4.290.0070.00016.34
7.4.280.0090.00016.32
7.4.270.0000.00616.57
7.4.260.0000.00816.42
7.4.250.0070.00016.31
7.4.240.0020.00616.48
7.4.230.0030.00316.59
7.4.220.0120.00616.63
7.4.210.0130.00716.51
7.4.200.0000.00716.24
7.4.160.0040.01216.34
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0090.00916.62
7.4.120.0130.00816.56
7.4.110.0130.00716.49
7.4.100.0150.00716.48
7.4.90.0100.00716.38
7.4.80.0080.00819.39
7.4.70.0120.00616.53
7.4.60.0060.00916.47
7.4.50.0040.00416.58
7.4.40.0110.00516.34
7.4.30.0120.01116.18
7.4.00.0100.00614.86
7.3.330.0050.00013.04
7.3.320.0030.00313.12
7.3.310.0080.00016.29
7.3.300.0000.00816.20
7.3.290.0030.00316.25
7.3.280.0070.01016.24
7.3.270.0070.01017.40
7.3.260.0060.01116.50
7.3.250.0110.00616.37
7.3.240.0070.01016.38
7.3.230.0030.01316.52
7.3.210.0120.00616.30
7.3.200.0080.00916.35
7.3.190.0040.01516.33
7.3.180.0070.01316.36
7.3.170.0090.00616.27
7.3.160.0060.01016.26
7.3.120.0060.01014.75
7.3.110.0120.00615.04
7.3.100.0090.00614.72
7.3.90.0110.00615.04
7.3.80.0090.00914.93
7.3.70.0110.00314.86
7.3.60.0000.01014.83
7.3.50.0000.00814.64
7.3.40.0070.00714.80
7.3.30.0000.01214.57
7.3.20.0070.00716.69
7.3.10.0070.00716.66
7.3.00.0090.00016.53
7.2.330.0060.01216.22
7.2.320.0030.01316.61
7.2.310.0110.00716.37
7.2.300.0100.00716.24
7.2.290.0100.00616.30
7.2.250.0060.01314.66
7.2.240.0000.01414.66
7.2.230.0070.01015.15
7.2.220.0050.00514.82
7.2.210.0040.01514.66
7.2.200.0030.01214.84
7.2.190.0090.00614.71
7.2.180.0000.01114.95
7.2.170.0090.00614.94
7.2.60.0070.00716.73
7.1.330.0030.01015.70
7.1.320.0040.01415.37
7.1.310.0050.00515.68
7.1.300.0040.01115.71
7.1.290.0080.00415.39
7.1.280.0000.01615.67
7.1.270.0000.01115.60
7.1.260.0030.01015.68
7.1.200.0110.00015.61
7.1.100.0100.00718.02
7.1.70.0030.00517.14
7.1.60.0030.01419.43
7.1.50.0100.01016.48
7.1.00.0130.06322.54
7.0.200.0120.00414.59
7.0.60.0170.07719.92
7.0.50.0000.04717.88
7.0.40.0030.04320.05
7.0.30.0130.05020.18
7.0.20.0270.04320.01
7.0.10.0070.07320.32
7.0.00.0100.08320.08
5.6.280.0070.06720.82
5.6.210.0100.06720.75
5.6.200.0100.08018.09
5.6.190.0130.05320.33
5.6.180.3170.03720.45
5.6.170.0230.04020.42
5.6.160.0070.07020.40
5.6.150.0030.04018.21
5.6.140.0030.06718.21
5.6.130.0070.08018.18
5.6.120.0070.04320.89
5.6.110.0030.08321.02
5.6.100.0230.06721.10
5.6.90.0100.04721.12
5.6.80.0030.08020.37
5.5.350.0330.07320.46
5.5.340.0070.08317.99
5.5.330.0030.09020.06
5.5.320.0230.04320.34
5.5.310.0200.04320.43
5.5.300.0100.07318.01
5.5.290.0030.08717.95
5.5.280.0070.04320.87
5.5.270.0070.08720.75
5.5.260.0070.07720.75
5.5.250.0070.06020.79
5.5.240.0000.06320.25
5.4.450.0270.07719.30
5.4.440.0100.07319.60
5.4.430.0570.06319.59
5.4.420.0570.05719.34
5.4.410.0600.05019.37
5.4.400.0470.06318.93
5.4.390.0600.05319.06
5.4.380.0170.06019.02
5.4.370.0270.04319.15
5.4.360.0230.05019.21
5.4.350.0130.06018.86
5.4.340.0100.05719.22
5.4.320.0100.06019.27
5.4.310.0100.06319.12
5.4.300.0130.06018.75
5.4.290.0230.05019.08
5.4.280.0100.06719.08
5.4.270.0370.05019.20
5.4.260.0270.05319.27
5.4.250.0100.07719.18
5.4.240.0170.05019.18
5.4.230.0830.06019.11
5.4.220.0770.05319.27
5.4.210.0570.05319.18
5.4.200.0500.06718.97
5.4.190.0600.05719.27
5.4.180.0830.06719.26
5.4.170.0200.05719.13
5.4.160.0330.05018.74
5.4.150.0200.05718.90
5.4.140.0270.04716.25
5.4.130.0170.05316.18
5.4.120.0200.06316.32
5.4.110.0170.06716.45
5.4.100.0100.05316.46
5.4.90.0100.05716.51
5.4.80.0100.05716.48
5.4.70.0300.05016.47
5.4.60.0500.05016.36
5.4.50.0630.05316.53
5.4.40.0700.05716.44
5.4.30.0700.04716.42
5.4.20.0430.04316.26
5.4.10.0370.06316.04
5.4.00.0300.05315.91

preferences:
59.34 ms | 401 KiB | 5 Q