3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = [0, 1]; for($i = 0; $i < 10000; $i++) { $n = rand(0, 99) * rand(0, 99); $a[$n%2]++; } var_dump($a);
based on hLCc4
Output for 5.4.9, 5.6.12, 7.1.0
array(2) { [0]=> int(7473) [1]=> int(2528) }
Output for 7.0.14
array(2) { [0]=> int(7562) [1]=> int(2439) }
Output for 5.4.26, 7.0.0, 7.0.6
array(2) { [0]=> int(7462) [1]=> int(2539) }
Output for 5.4.3, 7.0.5
array(2) { [0]=> int(7549) [1]=> int(2452) }
Output for 7.0.4
array(2) { [0]=> int(7456) [1]=> int(2545) }
Output for 5.4.5, 7.0.3
array(2) { [0]=> int(7476) [1]=> int(2525) }
Output for 5.4.36, 7.0.2
array(2) { [0]=> int(7546) [1]=> int(2455) }
Output for 5.4.14, 5.6.10, 7.0.1
array(2) { [0]=> int(7488) [1]=> int(2513) }
Output for hhvm-3.12.0
array(2) { [0]=> int(7589) [1]=> int(2412) }
Output for hhvm-3.10.0
array(2) { [0]=> int(7563) [1]=> int(2438) }
Output for 5.4.42, 5.6.28
array(2) { [0]=> int(7471) [1]=> int(2530) }
Output for 5.6.21
array(2) { [0]=> int(7447) [1]=> int(2554) }
Output for 5.6.17, 5.6.20
array(2) { [0]=> int(7468) [1]=> int(2533) }
Output for 5.6.19
array(2) { [0]=> int(7477) [1]=> int(2524) }
Output for 5.6.18
array(2) { [0]=> int(7444) [1]=> int(2557) }
Output for 5.6.16
array(2) { [0]=> int(7545) [1]=> int(2456) }
Output for 5.4.6, 5.4.20, 5.6.15
array(2) { [0]=> int(7514) [1]=> int(2487) }
Output for 5.4.17, 5.4.27, 5.6.14
array(2) { [0]=> int(7478) [1]=> int(2523) }
Output for 5.6.13
array(2) { [0]=> int(7554) [1]=> int(2447) }
Output for 5.4.25, 5.6.11
array(2) { [0]=> int(7521) [1]=> int(2480) }
Output for 5.4.28, 5.6.9
array(2) { [0]=> int(7513) [1]=> int(2488) }
Output for 5.6.8
array(2) { [0]=> int(7595) [1]=> int(2406) }
Output for 5.6.7
array(2) { [0]=> int(7508) [1]=> int(2493) }
Output for 5.4.15, 5.5.35
array(2) { [0]=> int(7505) [1]=> int(2496) }
Output for 5.5.34
array(2) { [0]=> int(7564) [1]=> int(2437) }
Output for 5.5.33
array(2) { [0]=> int(7412) [1]=> int(2589) }
Output for 5.5.32
array(2) { [0]=> int(7435) [1]=> int(2566) }
Output for 5.5.31
array(2) { [0]=> int(7485) [1]=> int(2516) }
Output for 5.5.30
array(2) { [0]=> int(7466) [1]=> int(2535) }
Output for 5.4.35, 5.5.29
array(2) { [0]=> int(7441) [1]=> int(2560) }
Output for 5.5.28
array(2) { [0]=> int(7509) [1]=> int(2492) }
Output for 5.4.37, 5.5.27
array(2) { [0]=> int(7449) [1]=> int(2552) }
Output for 5.5.26
array(2) { [0]=> int(7542) [1]=> int(2459) }
Output for 5.5.25
array(2) { [0]=> int(7495) [1]=> int(2506) }
Output for 5.5.24
array(2) { [0]=> int(7551) [1]=> int(2450) }
Output for 5.4.7, 5.4.45
array(2) { [0]=> int(7487) [1]=> int(2514) }
Output for 5.4.44
array(2) { [0]=> int(7411) [1]=> int(2590) }
Output for 5.4.43
array(2) { [0]=> int(7429) [1]=> int(2572) }
Output for 5.4.41
array(2) { [0]=> int(7452) [1]=> int(2549) }
Output for 5.4.12, 5.4.40
array(2) { [0]=> int(7512) [1]=> int(2489) }
Output for 5.4.39
array(2) { [0]=> int(7518) [1]=> int(2483) }
Output for 5.4.38
array(2) { [0]=> int(7515) [1]=> int(2486) }
Output for 5.4.34
array(2) { [0]=> int(7557) [1]=> int(2444) }
Output for 5.4.21, 5.4.32
array(2) { [0]=> int(7474) [1]=> int(2527) }
Output for 5.4.1, 5.4.31
array(2) { [0]=> int(7430) [1]=> int(2571) }
Output for 5.4.30
array(2) { [0]=> int(7425) [1]=> int(2576) }
Output for 5.4.29
array(2) { [0]=> int(7482) [1]=> int(2519) }
Output for 5.4.24
array(2) { [0]=> int(7567) [1]=> int(2434) }
Output for 5.4.23
array(2) { [0]=> int(7526) [1]=> int(2475) }
Output for 5.4.22
array(2) { [0]=> int(7395) [1]=> int(2606) }
Output for 5.4.19
array(2) { [0]=> int(7454) [1]=> int(2547) }
Output for 5.4.18
array(2) { [0]=> int(7527) [1]=> int(2474) }
Output for 5.4.16
array(2) { [0]=> int(7492) [1]=> int(2509) }
Output for 5.4.13
array(2) { [0]=> int(7507) [1]=> int(2494) }
Output for 5.4.11
array(2) { [0]=> int(7460) [1]=> int(2541) }
Output for 5.4.10
array(2) { [0]=> int(7475) [1]=> int(2526) }
Output for 5.4.8
array(2) { [0]=> int(7528) [1]=> int(2473) }
Output for 5.4.4
array(2) { [0]=> int(7504) [1]=> int(2497) }
Output for 5.4.2
array(2) { [0]=> int(7450) [1]=> int(2551) }
Output for 5.4.0
array(2) { [0]=> int(7458) [1]=> int(2543) }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/cMN1h on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/cMN1h on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/cMN1h on line 3
Process exited with code 255.