3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 3; print_r ($a); $array = array("1" => "PHP code tester Sandbox Online", "foo" => "bar", 5 , 5 => 89009, "case" => "Random Stuff: " . rand(100,999), "PHP Version" => phpversion() ); foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }

preferences:
31.5 ms | 402 KiB | 5 Q