3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $one = $two = $three = 0; for($i=0;$i<400;$i++) { $c = mt_rand(1,3); if($c == 1) { $one++; } elseif($c == 2) { $two++; } elseif($c=3) { $three++; } } echo "one {$one}; two {$two}; three {$three}";
based on TC7cI
Output for 7.1.0
one 117; two 137; three 146
Output for 7.0.14
one 120; two 148; three 132
Output for 7.0.6
one 107; two 148; three 145
Output for 7.0.5
one 140; two 140; three 120
Output for 7.0.4
one 126; two 135; three 139
Output for 7.0.3
one 140; two 124; three 136
Output for 5.3.19, 5.4.18, 7.0.2
one 129; two 127; three 144
Output for 7.0.1
one 133; two 146; three 121
Output for 7.0.0
one 116; two 139; three 145
Output for hhvm-3.12.0
one 136; two 122; three 142
Output for hhvm-3.10.0
one 126; two 139; three 135
Output for 5.6.28
one 132; two 129; three 139
Output for 5.6.21
one 133; two 134; three 133
Output for 5.6.20
one 135; two 128; three 137
Output for 5.6.19
one 131; two 149; three 120
Output for 5.6.18
one 113; two 135; three 152
Output for 5.6.17
one 126; two 150; three 124
Output for 5.6.16
one 138; two 119; three 143
Output for 5.6.15
one 117; two 141; three 142
Output for 5.6.14
one 140; two 133; three 127
Output for 5.6.13
one 122; two 147; three 131
Output for 5.6.12
one 130; two 128; three 142
Output for 5.6.11
one 137; two 138; three 125
Output for 5.6.10
one 139; two 122; three 139
Output for 5.3.24, 5.6.9
one 124; two 138; three 138
Output for 5.6.8
one 136; two 123; three 141
Output for 5.5.35
one 130; two 130; three 140
Output for 5.5.34
one 124; two 135; three 141
Output for 5.5.33
one 142; two 125; three 133
Output for 5.5.32
one 116; two 132; three 152
Output for 5.5.31
one 122; two 131; three 147
Output for 5.5.30
one 128; two 145; three 127
Output for 5.5.29
one 153; two 108; three 139
Output for 5.5.28
one 125; two 156; three 119
Output for 5.5.27
one 134; two 137; three 129
Output for 5.5.26
one 133; two 121; three 146
Output for 5.5.25
one 125; two 140; three 135
Output for 5.5.24
one 119; two 139; three 142
Output for 5.4.45
one 119; two 147; three 134
Output for 5.3.3, 5.4.44
one 124; two 146; three 130
Output for 5.4.43
one 137; two 140; three 123
Output for 5.4.42
one 110; two 148; three 142
Output for 5.4.41
one 131; two 131; three 138
Output for 5.4.40
one 139; two 125; three 136
Output for 5.4.37, 5.4.39
one 133; two 132; three 135
Output for 5.4.38
one 130; two 132; three 138
Output for 5.4.36
one 131; two 135; three 134
Output for 5.4.35
one 124; two 149; three 127
Output for 5.4.2, 5.4.34
one 131; two 136; three 133
Output for 5.4.32
one 137; two 115; three 148
Output for 5.4.31
one 138; two 124; three 138
Output for 5.4.30
one 146; two 129; three 125
Output for 5.4.29
one 137; two 130; three 133
Output for 5.4.28
one 144; two 128; three 128
Output for 5.4.27
one 149; two 114; three 137
Output for 5.4.26
one 117; two 149; three 134
Output for 5.4.25
one 144; two 136; three 120
Output for 5.4.24
one 139; two 120; three 141
Output for 5.4.23
one 127; two 136; three 137
Output for 5.4.22
one 149; two 135; three 116
Output for 5.4.21
one 129; two 138; three 133
Output for 4.4.1, 5.4.20
one 123; two 135; three 142
Output for 5.4.19
one 128; two 137; three 135
Output for 5.4.17
one 121; two 126; three 153
Output for 5.4.16
one 127; two 128; three 145
Output for 5.4.15
one 141; two 148; three 111
Output for 5.4.14
one 118; two 142; three 140
Output for 5.4.13
one 137; two 129; three 134
Output for 5.4.12
one 128; two 134; three 138
Output for 5.4.11
one 138; two 132; three 130
Output for 5.2.4, 5.4.10
one 141; two 135; three 124
Output for 5.4.9
one 129; two 135; three 136
Output for 5.4.8
one 127; two 132; three 141
Output for 5.4.7
one 142; two 124; three 134
Output for 4.3.0, 5.4.6
one 130; two 131; three 139
Output for 5.4.5
one 138; two 130; three 132
Output for 5.4.4
one 137; two 124; three 139
Output for 5.4.3
one 135; two 142; three 123
Output for 5.4.1
one 129; two 139; three 132
Output for 5.4.0
one 125; two 145; three 130
Output for 5.3.29
one 126; two 142; three 132
Output for 5.3.28
one 151; two 137; three 112
Output for 5.3.27
one 132; two 135; three 133
Output for 5.3.26
one 142; two 117; three 141
Output for 5.3.25
one 143; two 124; three 133
Output for 5.3.23
one 120; two 143; three 137
Output for 5.3.22
one 143; two 127; three 130
Output for 5.3.21
one 125; two 128; three 147
Output for 5.3.20
one 119; two 150; three 131
Output for 5.3.18
one 138; two 133; three 129
Output for 5.3.17
one 123; two 157; three 120
Output for 5.3.16
one 134; two 129; three 137
Output for 5.3.11, 5.3.15
one 146; two 130; three 124
Output for 5.3.14
one 145; two 114; three 141
Output for 5.3.13
one 131; two 125; three 144
Output for 5.3.12
one 132; two 131; three 137
Output for 5.3.10
one 143; two 135; three 122
Output for 5.3.9
one 123; two 140; three 137
Output for 5.3.8
one 122; two 123; three 155
Output for 5.3.7
one 141; two 137; three 122
Output for 5.3.6
one 136; two 138; three 126
Output for 5.3.5
one 117; two 152; three 131
Output for 5.3.4
one 139; two 132; three 129
Output for 5.3.2
one 133; two 142; three 125
Output for 5.3.1
one 139; two 121; three 140
Output for 5.3.0
one 145; two 139; three 116
Output for 5.2.17
one 111; two 159; three 130
Output for 5.2.16
one 145; two 127; three 128
Output for 5.2.15
one 128; two 130; three 142
Output for 5.2.14
one 129; two 137; three 134
Output for 5.2.13
one 157; two 121; three 122
Output for 5.2.12
one 134; two 126; three 140
Output for 5.2.11
one 141; two 129; three 130
Output for 5.2.10
one 129; two 148; three 123
Output for 5.2.9
one 120; two 138; three 142
Output for 5.2.8
one 135; two 123; three 142
Output for 5.2.7
one 137; two 139; three 124
Output for 5.2.6
one 134; two 142; three 124
Output for 5.2.5
one 151; two 134; three 115
Output for 5.2.3
one 130; two 142; three 128
Output for 5.2.2
one 144; two 129; three 127
Output for 5.2.1
one 136; two 135; three 129
Output for 5.2.0
one 129; two 125; three 146
Output for 5.1.6
one 146; two 139; three 115
Output for 5.1.5
one 125; two 130; three 145
Output for 5.1.4
one 139; two 134; three 127
Output for 5.1.3
one 139; two 135; three 126
Output for 5.1.2
one 159; two 123; three 118
Output for 5.1.1
one 145; two 132; three 123
Output for 5.1.0
one 115; two 157; three 128
Output for 5.0.5
one 125; two 137; three 138
Output for 5.0.4
one 162; two 119; three 119
Output for 5.0.3
one 136; two 110; three 154
Output for 5.0.2
one 115; two 146; three 139
Output for 5.0.1
one 131; two 142; three 127
Output for 5.0.0
one 137; two 121; three 142
Output for 4.4.9
one 128; two 139; three 133
Output for 4.3.2, 4.4.8
one 123; two 139; three 138
Output for 4.4.7
one 142; two 129; three 129
Output for 4.4.6
one 130; two 137; three 133
Output for 4.4.5
one 145; two 124; three 131
Output for 4.4.4
one 128; two 131; three 141
Output for 4.4.3
one 131; two 147; three 122
Output for 4.4.2
one 134; two 123; three 143
Output for 4.4.0
one 133; two 143; three 124
Output for 4.3.11
one 129; two 121; three 150
Output for 4.3.10
one 135; two 148; three 117
Output for 4.3.9
one 145; two 128; three 127
Output for 4.3.8
one 135; two 133; three 132
Output for 4.3.7
one 130; two 119; three 151
Output for 4.3.6
one 133; two 139; three 128
Output for 4.3.5
one 147; two 131; three 122
Output for 4.3.4
one 143; two 132; three 125
Output for 4.3.3
one 131; two 130; three 139
Output for 4.3.1
one 142; two 132; three 126