3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $one = $two = $three = 0; for($i=0;$i<1000;$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 d6APd
Output for 7.1.0
one 308; two 336; three 356
Output for 7.0.14
one 327; two 323; three 350
Output for 7.0.6
one 331; two 341; three 328
Output for 7.0.5
one 328; two 366; three 306
Output for 7.0.4
one 318; two 341; three 341
Output for 7.0.3
one 314; two 340; three 346
Output for 7.0.2
one 329; two 332; three 339
Output for 7.0.1
one 306; two 347; three 347
Output for 7.0.0
one 341; two 321; three 338
Output for 5.6.28
one 319; two 334; three 347
Output for 5.3.26, 5.6.13, 5.6.21
one 336; two 335; three 329
Output for 5.6.20
one 346; two 336; three 318
Output for 5.6.19
one 330; two 333; three 337
Output for 5.6.18
one 328; two 321; three 351
Output for 5.6.17
one 335; two 328; three 337
Output for 5.6.16
one 354; two 320; three 326
Output for 5.6.15
one 330; two 339; three 331
Output for 5.3.14, 5.6.14
one 335; two 337; three 328
Output for 5.6.12
one 336; two 316; three 348
Output for 5.6.11
one 301; two 340; three 359
Output for 5.6.10
one 308; two 359; three 333
Output for 5.6.9
one 329; two 315; three 356
Output for 5.6.8
one 321; two 336; three 343
Output for 5.5.35
one 366; two 311; three 323
Output for 5.5.34
one 323; two 326; three 351
Output for 5.5.33
one 355; two 323; three 322
Output for 5.5.32
one 321; two 325; three 354
Output for 5.5.31
one 332; two 352; three 316
Output for 5.5.30
one 334; two 350; three 316
Output for 5.5.29
one 343; two 327; three 330
Output for 5.5.28
one 340; two 327; three 333
Output for 5.5.27
one 355; two 336; three 309
Output for 5.5.26
one 312; two 314; three 374
Output for 5.5.25
one 357; two 333; three 310
Output for 5.5.24
one 328; two 345; three 327
Output for 5.4.45
one 302; two 349; three 349
Output for 5.4.44
one 331; two 324; three 345
Output for 5.4.43
one 326; two 330; three 344
Output for 5.4.42
one 350; two 325; three 325
Output for 5.4.15, 5.4.41
one 339; two 328; three 333
Output for 5.4.40
one 310; two 334; three 356
Output for 5.4.39
one 340; two 350; three 310
Output for 5.4.38
one 344; two 332; three 324
Output for 5.4.37
one 312; two 325; three 363
Output for 5.4.36
one 343; two 323; three 334
Output for 5.4.35
one 358; two 318; three 324
Output for 5.4.34
one 327; two 317; three 356
Output for 5.4.32
one 344; two 327; three 329
Output for 5.4.31
one 324; two 339; three 337
Output for 5.4.30
one 324; two 344; three 332
Output for 5.4.29
one 346; two 297; three 357
Output for 5.4.28
one 325; two 326; three 349
Output for 5.4.27
one 320; two 358; three 322
Output for 5.4.26
one 336; two 331; three 333
Output for 5.2.2, 5.4.25
one 343; two 333; three 324
Output for 5.4.24
one 360; two 343; three 297
Output for 5.4.23
one 345; two 363; three 292
Output for 5.4.22
one 323; two 322; three 355
Output for 5.4.21
one 319; two 330; three 351
Output for 5.4.20
one 321; two 334; three 345
Output for 5.4.19
one 364; two 289; three 347
Output for 5.4.18
one 353; two 336; three 311
Output for 5.3.4, 5.4.17
one 328; two 341; three 331
Output for 5.4.16
one 344; two 303; three 353
Output for 5.4.14
one 351; two 320; three 329
Output for 5.1.6, 5.4.13
one 340; two 333; three 327
Output for 5.4.12
one 314; two 356; three 330
Output for 5.4.11
one 344; two 329; three 327
Output for 5.4.10
one 349; two 354; three 297
Output for 5.4.9
one 317; two 324; three 359
Output for 5.4.8
one 345; two 355; three 300
Output for 5.4.7
one 352; two 344; three 304
Output for 5.4.6
one 339; two 321; three 340
Output for 5.4.5
one 320; two 338; three 342
Output for 5.4.4
one 296; two 365; three 339
Output for 5.4.3
one 329; two 327; three 344
Output for 5.4.2
one 339; two 339; three 322
Output for 5.4.1
one 369; two 323; three 308
Output for 5.4.0
one 323; two 356; three 321
Output for 5.3.29
one 363; two 312; three 325
Output for 5.3.28
one 330; two 323; three 347
Output for 5.3.27
one 329; two 324; three 347
Output for 5.3.25
one 308; two 350; three 342
Output for 5.3.24
one 318; two 357; three 325
Output for 5.3.23
one 331; two 315; three 354
Output for 5.3.22
one 318; two 347; three 335
Output for 5.3.21
one 357; two 314; three 329
Output for 5.3.20
one 331; two 328; three 341
Output for 5.3.19
one 301; two 348; three 351
Output for 5.3.18
one 330; two 365; three 305
Output for 5.3.17
one 343; two 329; three 328
Output for 5.3.16
one 323; two 334; three 343
Output for 5.3.15
one 328; two 337; three 335
Output for 5.3.13
one 349; two 338; three 313
Output for 5.3.12
one 324; two 343; three 333
Output for 5.3.11
one 313; two 334; three 353
Output for 5.3.10
one 341; two 340; three 319
Output for 5.3.9
one 355; two 338; three 307
Output for 5.3.8
one 334; two 359; three 307
Output for 5.3.7
one 316; two 339; three 345
Output for 5.3.6
one 319; two 339; three 342
Output for 5.3.5
one 341; two 327; three 332
Output for 5.3.3
one 342; two 334; three 324
Output for 5.3.2
one 342; two 325; three 333
Output for 5.3.1
one 356; two 310; three 334
Output for 5.3.0
one 317; two 369; three 314
Output for 5.2.17
one 322; two 327; three 351
Output for 5.2.16
one 334; two 338; three 328
Output for 5.2.15
one 332; two 334; three 334
Output for 5.2.14
one 336; two 338; three 326
Output for 5.2.13
one 316; two 336; three 348
Output for 5.2.12
one 355; two 329; three 316
Output for 5.2.11
one 332; two 350; three 318
Output for 5.2.10
one 324; two 312; three 364
Output for 5.2.9
one 337; two 330; three 333
Output for 5.2.8
one 340; two 325; three 335
Output for 5.2.7
one 340; two 304; three 356
Output for 5.2.6
one 341; two 334; three 325
Output for 5.2.5
one 317; two 326; three 357
Output for 5.2.4
one 327; two 334; three 339
Output for 5.2.3
one 334; two 327; three 339
Output for 5.2.1
one 336; two 348; three 316
Output for 5.2.0
one 341; two 349; three 310
Output for 5.1.5
one 349; two 325; three 326
Output for 5.1.4
one 322; two 349; three 329
Output for 5.1.3
one 352; two 326; three 322
Output for 5.1.2
one 340; two 328; three 332
Output for 5.1.1
one 316; two 359; three 325
Output for 5.1.0
one 340; two 332; three 328
Output for 5.0.5
one 333; two 321; three 346
Output for 5.0.4
one 302; two 338; three 360
Output for 5.0.3
one 318; two 361; three 321
Output for 5.0.2
one 320; two 320; three 360
Output for 5.0.1
one 352; two 315; three 333
Output for 5.0.0
one 319; two 342; three 339
Output for 4.4.9
one 318; two 334; three 348
Output for 4.4.8
one 320; two 342; three 338
Output for 4.4.7
one 320; two 335; three 345
Output for 4.4.6
one 345; two 332; three 323
Output for 4.4.5
one 329; two 354; three 317
Output for 4.4.4
one 317; two 333; three 350
Output for 4.4.3
one 343; two 349; three 308
Output for 4.4.2
one 353; two 311; three 336
Output for 4.4.1
one 328; two 336; three 336
Output for 4.4.0
one 325; two 322; three 353
Output for 4.3.11
one 320; two 331; three 349
Output for 4.3.10
one 347; two 327; three 326
Output for 4.3.9
one 303; two 354; three 343
Output for 4.3.8
one 336; two 311; three 353
Output for 4.3.7
one 345; two 330; three 325
Output for 4.3.6
one 356; two 315; three 329
Output for 4.3.5
one 325; two 313; three 362
Output for 4.3.4
one 335; two 345; three 320
Output for 4.3.3
one 351; two 332; three 317
Output for 4.3.2
one 356; two 321; three 323
Output for 4.3.1
one 325; two 336; three 339
Output for 4.3.0
one 348; two 335; three 317