3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mysql_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.0150.00616.50
8.3.50.0130.00921.92
8.3.40.0040.01118.69
8.3.30.0110.00418.66
8.3.20.0070.00020.04
8.3.10.0070.00021.82
8.3.00.0000.00919.36
8.2.180.0060.00918.29
8.2.170.0100.00322.96
8.2.160.0060.01322.07
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0120.00022.21
8.2.100.0000.01017.80
8.2.90.0000.00719.05
8.2.80.0050.00317.97
8.2.70.0040.00417.48
8.2.60.0060.00317.78
8.2.50.0040.00418.07
8.2.40.0000.00719.31
8.2.30.0050.00320.67
8.2.20.0040.00417.72
8.2.10.0040.00418.09
8.2.00.0000.00817.97
8.1.280.0110.00725.92
8.1.270.0040.00424.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0040.00717.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0000.00717.23
8.1.180.0070.00018.10
8.1.170.0070.00018.89
8.1.160.0040.00421.94
8.1.150.0000.00718.81
8.1.140.0000.00919.36
8.1.130.0070.00017.56
8.1.120.0040.00417.25
8.1.110.0030.00317.21
8.1.100.0000.00717.27
8.1.90.0030.00517.39
8.1.80.0030.00617.24
8.1.70.0030.00317.37
8.1.60.0000.01017.31
8.1.50.0030.00517.35
8.1.40.0000.00817.36
8.1.30.0080.00017.49
8.1.20.0030.00517.57
8.1.10.0000.00717.36
8.1.00.0030.00517.41
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0000.00718.29
8.0.270.0030.00317.19
8.0.260.0000.00817.07
8.0.250.0000.00716.86
8.0.240.0000.00616.78
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0000.00716.75
8.0.200.0030.00316.95
8.0.190.0030.00616.84
8.0.180.0080.00016.90
8.0.170.0020.00516.77
8.0.160.0040.00417.00
8.0.150.0070.00016.72
8.0.140.0000.00716.88
8.0.130.0030.00313.30
8.0.120.0050.00316.72
8.0.110.0030.00516.88
8.0.100.0070.00016.71
8.0.90.0040.00416.73
8.0.80.0040.01116.80
8.0.70.0050.00216.91
8.0.60.0070.00016.87
8.0.50.0080.00016.92
8.0.30.0110.00817.02
8.0.20.0130.00617.40
8.0.10.0030.00616.74
8.0.00.0090.00816.71
7.4.330.0020.00215.08
7.4.320.0030.00316.49
7.4.300.0030.00316.33
7.4.290.0000.00616.46
7.4.280.0040.00416.36
7.4.270.0030.00316.42
7.4.260.0070.00016.50
7.4.250.0030.00516.41
7.4.240.0050.00216.51
7.4.230.0040.00416.61
7.4.220.0030.02016.56
7.4.210.0100.00516.46
7.4.200.0000.00716.55
7.4.160.0070.00716.43
7.4.150.0160.00617.40
7.4.140.0050.01417.86
7.4.130.0090.00916.61
7.4.120.0090.00916.44
7.4.110.0150.00616.49
7.4.100.0130.00616.22
7.4.90.0140.00316.44
7.4.80.0060.01219.39
7.4.70.0040.01516.45
7.4.60.0130.01016.29
7.4.50.0080.00016.13
7.4.40.0140.00316.43
7.4.30.0030.01516.32
7.4.00.0070.00914.77
7.3.330.0000.00513.17
7.3.320.0030.00313.23
7.3.310.0040.00416.10
7.3.300.0000.00716.20
7.3.290.0000.00616.16
7.3.280.0080.01116.24
7.3.270.0070.01017.40
7.3.260.0150.00816.31
7.3.240.0160.00116.41
7.3.230.0100.00716.39
7.3.210.0070.01016.40
7.3.200.0120.00416.51
7.3.190.0030.01316.17
7.3.180.0140.00316.54
7.3.170.0060.00916.40
7.3.160.0000.01616.18
7.3.120.0100.00914.70
7.3.110.0070.01214.79
7.3.100.0050.01214.93
7.3.90.0080.00714.77
7.3.80.0060.00614.79
7.3.70.0080.00514.60
7.3.60.0060.00814.76
7.3.50.0050.01014.70
7.3.40.0070.00314.78
7.3.30.0090.00614.69
7.3.20.0100.00216.60
7.3.10.0090.00416.55
7.3.00.0070.00716.59
7.2.330.0130.01016.29
7.2.320.0060.01616.52
7.2.310.0140.00916.45
7.2.300.0180.00716.57
7.2.290.0130.00316.53
7.2.250.0070.00915.14
7.2.240.0080.01214.79
7.2.230.0060.00814.65
7.2.220.0040.00714.86
7.2.210.0020.01514.82
7.2.200.0070.00814.96
7.2.190.0050.01014.64
7.2.180.0060.00814.58
7.2.170.0020.01114.91
7.2.60.0060.00916.70
7.2.00.0030.01019.24
7.1.330.0070.00815.58
7.1.320.0040.00815.71
7.1.310.0050.00715.64
7.1.300.0080.00515.71
7.1.290.0070.00415.63
7.1.280.0040.01015.43
7.1.270.0010.00915.55
7.1.260.0040.00915.52
7.1.200.0040.00815.71
7.1.100.0040.01118.00
7.1.70.0040.01117.10
7.1.60.0070.01019.43
7.1.50.0090.01216.76
7.1.00.0030.07722.48
7.0.200.0110.00314.69
7.0.60.0130.07319.85
7.0.50.0030.04717.88
7.0.40.0030.05020.02
7.0.30.0130.05720.09
7.0.20.0330.07020.04
7.0.10.0070.08720.22
7.0.00.0170.04720.08
5.6.280.0030.06320.90
5.6.210.0100.08320.56
5.6.200.0270.04318.12
5.6.190.0100.07720.41
5.6.180.3670.03720.32
5.6.170.0230.08320.51
5.6.160.0070.05020.46
5.6.150.0070.08318.22
5.6.140.0070.08718.12
5.6.130.0130.05318.18
5.6.120.0030.09021.11
5.6.110.0030.04320.98
5.6.100.0100.07720.88
5.6.90.0070.07321.02
5.6.80.0030.08320.39
5.5.350.0230.03320.45
5.5.340.0030.03718.02
5.5.330.0100.07020.29
5.5.320.0300.03720.29
5.5.310.0230.06720.30
5.5.300.0070.04717.93
5.5.290.0070.06717.97
5.5.280.0070.04020.79
5.5.270.0170.07320.86
5.5.260.0030.04320.76
5.5.250.0070.03720.61
5.5.240.0070.07020.27
5.4.450.3770.04019.59
5.4.440.3700.02719.48
5.4.430.3230.04019.46
5.4.420.3130.04019.21
5.4.410.3100.03719.07
5.4.400.3870.03719.16
5.4.390.3630.04318.88
5.4.380.3870.03719.04
5.4.370.0070.07019.26
5.4.360.3200.03719.05
5.4.350.3900.04019.09
5.4.340.3830.04018.87
5.4.320.3470.04019.16
5.4.310.3430.04319.16
5.4.300.3600.03318.92
5.4.290.3570.03719.16
5.4.280.0700.04018.87
5.4.270.0100.04018.93
5.4.260.3500.04018.97
5.4.250.3800.04018.88
5.4.240.3830.03719.06
5.4.230.3870.03319.16
5.4.220.3630.03719.16
5.4.210.3800.03719.20
5.4.200.3300.03318.96
5.4.190.3900.03718.96
5.4.180.3530.04019.14
5.4.170.4000.04019.19
5.4.160.3570.03319.18
5.4.150.3670.03719.18
5.4.140.3700.03716.44
5.4.130.3800.04016.43
5.4.120.3500.03316.39
5.4.110.3630.03016.42
5.4.100.3470.04016.25
5.4.90.3570.03316.27

preferences:
59.8 ms | 401 KiB | 5 Q