3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = "(select count(*) from rateexport where rateexport.`block # rate` > 0) as #," . PHP_EOL; for ($x = 0; $x < 31, $x++) { #$new = str_replace("#", $x, $sql); echo $sql; }

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)
5.6.80.0030.04320.50
5.5.240.0070.06720.34
5.4.400.0400.06018.49
5.4.390.0300.06018.58
5.4.380.0400.05718.63
5.4.370.0330.07718.60
5.4.360.0400.06718.84
5.4.350.0470.05018.80
5.4.340.0330.07018.56
5.4.320.0470.04718.78
5.4.310.0630.05718.77
5.4.300.0470.07318.76
5.4.290.0370.05718.74
5.4.280.0600.06718.78
5.4.270.0470.04718.62
5.4.260.0330.05718.58
5.4.250.0370.05318.75
5.4.240.0270.06018.83
5.4.230.0300.05718.62
5.4.220.0430.06718.49
5.4.210.0330.05718.75
5.4.200.0400.05016.80
5.4.190.0570.06018.45
5.4.180.0300.06018.61
5.4.170.0600.06718.67
5.4.160.0470.04018.49
5.4.150.0430.05018.76
5.4.140.0300.05016.27
5.4.130.0300.06016.41
5.4.120.0300.06316.25
5.4.110.0370.05716.31
5.4.100.0330.06016.23
5.4.90.0300.06016.28
5.4.80.0630.04716.21
5.4.70.0470.06716.41
5.4.60.0370.04716.43
5.4.50.0370.05016.46
5.4.40.0270.07016.39
5.4.30.0400.06716.21
5.4.20.0370.06316.21
5.4.10.0400.05716.17
5.4.00.0370.07315.71
5.3.290.0470.06314.71
5.3.280.0330.06714.56
5.3.270.0430.07314.52
5.3.260.0230.06014.71
5.3.250.0370.07014.55
5.3.240.0370.05314.52
5.3.230.0530.07014.52
5.3.220.0370.07714.55
5.3.210.0400.06714.55
5.3.200.0530.06714.56
5.3.190.0530.06714.62
5.3.180.0430.08314.65
5.3.170.0400.08014.64
5.3.160.0370.08314.49
5.3.150.0500.07014.61
5.3.140.0430.04714.48
5.3.130.0400.06314.44
5.3.120.0330.06314.46
5.3.110.0470.08014.48
5.3.100.0200.07014.14
5.3.90.0470.05714.10
5.3.80.0270.07314.12
5.3.70.0330.07014.02
5.3.60.0630.06713.94
5.3.50.0670.06313.86
5.3.40.0470.06013.91
5.3.30.0370.06013.94
5.3.20.0430.06013.68
5.3.10.0470.06313.64
5.3.00.0470.06313.59
5.2.170.0270.04711.11
5.2.160.0330.04311.09
5.2.150.0300.04711.09
5.2.140.0270.05011.20
5.2.130.0370.04711.05
5.2.120.0070.04311.24
5.2.110.0100.05711.23
5.2.100.0430.05711.05
5.2.90.0300.05711.14
5.2.80.0400.05011.09
5.2.70.0330.05011.04
5.2.60.0330.05711.00
5.2.50.0330.04710.96
5.2.40.0330.04710.95
5.2.30.0300.05010.96
5.2.20.0230.04710.93
5.2.10.0400.04710.86
5.2.00.0270.06010.81
5.1.60.0400.04010.05
5.1.50.0200.04010.06
5.1.40.0270.03010.00
5.1.30.0230.04010.43
5.1.20.0130.04310.36
5.1.10.0100.04710.20
5.1.00.0200.04010.13
5.0.50.0100.0338.52
5.0.40.0130.0308.48
5.0.30.0070.0478.24
5.0.20.0070.0408.26
5.0.10.0100.0308.20
5.0.00.0100.0438.13
4.4.90.0170.0235.91
4.4.80.0070.0275.88
4.4.70.0200.0235.82
4.4.60.0230.0205.89
4.4.50.0100.0305.93
4.4.40.0070.0405.92
4.4.30.0200.0235.90
4.4.20.0170.0275.96
4.4.10.0130.0306.00
4.4.00.0100.0435.89
4.3.110.0070.0275.75
4.3.100.0070.0275.83
4.3.90.0100.0205.86
4.3.80.0170.0375.82
4.3.70.0100.0235.89
4.3.60.0170.0175.84
4.3.50.0130.0305.80
4.3.40.0100.0475.73
4.3.30.0100.0305.57
4.3.20.0030.0275.57
4.3.10.0000.0275.57
4.3.00.0070.0206.66

preferences:
143.03 ms | 939 KiB | 8 Q