3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mysql_real_escape_string("xxx");

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.0.0beta10.0190.00316.63
8.0.0alpha30.0070.01116.55
8.0.0alpha20.0090.00916.54
8.0.0alpha10.0110.00816.46
7.4.80.0120.00616.60
7.4.70.0070.01016.43
7.4.60.0090.00916.43
7.4.50.0000.00916.49
7.4.40.0040.00822.77
7.4.30.0080.00716.59
7.4.00.0070.01014.66
7.3.200.0100.01019.39
7.3.190.0100.00716.44
7.3.180.0130.00316.31
7.3.170.0130.00316.34
7.3.160.0130.00616.29
7.3.120.0080.00814.86
7.3.110.0070.01014.79
7.3.100.0090.00014.73
7.3.90.0070.01014.82
7.3.80.0060.00314.95
7.3.70.0030.00614.86
7.3.60.0070.00714.95
7.3.50.0090.00314.72
7.3.40.0060.00314.71
7.3.30.0060.00914.48
7.3.20.0130.00016.64
7.3.10.0060.00316.22
7.3.00.0030.00916.21
7.2.320.0070.01016.48
7.2.310.0100.00616.49
7.2.300.0100.00716.30
7.2.290.0040.01216.35
7.2.250.0030.01014.54
7.2.240.0030.01615.14
7.2.230.0030.00614.92
7.2.220.0000.01114.80
7.2.210.0030.00714.88
7.2.200.0070.00714.98
7.2.190.0130.00014.71
7.2.180.0110.00414.97
7.2.170.0050.00514.75
7.2.110.0070.01116.31
7.2.60.0100.00616.82
7.2.00.0060.00619.34
7.1.330.0080.00815.69
7.1.320.0070.00415.71
7.1.310.0040.00715.73
7.1.300.0030.00615.44
7.1.290.0030.00915.61
7.1.280.0040.00815.59
7.1.270.0090.00315.38
7.1.260.0030.01015.52
7.1.200.0090.00615.59
7.1.100.0040.00717.79
7.1.70.0000.00716.68
7.1.60.0000.02019.82
7.1.50.0030.01716.83
7.1.00.0100.06722.32
7.0.200.0110.00016.49
7.0.140.0100.06721.97
7.0.70.0000.04021.70
7.0.60.0100.03321.69
7.0.50.0030.04021.97
7.0.40.0030.07020.04
7.0.30.0030.04020.12
7.0.20.0030.04320.14
7.0.10.0030.04320.13
7.0.00.0030.04319.99
5.6.280.0000.07720.98
5.6.220.0100.05020.66
5.6.210.0030.04020.57
5.6.200.0030.04021.08
5.6.190.0000.04721.17
5.6.180.0000.04721.00
5.6.170.0100.04321.16
5.6.160.0030.04021.09
5.6.150.0000.04321.17
5.6.140.0070.03721.02
5.6.130.0030.05321.10
5.6.120.0000.03720.94
5.6.110.0030.04321.02
5.6.100.0070.03721.05
5.6.90.0030.07021.05
5.6.80.0030.05720.41
5.6.70.0070.07720.40
5.6.60.0030.07020.41
5.6.50.0070.06320.33
5.6.40.0030.08320.46
5.6.30.0130.07020.30
5.6.20.0000.07020.42
5.6.10.0070.07320.39
5.6.00.0070.07720.39
5.5.360.0100.04020.41
5.5.350.0000.04320.37
5.5.340.0000.04320.79
5.5.330.0070.04720.80
5.5.320.0000.04320.79
5.5.310.0070.04020.89
5.5.300.0100.04720.79
5.5.290.0030.04020.88
5.5.280.0070.03720.77
5.5.270.0070.03720.80
5.5.260.0070.03720.73
5.5.250.0030.07720.64
5.5.240.0030.05320.28
5.5.230.0000.06720.10
5.5.220.0030.06320.23
5.5.210.0100.03720.16
5.5.200.0100.07720.23
5.5.190.0030.06320.17
5.5.180.0000.08720.27
5.5.160.0130.03720.18
5.5.150.0100.08020.23
5.5.140.0130.07720.07
5.5.130.0130.05320.28
5.5.120.0070.04020.14
5.5.110.0130.06320.25
5.5.100.0030.08720.05
5.5.90.0130.07720.00
5.5.80.0070.08020.12
5.5.70.0030.08020.14
5.5.60.0030.08020.13
5.5.50.0030.08020.08
5.5.40.0100.08720.09
5.5.30.0070.07020.02
5.5.20.0000.08720.03
5.5.10.0130.07720.02
5.5.00.0000.08719.96
5.4.450.0000.03719.38
5.4.440.0070.03719.45
5.4.430.0030.04319.44
5.4.420.0030.03019.38
5.4.410.0000.05319.44
5.4.400.0000.04719.12
5.4.390.0100.07719.04
5.4.380.0070.07718.79
5.4.370.0070.08019.09
5.4.360.0070.06018.90
5.4.350.0030.05019.07
5.4.340.0000.04318.96
5.4.320.0070.06319.07
5.4.310.0030.08319.06
5.4.300.0070.07719.02
5.4.290.0070.07318.78
5.4.280.0070.05319.05
5.4.270.0070.07719.04
5.4.260.0030.06018.78
5.4.250.0000.08718.97
5.4.240.0000.08019.24
5.4.230.0100.08019.06
5.4.220.0070.05318.96
5.4.210.0070.07318.80
5.4.200.0070.07019.04
5.4.190.0000.08019.04
5.4.180.0170.06318.82
5.4.170.0030.07719.08
5.4.160.0100.07718.92
5.4.150.0030.08319.11
5.4.140.0000.08316.36
5.4.130.0070.06016.32
5.4.120.0170.07016.26
5.4.110.0100.06716.22
5.4.100.0100.06016.42
5.4.90.0070.07316.30
5.4.80.0070.05716.34
5.4.70.0070.07316.29
5.4.60.0100.05316.43
5.4.50.0070.07316.40
5.4.40.0030.08016.33
5.4.30.0100.06716.39
5.4.20.0100.04316.21
5.4.10.0070.07716.41
5.4.00.0070.05015.81
5.3.290.0100.07314.66
5.3.280.0030.07714.60
5.3.270.0070.07714.61
5.3.260.0030.08014.58
5.3.250.0000.06714.59
5.3.240.0000.08314.60
5.3.230.0000.07714.55
5.3.220.0100.06714.54
5.3.210.0030.05314.39
5.3.200.0070.06314.50
5.3.190.0030.08014.47
5.3.180.0030.05714.50
5.3.170.0070.07714.53
5.3.160.0070.06314.41
5.3.150.0030.08314.55
5.3.140.0100.07314.37
5.3.130.0030.07014.42
5.3.120.0070.05314.53
5.3.110.0030.04314.50
5.3.100.0000.08314.00
5.3.90.0000.08013.84
5.3.80.0070.07013.92
5.3.70.0030.06713.96
5.3.60.0070.04313.95
5.3.50.0170.06013.93
5.3.40.0100.07013.89
5.3.30.0070.07013.84
5.3.20.0030.07713.64
5.3.10.0030.07713.42
5.3.00.0000.08013.58
5.2.170.0000.06312.20
5.2.160.0130.03312.20
5.2.150.0000.06712.20
5.2.140.0070.06312.20
5.2.130.0070.04312.20
5.2.120.0000.04012.20
5.2.110.0000.06312.20
5.2.100.0030.04012.20
5.2.90.0000.04012.20
5.2.80.0070.06312.20
5.2.70.0030.06712.20
5.2.60.0030.06012.20
5.2.50.0100.05312.20
5.2.40.0030.04312.20
5.2.30.0070.05712.20
5.2.20.0100.05712.20
5.2.10.0000.05312.20
5.2.00.0030.06012.20
5.1.60.0030.05012.20
5.1.50.0030.04712.20
5.1.40.0000.05712.20
5.1.30.0030.05712.20
5.1.20.0030.05312.20
5.1.10.0000.05712.20
5.1.00.0030.05712.20
5.0.50.0070.04012.20
5.0.40.0000.04012.20
5.0.30.0000.06712.20
5.0.20.0070.04012.20
5.0.10.0030.04312.20
5.0.00.0070.06012.20
4.4.90.0030.03312.20
4.4.80.0030.03312.20
4.4.70.0000.03712.20
4.4.60.0000.02712.20
4.4.50.0030.02712.20
4.4.40.0000.05712.20
4.4.30.0000.03712.20
4.4.20.0000.04012.20
4.4.10.0000.03712.20
4.4.00.0000.05312.20
4.3.110.0030.03312.20
4.3.100.0000.03712.20
4.3.90.0030.03312.20
4.3.80.0030.03312.20
4.3.70.0030.03312.20
4.3.60.0000.03712.20
4.3.50.0030.02712.20
4.3.40.0000.05312.20
4.3.30.0000.04012.20
4.3.20.0000.03712.20
4.3.10.0030.03712.20
4.3.00.0000.03712.20