3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $a = ''; for($i=0; $i<1000000; $i++) $a = 'yay'; echo round(microtime(true)-$t,3).' '; $t = microtime(true); $a = ''; for($i=0; $i<1000000; $i++) $a = "yay"; echo round(microtime(true)-$t,3).' ';
Output for 7.0.2, 7.0.14 - 7.1.0
0.017 0.015
Output for 7.0.6
0.017 0.013
Output for 7.0.0, 7.0.4 - 7.0.5
0.011 0.011
Output for 7.0.3
0.012 0.012
Output for 7.0.1
0.015 0.014
Output for hhvm-3.12.0
0.046 0.044
Output for hhvm-3.10.0
0.05 0.05
Output for 5.6.28
0.066 0.057
Output for 5.4.32, 5.4.36, 5.6.21
0.044 0.037
Output for 5.6.20
0.044 0.032
Output for 5.6.19
0.034 0.034
Output for 5.6.18
0.042 0.038
Output for 5.6.17
0.037 0.034
Output for 5.6.16
0.037 0.045
Output for 5.5.26, 5.6.12, 5.6.15
0.041 0.036
Output for 5.4.19, 5.4.22, 5.5.24, 5.6.14
0.044 0.038
Output for 5.6.13
0.036 0.033
Output for 5.4.13, 5.6.11
0.034 0.032
Output for 5.6.10
0.045 0.039
Output for 5.6.9
0.041 0.04
Output for 5.6.8
0.043 0.033
Output for 5.5.35
0.028 0.029
Output for 5.4.17, 5.5.34
0.048 0.04
Output for 5.5.30, 5.5.33
0.033 0.032
Output for 5.5.27, 5.5.32
0.041 0.035
Output for 5.5.31
0.032 0.033
Output for 5.4.5, 5.4.10, 5.4.16, 5.4.18, 5.4.29, 5.5.29
0.047 0.039
Output for 5.5.28
0.046 0.04
Output for 5.4.27, 5.5.25
0.046 0.039
Output for 5.4.45
0.045 0.038
Output for 5.4.39, 5.4.44
0.042 0.036
Output for 5.4.43
0.041 0.039
Output for 5.4.42
0.038 0.033
Output for 5.4.41
0.04 0.036
Output for 5.4.40
0.049 0.032
Output for 5.4.1, 5.4.9, 5.4.12, 5.4.15, 5.4.20, 5.4.24 - 5.4.26, 5.4.38
0.032 0.032
Output for 5.4.37
0.047 0.041
Output for 5.4.35
0.047 0.033
Output for 5.4.34
0.039 0.038
Output for 5.4.31
0.05 0.041
Output for 5.4.21, 5.4.30
0.042 0.037
Output for 5.4.28
0.043 0.036
Output for 5.4.23
0.05 0.034
Output for 5.4.14
0.037 0.035
Output for 5.4.11
0.051 0.044
Output for 5.4.8
0.048 0.039
Output for 5.4.7
0.054 0.042
Output for 5.4.6
0.04 0.04
Output for 5.4.4
0.044 0.034
Output for 5.4.3
0.034 0.036
Output for 5.4.0, 5.4.2
0.033 0.034
Output for 5.3.29
0.062 0.051
Output for 5.3.28
0.059 0.052
Output for 5.3.27
0.052 0.049
Output for 5.3.26
0.051 0.048
Output for 5.3.25
0.053 0.052
Output for 5.3.24
0.066 0.049
Output for 5.3.23
0.084 0.062
Output for 5.3.22
0.069 0.055
Output for 5.3.21
0.067 0.052
Output for 5.3.17, 5.3.20
0.074 0.056
Output for 5.3.19
0.071 0.055
Output for 5.3.18
0.062 0.052
Output for 5.3.16
0.077 0.059
Output for 5.3.0, 5.3.15
0.072 0.056
Output for 5.3.14
0.075 0.055
Output for 5.3.13
0.069 0.054
Output for 5.3.12
0.066 0.053
Output for 5.3.11
0.074 0.058
Output for 5.3.10
0.064 0.064
Output for 5.3.9
0.065 0.062
Output for 5.3.8
0.067 0.051
Output for 5.3.7
0.058 0.056
Output for 5.3.6
0.052 0.052
Output for 5.3.5
0.059 0.056
Output for 5.3.4
0.076 0.059
Output for 5.3.3
0.065 0.058
Output for 5.3.2
0.075 0.058
Output for 5.3.1
0.068 0.051
Output for 5.2.17
0.079 0.083
Output for 5.2.12, 5.2.16
0.067 0.061
Output for 5.2.15
0.085 0.071
Output for 5.2.1, 5.2.14
0.06 0.06
Output for 5.2.13
0.072 0.063
Output for 5.2.11
0.061 0.061
Output for 5.2.10
0.07 0.061
Output for 5.2.9
0.086 0.062
Output for 5.2.8
0.085 0.067
Output for 5.2.7
0.084 0.065
Output for 5.2.6
0.073 0.062
Output for 5.2.5
0.09 0.067
Output for 5.2.4
0.101 0.093
Output for 5.2.3
0.074 0.076
Output for 5.2.2
0.092 0.063
Output for 5.2.0
0.067 0.064
Output for 5.1.6
0.095 0.069
Output for 5.1.5
0.066 0.066
Output for 5.1.4
0.094 0.069
Output for 5.1.3
0.08 0.074
Output for 5.1.2
0.097 0.068
Output for 5.1.1
0.091 0.066
Output for 5.1.0
0.074 0.074
Output for 5.0.5
0.174 0.135
Output for 5.0.4
0.158 0.129
Output for 5.0.3
0.149 0.124
Output for 5.0.1 - 5.0.2
0.125 0.124
Output for 5.0.0
0.157 0.142
Output for 4.4.9
0.131 0.12
Output for 4.4.8
-0.88 0.119
Output for 4.4.7
0.162 0.12
Output for 4.4.6
0.146 0.12
Output for 4.4.5
-0.878 0.122
Output for 4.4.4
0.142 0.143
Output for 4.3.9, 4.4.3
0.122 0.122
Output for 4.4.2
-0.878 0.124
Output for 4.4.1
0.159 0.123
Output for 4.4.0
0.144 0.148
Output for 4.3.11
-0.867 0.123
Output for 4.3.10
0.143 0.142
Output for 4.3.8
-0.874 0.127
Output for 4.3.7
0.141 0.128
Output for 4.3.6
0.124 0.122
Output for 4.3.5
-0.881 0.118
Output for 4.3.4
0.135 0.118
Output for 4.3.3
0.161 0.121
Output for 4.3.2
0.155 0.121
Output for 4.3.1
0.174 0.122
Output for 4.3.0
0.161 -0.876