3v4l.org

run code in 300+ PHP versions simultaneously
<?php $halt = !!!!!1 //MAKE SURE THIS IS FALSE! ; if ( version_compare( phpversion() , '5.1' ) === // This cannot be on a new line, working with PHP developers to fix! 1 ) { eval ( "HALTCHECK:" ) ; } if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else if ( $halt // Make sure that this is still false! ) { } else { if ( $halt // One last check! ) { if ( version_compare( phpversion() , '5.1' ) === 1 ) { $halt = !!!!!!$halt ; eval ( "goto HALTCHECK ;" ) ; } eval ( "__halt_compiler ( ) ;" // BAIL OUT, MAJOR /MAJOR/ ISSUES! ) ; } $emphasis = "!" // We may change this later ; echo "good" . " " . "programming" . $emphasis ; // Semi-colon on next line always! } //__halt_compiler();

preferences:
33.94 ms | 402 KiB | 5 Q