3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "wow"; $name="wow"; $pass="wow"; echo sprintf("select id, username from users where username='%s' and password'%s'", mysql_real_escape_string($name), mysql_real_escape_string($pass)); ?>

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.0140.00718.55
8.3.50.0200.00018.00
8.3.40.0070.00718.66
8.3.30.0080.00819.09
8.3.20.0000.00820.35
8.3.10.0050.00322.11
8.3.00.0030.00622.51
8.2.180.0160.00616.50
8.2.170.0150.00622.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00724.66
8.2.130.0140.00326.16
8.2.120.0000.00819.48
8.2.110.0030.00720.47
8.2.100.0080.00417.78
8.2.90.0070.00019.05
8.2.80.0040.00419.78
8.2.70.0060.00317.48
8.2.60.0020.00517.93
8.2.50.0000.00818.07
8.2.40.0030.00518.22
8.2.30.0040.00418.07
8.2.20.0040.00417.71
8.2.10.0040.00419.59
8.2.00.0000.00717.65
8.1.270.0030.00522.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0110.00021.99
8.1.230.0070.00420.84
8.1.220.0080.00017.74
8.1.210.0070.00018.77
8.1.200.0060.00317.36
8.1.190.0040.00417.53
8.1.180.0030.00618.10
8.1.170.0000.00818.52
8.1.160.0080.00021.95
8.1.150.0070.00018.57
8.1.140.0040.00417.30
8.1.130.0040.00417.86
8.1.120.0000.00717.30
8.1.110.0000.00817.38
8.1.100.0040.00417.36
8.1.90.0050.00317.25
8.1.80.0000.00717.41
8.1.70.0040.00417.35
8.1.60.0030.00517.57
8.1.50.0070.00017.38
8.1.40.0040.00417.50
8.1.30.0000.00817.61
8.1.20.0040.00417.70
8.1.10.0040.00417.55
8.1.00.0080.00017.58
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0000.00718.36
8.0.270.0030.00717.16
8.0.260.0050.00316.93
8.0.250.0000.00716.91
8.0.240.0000.00717.01
8.0.230.0000.00716.82
8.0.220.0030.00316.91
8.0.210.0070.00016.88
8.0.200.0060.00316.92
8.0.190.0050.00216.98
8.0.180.0070.00016.93
8.0.170.0050.00216.76
8.0.160.0080.00016.82
8.0.150.0000.00816.86
8.0.140.0070.00016.74
8.0.130.0000.00713.36
8.0.120.0000.00716.75
8.0.110.0000.00816.89
8.0.100.0040.00416.69
8.0.90.0000.00816.82
8.0.80.0030.01316.85
8.0.70.0000.00816.81
8.0.60.0000.00716.80
8.0.50.0040.00416.78
8.0.30.0070.01217.22
8.0.20.0130.00617.41
8.0.10.0050.00317.06
8.0.00.0130.00616.76
7.4.330.0000.00515.13
7.4.320.0030.00316.54
7.4.300.0080.00016.64
7.4.290.0070.00016.45
7.4.280.0000.00716.45
7.4.270.0000.00916.51
7.4.260.0000.00716.48
7.4.250.0030.00316.37
7.4.240.0040.00316.58
7.4.230.0040.00416.42
7.4.220.0130.00316.55
7.4.210.0090.00516.53
7.4.200.0000.00716.42
7.4.190.0000.00716.41
7.4.160.0200.00016.52
7.4.150.0140.00317.40
7.4.140.0100.00817.86
7.4.130.0060.01216.55
7.4.120.0110.00716.64
7.4.110.0090.00916.56
7.4.100.0080.01516.47
7.4.90.0150.00916.49
7.4.80.0090.01319.39
7.4.70.0120.00616.64
7.4.60.0140.00416.29
7.4.50.0000.00616.39
7.4.40.0040.01122.77
7.4.30.0080.00816.72
7.4.00.0070.00714.93
7.3.330.0000.00613.18
7.3.320.0000.00613.18
7.3.310.0030.00316.39
7.3.300.0000.00716.23
7.3.290.0070.00716.21
7.3.280.0070.00816.29
7.3.270.0060.00917.40
7.3.260.0130.01016.38
7.3.250.0090.01116.37
7.3.240.0150.00016.53
7.3.230.0100.00616.39
7.3.210.0130.00316.50
7.3.200.0110.01119.39
7.3.190.0120.00416.51
7.3.180.0090.00616.44
7.3.170.0030.01716.54
7.3.160.0100.00716.50
7.3.120.0040.01114.82
7.3.10.0190.00316.47
7.3.00.0170.00816.30
7.2.330.0170.00416.68
7.2.320.0180.00316.57
7.2.310.0030.01316.38
7.2.300.0100.01316.48
7.2.290.0030.01316.22
7.2.130.0120.00815.95
7.2.120.0190.00316.00
7.2.110.0040.00916.20
7.2.100.0110.00416.23
7.2.90.0160.00416.49
7.2.80.0160.00315.83
7.2.70.0120.01216.46
7.2.60.0080.00816.52
7.2.50.0090.00716.44
7.2.40.0130.00616.43
7.2.30.0090.00916.33
7.2.20.0120.00616.13
7.2.10.0130.00315.72
7.2.00.0060.01117.98
7.1.250.0100.00315.22
7.1.200.0070.00415.57
7.1.100.0150.01516.18
7.1.70.0040.00416.82
7.1.60.0140.01019.82
7.1.50.0130.00616.87
7.1.00.0070.07322.45
7.0.200.0000.00716.57
7.0.140.0270.05322.00
7.0.60.0230.06719.92
7.0.50.0100.05317.84
7.0.40.0030.08720.36
7.0.30.0300.08020.34
7.0.20.0270.08320.19
7.0.10.0070.07320.04
7.0.00.0130.03720.09
5.6.280.0000.07321.07
5.6.210.0100.07720.49
5.6.200.0030.07318.18
5.6.190.0100.06320.61
5.6.180.3130.05020.35
5.6.170.0230.09020.38
5.6.160.0070.08320.44
5.6.150.0070.08318.18
5.6.140.0000.04318.20
5.6.130.0100.07018.11
5.6.120.0100.08321.11
5.6.110.0130.05021.02
5.6.100.0070.08021.03
5.6.90.0200.03320.96
5.6.80.0100.07020.50
5.6.70.4130.04020.38
5.5.350.0200.08020.38
5.5.340.0070.08318.00
5.5.330.0030.04320.57
5.5.320.0400.05320.29
5.5.310.0300.06320.33
5.5.300.0000.04717.98
5.5.290.0030.08717.98
5.5.280.0170.06320.64
5.5.270.0000.04320.83
5.5.260.0030.08020.88
5.5.250.0030.04320.66
5.5.240.0230.07020.36
5.4.450.0130.06019.63
5.4.440.0500.06019.63
5.4.430.0130.05319.25
5.4.420.0070.08019.50
5.4.410.0170.05319.36
5.4.400.0930.00018.65
5.4.390.0830.00018.59
5.4.380.0200.05718.56
5.4.370.0200.05318.50
5.4.360.0230.05318.59
5.4.350.0200.05318.59
5.4.340.0200.04718.74
5.4.320.0080.03512.45
5.4.310.0090.04312.45
5.4.300.0080.03512.45
5.4.290.0120.04212.45
5.4.280.0060.03412.34
5.4.270.0130.07018.87
5.4.260.0070.07318.68
5.4.250.0100.06318.80
5.4.240.0070.06718.80
5.4.230.0130.05718.66
5.4.220.0130.05318.80
5.4.210.0200.07018.72
5.4.200.0170.05718.66
5.4.190.0170.09018.97
5.4.180.0100.05318.97
5.4.170.0070.07718.71
5.4.160.0130.06018.70
5.4.150.0170.05018.61
5.4.140.0070.07316.23
5.4.130.0070.05316.29
5.4.120.0100.05016.29
5.4.110.0130.07016.25
5.4.100.0030.05716.31
5.4.90.0170.06016.22
5.4.80.0130.05716.46
5.4.70.0130.06016.43
5.4.60.0070.05016.23
5.4.50.0100.05716.45
5.4.40.0200.04716.34
5.4.30.0130.06716.32
5.4.20.0130.06016.29
5.4.10.0170.06316.14
5.4.00.0200.04315.78
5.3.290.0080.04212.80
5.3.280.0070.06314.46
5.3.270.0070.07014.46
5.3.260.0130.05014.38
5.3.250.0130.07014.64
5.3.240.0200.05314.64
5.3.230.0070.07314.61
5.3.220.0100.07714.43
5.3.210.0030.07714.57
5.3.200.0170.07014.65
5.3.190.0170.04714.58
5.3.180.0070.05314.56
5.3.170.0130.07014.57
5.3.160.0200.05014.58
5.3.150.0170.04714.39
5.3.140.0200.04714.41
5.3.130.0130.06314.56
5.3.120.0170.04714.41
5.3.110.0030.07014.69
5.3.100.0170.06013.88
5.3.90.0100.05714.16
5.3.80.0130.06013.95
5.3.70.0170.04314.02
5.3.60.0130.05713.87
5.3.50.0070.07013.96
5.3.40.0200.05713.96
5.3.30.0070.05313.82
5.3.20.0170.06013.72
5.3.10.0030.06013.56
5.3.00.0070.06313.68
5.2.170.0070.05011.06
5.2.160.0200.04311.04
5.2.150.0100.04311.23
5.2.140.0030.05711.15
5.2.130.0100.04311.21
5.2.120.0030.06310.98
5.2.110.0100.04711.10
5.2.100.0130.03710.93
5.2.90.0130.03311.19
5.2.80.0070.04311.02
5.2.70.0100.04011.24
5.2.60.0170.04310.97
5.2.50.0230.04310.95
5.2.40.0100.04310.75
5.2.30.0100.05010.99
5.2.20.0170.05710.89
5.2.10.0130.04710.77
5.2.00.0170.04310.77
5.1.60.0000.03710.18
5.1.50.0030.0379.88
5.1.40.0070.03310.01
5.1.30.0030.04310.16
5.1.20.0030.05310.25
5.1.10.0100.04710.21
5.1.00.0070.03310.09
5.0.50.0070.0278.39
5.0.40.0200.0208.64
5.0.30.0030.0578.25
5.0.20.0070.0308.29
5.0.10.0070.0338.14
5.0.00.0030.0607.98
4.4.90.0070.0236.81
4.4.80.0030.0376.81
4.4.70.0030.0236.81
4.4.60.0070.0306.81
4.4.50.0030.0336.81
4.4.40.0030.0476.81
4.4.30.0030.0336.81
4.4.20.0030.0376.81
4.4.10.0030.0306.81
4.4.00.0070.0336.81
4.3.110.0100.0206.81
4.3.100.0070.0306.81
4.3.90.0000.0276.81
4.3.80.0070.0406.81
4.3.70.0070.0306.81
4.3.60.0030.0236.81
4.3.50.0030.0336.81
4.3.40.0030.0476.81
4.3.30.0030.0236.81
4.3.20.0030.0236.81
4.3.10.0030.0306.81
4.3.00.0030.0306.34

preferences:
39.61 ms | 400 KiB | 5 Q