3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "SELECT _%asdf from user where test=_"; $b = mysql_real_escape_string($a);

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.0110.00716.38
8.3.50.0060.01321.92
8.3.40.0070.01418.90
8.3.30.0070.00718.72
8.3.20.0040.00420.16
8.3.10.0050.00221.82
8.3.00.0030.00717.35
8.2.180.0070.00718.38
8.2.170.0140.00022.96
8.2.160.0130.00022.12
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0030.00621.99
8.2.100.0060.00617.91
8.2.90.0090.00017.63
8.2.80.0040.00418.73
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0040.00419.37
8.2.30.0080.00020.62
8.2.20.0040.00417.70
8.2.10.0040.00418.06
8.2.00.0000.00818.11
8.1.280.0140.00725.92
8.1.270.0000.00823.71
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00420.60
8.1.230.0080.00417.83
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0030.00516.99
8.1.180.0080.00018.10
8.1.170.0060.00319.03
8.1.160.0000.00721.94
8.1.150.0000.00718.79
8.1.140.0040.00419.49
8.1.130.0040.00417.61
8.1.120.0070.00017.30
8.1.110.0030.00317.39
8.1.100.0030.00517.38
8.1.90.0020.00517.38
8.1.80.0030.00517.41
8.1.70.0000.00717.38
8.1.60.0060.00317.54
8.1.50.0000.00817.42
8.1.40.0090.00017.39
8.1.30.0000.00817.47
8.1.20.0040.00417.55
8.1.10.0040.00417.63
8.1.00.0000.00817.41
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0030.00318.37
8.0.270.0030.00317.23
8.0.260.0060.00017.18
8.0.250.0040.00416.91
8.0.240.0000.00616.99
8.0.230.0030.00316.91
8.0.220.0070.00016.88
8.0.210.0030.00316.90
8.0.200.0030.00516.95
8.0.190.0040.00416.84
8.0.180.0040.00416.79
8.0.170.0040.00416.87
8.0.160.0040.00416.91
8.0.150.0000.00816.73
8.0.140.0030.00316.88
8.0.130.0030.00313.32
8.0.120.0000.00816.83
8.0.110.0030.00516.88
8.0.100.0000.00816.82
8.0.90.0020.00516.93
8.0.80.0090.00616.86
8.0.70.0040.00416.95
8.0.60.0020.00516.77
8.0.50.0070.00016.83
8.0.30.0130.00316.95
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0130.00416.74
7.4.330.0050.00015.08
7.4.320.0060.00016.57
7.4.300.0030.00316.40
7.4.290.0000.00616.63
7.4.280.0080.00016.61
7.4.270.0030.00316.64
7.4.260.0000.00716.53
7.4.250.0000.00716.54
7.4.240.0020.00516.52
7.4.230.0030.00316.61
7.4.220.0110.01416.57
7.4.210.0130.00616.52
7.4.200.0000.00716.33
7.4.160.0040.01116.52
7.4.150.0080.01317.40
7.4.140.0130.00717.86
7.4.130.0040.01416.57
7.4.120.0050.01316.50
7.4.110.0180.00316.62
7.4.100.0130.00716.49
7.4.90.0070.01116.45
7.4.80.0100.00719.39
7.4.70.0060.01216.50
7.4.60.0100.00616.49
7.4.50.0080.00016.55
7.4.40.0100.00516.52
7.4.30.0090.01316.57
7.4.00.0090.00614.96
7.3.330.0050.00013.16
7.3.320.0030.00313.19
7.3.310.0030.00316.18
7.3.300.0030.00316.28
7.3.290.0000.00716.29
7.3.280.0110.01116.22
7.3.270.0030.01317.40
7.3.260.0110.00516.35
7.3.240.0050.01216.38
7.3.230.0080.00816.39
7.3.210.0090.00916.34
7.3.200.0130.00316.25
7.3.190.0060.00916.43
7.3.180.0030.01416.23
7.3.170.0090.00616.27
7.3.160.0030.01216.51
7.3.10.0020.01416.73
7.3.00.0070.00516.59
7.2.330.0190.00316.50
7.2.320.0030.01416.53
7.2.310.0180.00016.49
7.2.300.0070.01416.26
7.2.290.0030.01516.51
7.2.130.0070.00716.78
7.2.120.0020.01216.58
7.2.110.0050.01016.88
7.2.100.0050.00516.76
7.2.90.0080.00816.81
7.2.80.0060.00816.59
7.2.70.0050.00716.74
7.2.60.0040.00816.68
7.2.50.0080.00716.79
7.2.40.0050.00716.62
7.2.30.0020.00816.84
7.2.20.0080.00816.70
7.2.10.0110.00316.76
7.2.00.0070.00717.58
7.1.250.0080.00315.39
7.1.240.0060.00615.64
7.1.230.0070.00315.60
7.1.220.0040.01115.50
7.1.210.0090.00615.61
7.1.200.0050.00915.70
7.1.190.0000.01315.57
7.1.180.0090.00615.75
7.1.170.0030.00915.41
7.1.160.0110.00415.58
7.1.150.0030.00615.72
7.1.140.0040.01115.70
7.1.130.0080.00415.70
7.1.120.0000.01515.42
7.1.110.0110.00415.47
7.1.100.0060.00616.74
7.1.90.0050.00215.70
7.1.80.0090.00615.52
7.1.70.0040.00716.41
7.1.60.0040.01517.59
7.1.50.0060.00916.09
7.1.40.0030.01315.41
7.1.30.0060.01015.55
7.1.20.0040.01115.66
7.1.10.0070.00715.77
7.1.00.0070.04018.99
7.0.330.0070.00715.27
7.0.320.0030.00515.29
7.0.310.0120.00315.33
7.0.300.0050.00314.96
7.0.290.0130.00015.34
7.0.280.0030.00815.33
7.0.270.0130.00315.31
7.0.260.0060.00315.21
7.0.250.0090.00615.10
7.0.240.0060.00615.46
7.0.230.0030.01015.39
7.0.220.0000.01315.27
7.0.210.0050.00515.31
7.0.200.0080.00314.96
7.0.190.0120.00015.22
7.0.180.0000.01215.10
7.0.170.0040.00415.30
7.0.160.0060.00915.14
7.0.150.0030.01015.32
7.0.140.0060.00615.17
7.0.130.0070.00314.97
7.0.120.0030.00915.44
7.0.110.0120.00415.17
7.0.100.0020.00515.11
7.0.90.0070.00715.34
7.0.80.0030.00915.31
7.0.70.0040.00815.41
7.0.60.0050.04317.54
7.0.50.0050.04416.61
7.0.40.0100.03516.68
7.0.30.0090.02616.81
7.0.20.0200.03516.77
7.0.10.0090.03216.63
7.0.00.0130.02216.68
5.6.380.0110.00413.75
5.6.370.0000.01314.14
5.6.360.0080.00614.17
5.6.350.0060.00614.07
5.6.340.0060.00614.01
5.6.330.0040.00714.10
5.6.320.0030.00614.32
5.6.310.0060.00914.13
5.6.300.0000.01014.05
5.6.290.0040.01114.10
5.6.280.0070.00314.38
5.6.270.0030.00613.92
5.6.260.0030.01314.05
5.6.250.0090.00014.05
5.6.240.0030.00614.32
5.6.230.0000.01414.38
5.6.220.0000.00914.16
5.6.210.0020.04817.21
5.6.200.0080.03716.13
5.6.190.0030.03617.29
5.6.180.1730.02017.44
5.6.170.0160.04117.24
5.6.160.0050.04917.25
5.6.150.0050.02116.15
5.6.140.0110.03915.99
5.6.130.0070.03016.29
5.6.120.0030.02917.53
5.6.110.0090.03317.60
5.6.100.0020.02817.71
5.6.90.0070.03817.50
5.6.80.0060.03517.25
5.6.70.0130.00013.89
5.6.60.0000.01314.20
5.6.50.0000.01413.88
5.6.40.0040.01114.07
5.6.30.0040.01113.98
5.6.20.0100.00714.13
5.6.10.0000.01514.04
5.6.00.0080.00014.05
5.5.380.0030.00610.57
5.5.370.0040.00411.04
5.5.360.0120.00010.73
5.5.350.0170.03015.60
5.5.340.0070.04214.35
5.5.330.0030.04315.42
5.5.320.0130.02515.50
5.5.310.0150.03615.50
5.5.300.0090.02514.33
5.5.290.0060.03014.35
5.5.280.0030.04416.02
5.5.270.0090.04215.86
5.5.260.0100.04115.83
5.5.250.0050.04715.61
5.5.240.0050.03015.48
5.5.230.0060.00610.85
5.5.220.0030.00910.76
5.5.210.0090.00310.92
5.5.200.0110.00010.44
5.5.190.0030.01010.84
5.5.180.0040.00710.50
5.5.170.0050.00210.82
5.5.160.0090.00310.28
5.5.150.0030.00710.61
5.5.140.0120.00010.72
5.5.130.0030.01110.90
5.5.120.0040.00710.93
5.5.110.0030.00310.80
5.5.100.0070.00410.59
5.5.90.0060.00610.82
5.5.80.0030.00710.65
5.5.70.0030.01010.71
5.5.60.0040.00710.84
5.5.50.0030.00310.62
5.5.40.0070.00310.59
5.5.30.0060.00310.61
5.5.20.0030.00310.66
5.5.10.0000.01010.70
5.5.00.0070.00710.85
5.4.450.0260.02815.19
5.4.440.0360.03115.23
5.4.430.0150.03714.97
5.4.420.0130.03515.34
5.4.410.0130.03214.89
5.4.400.0120.03015.05
5.4.390.0190.03915.07
5.4.380.0100.03515.07
5.4.370.0100.03814.86
5.4.360.0340.02714.90
5.4.350.0160.03315.01
5.4.340.0350.04114.92
5.4.330.0000.01210.72
5.4.320.0350.03614.92
5.4.310.0200.04014.76
5.4.300.0370.03914.97
5.4.290.0270.03415.02
5.4.280.0120.04015.09
5.4.270.0120.03214.73
5.4.260.0150.03314.99
5.4.250.0150.03014.85
5.4.240.0170.04214.92
5.4.230.0160.03114.80
5.4.220.0290.03914.85
5.4.210.0120.03515.00
5.4.200.0130.03514.93
5.4.190.0050.03814.93
5.4.180.0130.03514.62
5.4.170.0170.03415.00
5.4.160.0230.03314.92
5.4.150.0100.03014.93
5.4.140.0170.02413.42
5.4.130.0160.02813.51
5.4.120.0100.03113.56
5.4.110.0080.02813.41
5.4.100.0250.03213.54
5.4.90.0150.03313.65
5.4.80.0150.03513.35
5.4.70.0130.03513.58
5.4.60.0100.03613.43
5.4.50.0180.02713.60
5.4.40.0150.03313.44
5.4.30.0130.03513.47
5.4.20.0080.03813.44
5.4.10.0100.03713.51
5.4.00.0120.03013.30

preferences:
62.61 ms | 401 KiB | 5 Q